Deck 7: SQL for Database Construction and Application Processing

ملء الشاشة (f)
exit full mode
سؤال
If the table PRODUCT has a column PRICE,and PRICE has the data type Numeric (8,2),the value 98765 stored in that field will be displayed by the DBMS as 98765.00.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
The SQL keyword PRIMARY KEY is used to designate the column(s)that are the primary key for the table.
سؤال
The SQL SET keyword is used to specify a new value when changing a column value.
سؤال
The SQL keyword UNIQUE is used to define alternative keys.
سؤال
The SQL keyword MODIFY is used to change the structure,properties or constraints of a table.
سؤال
When the correct SQL command is used to delete a table's structure,the command can only be used with a table that has already had its data removed.
سؤال
The SQL CREATE statement is used to name a new table and describe the table's columns.
سؤال
If the table ITEM has a column WEIGHT,and WEIGHT has the data type Numeric (7,2),the value 4321 will be displayed by the DBMS as 43.21.
سؤال
The SQL keyword CONSTRAINT is used in conjunction with the SQL keywords PRIMARY KEY and FOREIGN KEY.
سؤال
Rows can be removed from a table by using the SQL DELETE statement.
سؤال
One advantage of using the CONSTRAINT command to define a primary key is that the database designer controls the name of the constraint.
سؤال
Rows in a table can be changed by using the SQL UPDATE statement.
سؤال
Unless it is being used to copy data from one table to another,the SQL INSERT statement can be used to insert only a single row into a table.
سؤال
The SQL keyword CHECK is used to limit column values to specific values.
سؤال
The SQL keyword CONSTRAINT is used to limit column values to specific values.
سؤال
Data values to be added to a table are specified by using the SQL VALUES clause.
سؤال
The SQL keyword CONSTRAINT is used to define one of five types of constraints.
سؤال
One or more rows can be added to a table by using the SQL INSERT statement.
سؤال
The SQL keyword MODIFY is used to change a column value.
سؤال
The SQL keyword DELETE is used to delete a table's structure.
سؤال
The SQL command CREATE USER VIEW is used to create a virtual table.
سؤال
The values in an SQL view are always changeable through the view itself.
سؤال
The SQL syntax JOIN ...ON can be used as an alternate way of writing an SQL join statement.
سؤال
Joins that show only matching rows from the joined tables in their results are called inner joins.
سؤال
According to the SQL-92,statements used to construct views cannot contain the WHERE clause.
سؤال
SQL views are constructed from SELECT statements.
سؤال
The SQL command SELECT is used to retrieve view instances.
سؤال
Because SQL statements are table-oriented,whereas programs are variable-oriented,the results of SQL statements used in programs are treated as pseudofiles.
سؤال
A stored program that is attached to a table or view is called a stored procedure.
سؤال
If the values in an SQL view are changeable through the view itself,the SQL command UPDATE is used to change the values.
سؤال
SQL views can be used to hide columns.
سؤال
Joins that show the matching rows from the joined tables plus unmatched rows from one other table in their results are called outer joins.
سؤال
The values in an SQL view are not always changeable through the view itself.
سؤال
An SQL virtual table is called a view.
سؤال
SQL views are updatable when the view is based on a single table with no computed columns,and all non-null columns are present in the view.
سؤال
A set of SQL statements stored in an application written in a standard programming language is called embedded SQL.
سؤال
Outer joins can be either up joins or down joins.
سؤال
Because SQL statements are table-oriented,whereas programs are variable-oriented,the results of SQL statements used in programs are accessed using an SQL cursor.
سؤال
SQL views can be use used to provide a level of insolation between data processed by applications and the data actually stored in the database tables.
سؤال
SQL triggers use the ANSI SQL keywords BEFORE,INSTEAD OF,and AFTER.
سؤال
Which SQL keyword is used to impose restrictions on a table,data or relationship?

A)SET
B)CREATE
C)SELECT
D)ALTER
E)CONSTRAINT
سؤال
SQL triggers can be used when the DBMS receives an INSERT request.
سؤال
A stored program that is stored within the database and compiled when used is called a trigger.
سؤال
SQL triggers can be used when the DBMS receives an insert request.
سؤال
SQL triggers are created using the SQL ADD TRIGGER statement.
سؤال
The Oracle DBMS supports the SQL BEFORE trigger.
سؤال
Stored procedures have the advantage of greater security,decreased network traffic,SQL optimized by the DBMS compiler,and code sharing.
سؤال
If the values in an SQL view are not changeable through the view itself,you may still be able to update the view by using unique application logic.In this case,the specific logic is placed in an INSTEAD OF trigger.
سؤال
Which SQL keyword is used to name a new table and describe the table's columns?

A)SET
B)CREATE
C)SELECT
D)ALTER
E)CONSTRAINT
سؤال
To set a column value to an initial value that is selected according to some business logic,you would use the SQL DEFAULT constraint with the CREATE TABLE command.
سؤال
SQL triggers are used for providing default values,validity checking,updating views,and performing referential integrity actions.
سؤال
If a trigger is being written to enforce referential integrity actions,you cannot use an INSTEAD OF trigger.
سؤال
Unlike application code,stored procedures are never distributed to the client computers.
سؤال
Which of the following illustrates the authors' preferred style of defining a primary key?

A)CREATE TABLE CUSTOMER (
CustomerID Integer Primary Key
LastName Char(35)Not Null
First Name Char(25)Null
B)CREATE TABLE CUSTOMER (
CustomerID Integer Not Null
LastName Char(35)Not Null
First Name Char(25)Null
CONSTRAINT CustomerPK PRIMARY KEY (CustomerID)
C)CREATE TABLE CUSTOMER (
CustomerID Integer Not Null
LastName Char(35)Not Null
First Name Char(25)Null
D)either B or C
E)The author does not demonstrate a preference for how to define a primary key.
سؤال
The SQL Server DBMS supports the SQL BEFORE trigger.
سؤال
Because SQL stored procedures allow and encourage code sharing among developers,stored procedures give database application developers the advantages of less work,standardized processing,and specialization among developers.
سؤال
When a trigger is fired,the DBMS makes the appropriate data available to the trigger code.
سؤال
One advantage of using the CONSTRAINT phrase to define a primary is that the database designer controls the ________.

A)name of the primary key
B)name of the foreign key
C)name of the constraint
D)A and B
E)A,B and C
سؤال
SQL triggers can be used with SQL operations INSERT UPDATE,and DELETE.
سؤال
If the table PRODUCT has a column PRICE that has the data type Numeric (8,2),the value 12345 will be displayed by the DBMS as ________.

A)123.45
B)12345
C)12345.00
D)123450.00
E)00012345
سؤال
SQL views are always updateable when ________.

A)the view is based on a single table with no computed columns,and all non-null columns are present in the view
B)the view is based on any number of tables,with or without computed columns,and the INSTEAD OF trigger is defined for the view
C)the view is based on multiple tables,the update is being done on the most subordinate table,and the rows of that table can be uniquely identified
D)A and B
E)A,B and C
سؤال
Based on the tables below,which of the following SQL statements would increase the balance of the Gonzales by $100 to a total of $450? GENERAL SALES DATABASE:
SALESREP
<strong>Based on the tables below,which of the following SQL statements would increase the balance of the Gonzales by $100 to a total of $450? GENERAL SALES DATABASE: SALESREP   CUSTOMER  </strong> A)SELECT Gonzales FROM CUSTOMER INSERT VALUES PLUS (100)INTO Balance; B)SELECT Gonzales FROM CUSTOMER INSERT VALUES (450)INTO Balance; C)INSERT INTO CUSTOMER VALUES PLUS (100) SELECT Balance WHERE CustName = 'Gonzales'; D)INSERT INTO CUSTOMER VALUES (450) SELECT Balance WHERE CustName = 'Gonzales'; E)UPDATE CUSTOMER SET Balance = 450 WHERE CustName = 'Gonzales'; <div style=padding-top: 35px>
CUSTOMER
<strong>Based on the tables below,which of the following SQL statements would increase the balance of the Gonzales by $100 to a total of $450? GENERAL SALES DATABASE: SALESREP   CUSTOMER  </strong> A)SELECT Gonzales FROM CUSTOMER INSERT VALUES PLUS (100)INTO Balance; B)SELECT Gonzales FROM CUSTOMER INSERT VALUES (450)INTO Balance; C)INSERT INTO CUSTOMER VALUES PLUS (100) SELECT Balance WHERE CustName = 'Gonzales'; D)INSERT INTO CUSTOMER VALUES (450) SELECT Balance WHERE CustName = 'Gonzales'; E)UPDATE CUSTOMER SET Balance = 450 WHERE CustName = 'Gonzales'; <div style=padding-top: 35px>

A)SELECT Gonzales
FROM CUSTOMER
INSERT VALUES PLUS (100)INTO Balance;
B)SELECT Gonzales
FROM CUSTOMER
INSERT VALUES (450)INTO Balance;
C)INSERT INTO CUSTOMER VALUES PLUS (100)
SELECT Balance
WHERE CustName = 'Gonzales';
D)INSERT INTO CUSTOMER VALUES (450)
SELECT Balance
WHERE CustName = 'Gonzales';
E)UPDATE CUSTOMER
SET Balance = 450
WHERE CustName = 'Gonzales';
سؤال
Which SQL keyword is used to add one or more rows of data to a table?

A)DELETE
B)INSERT
C)SELECT
D)SET
E)UPDATE
سؤال
When the correct SQL command is used to delete a table's structure,what happens to the data in the table?

A)If the deleted table was a parent table,the data is added to the appropriate rows of the child table.
B)If the deleted table was a child table,the data is added to the appropriate rows of the parent table.
C)The data in the table is also deleted.
D)Nothing because there was no data in the table since only an empty table can be deleted.
E)A and B
سؤال
Which SQL keyword is used to change the values of an entire column?

A)CHANGE
B)INSERT
C)SELECT
D)SET
E)MODIFY
سؤال
The SQL keyword used to limit column values to specific values is ________.

A)CONSTRAINT
B)CHECK
C)NOT NULL
D)UNIQUE
E)UPDATE
سؤال
Which SQL keyword is used to change the structure,properties or constraints of a table?

A)SET
B)CREATE
C)SELECT
D)ALTER
E)CONSTRAINT
سؤال
Which SQL keyword is used to change one or more rows in a table?

A)MODIFY
B)INSERT
C)SELECT
D)CHANGE
E)UPDATE
سؤال
In an SQL query of two tables,which SQL keyword indicates that we want data from all the rows of one table to be included in the result,even if the row does not correspond to any data in the other table?

A)LEFT JOIN
B)RIGHT JOIN
C)INCLUDE
D)A and B
E)A,B and C
سؤال
According to the SQL-92,statements used to construct views cannot contain ________.

A)the SELECT clause
B)the FROM clause
C)the WHERE clause
D)the ORDER BY clause
E)SQL view statements can use all of the listed clauses.
سؤال
A set of SQL statements stored in an application written in a standard programming language is called ________.

A)a CHECK constraint
B)a view
C)embedded SQL
D)a trigger
E)a stored procedure
سؤال
Which keyword is used to remove one or more rows from a table?

A)DELETE
B)INSERT
C)ERASE
D)SET
E)UPDATE
سؤال
An SQL virtual table is called ________.

A)a CHECK constraint
B)a view
C)embedded SQL
D)a trigger
E)a stored procedure
سؤال
SQL views are constructed from ________.

A)CREATE statements
B)INSERT statements
C)UPDATE statements
D)SELECT statements
E)VIEW statements
سؤال
SQL views are used ________.

A)to hide columns
B)to show results of computed columns
C)to hide complicated SQL statements
D)to provide a level of indirection between data processed by applications and the data actually stored in the database tables
E)SQL views are used for all of the above.
سؤال
The SQL command used to create a virtual table is ________.

A)CREATE VTABLE
B)CREATE VIEW
C)VTABLE
D)VIEW
E)NEWLOOK
سؤال
If the values in an SQL view are changeable through the view itself,which SQL statement is used to change the values?

A)CREATE
B)DELETE
C)INSERT
D)SELECT
E)UPDATE
سؤال
Given the SQL statement
CREATE TABLE SALESREP (
SalesRepNo int NOT NULL,
RepName char(35)NOT NULL,
HireDate date NOT NULL,
CONSTRAINT SalesRepPK PRIMARY KEY (SalesRepNo),
CONSTRAINT SalesRepAK1 UNIQUE (RepName)
);
We know that ________.

A)RepName is the primary key
B)RepName is a foreign key
C)RepName is a candidate key
D)RepName is a surrogate key
E)None of the above is true.
سؤال
Which SQL keyword is used to delete a table's structure?

A)DELETE
B)DROP
C)DISPOSE
D)ALTER
E)MODIFY
سؤال
Which SQL statement is used to retrieve view instances?

A)CREATE
B)DELETE
C)INSERT
D)SELECT
E)UPDATE
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/105
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 7: SQL for Database Construction and Application Processing
1
If the table PRODUCT has a column PRICE,and PRICE has the data type Numeric (8,2),the value 98765 stored in that field will be displayed by the DBMS as 98765.00.
False
2
The SQL keyword PRIMARY KEY is used to designate the column(s)that are the primary key for the table.
True
3
The SQL SET keyword is used to specify a new value when changing a column value.
True
4
The SQL keyword UNIQUE is used to define alternative keys.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
5
The SQL keyword MODIFY is used to change the structure,properties or constraints of a table.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
6
When the correct SQL command is used to delete a table's structure,the command can only be used with a table that has already had its data removed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
7
The SQL CREATE statement is used to name a new table and describe the table's columns.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
8
If the table ITEM has a column WEIGHT,and WEIGHT has the data type Numeric (7,2),the value 4321 will be displayed by the DBMS as 43.21.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
9
The SQL keyword CONSTRAINT is used in conjunction with the SQL keywords PRIMARY KEY and FOREIGN KEY.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
10
Rows can be removed from a table by using the SQL DELETE statement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
11
One advantage of using the CONSTRAINT command to define a primary key is that the database designer controls the name of the constraint.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
12
Rows in a table can be changed by using the SQL UPDATE statement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
13
Unless it is being used to copy data from one table to another,the SQL INSERT statement can be used to insert only a single row into a table.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
14
The SQL keyword CHECK is used to limit column values to specific values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
15
The SQL keyword CONSTRAINT is used to limit column values to specific values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
16
Data values to be added to a table are specified by using the SQL VALUES clause.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
17
The SQL keyword CONSTRAINT is used to define one of five types of constraints.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
18
One or more rows can be added to a table by using the SQL INSERT statement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
19
The SQL keyword MODIFY is used to change a column value.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
20
The SQL keyword DELETE is used to delete a table's structure.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
21
The SQL command CREATE USER VIEW is used to create a virtual table.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
22
The values in an SQL view are always changeable through the view itself.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
23
The SQL syntax JOIN ...ON can be used as an alternate way of writing an SQL join statement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
24
Joins that show only matching rows from the joined tables in their results are called inner joins.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
25
According to the SQL-92,statements used to construct views cannot contain the WHERE clause.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
26
SQL views are constructed from SELECT statements.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
27
The SQL command SELECT is used to retrieve view instances.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
28
Because SQL statements are table-oriented,whereas programs are variable-oriented,the results of SQL statements used in programs are treated as pseudofiles.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
29
A stored program that is attached to a table or view is called a stored procedure.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
30
If the values in an SQL view are changeable through the view itself,the SQL command UPDATE is used to change the values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
31
SQL views can be used to hide columns.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
32
Joins that show the matching rows from the joined tables plus unmatched rows from one other table in their results are called outer joins.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
33
The values in an SQL view are not always changeable through the view itself.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
34
An SQL virtual table is called a view.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
35
SQL views are updatable when the view is based on a single table with no computed columns,and all non-null columns are present in the view.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
36
A set of SQL statements stored in an application written in a standard programming language is called embedded SQL.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
37
Outer joins can be either up joins or down joins.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
38
Because SQL statements are table-oriented,whereas programs are variable-oriented,the results of SQL statements used in programs are accessed using an SQL cursor.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
39
SQL views can be use used to provide a level of insolation between data processed by applications and the data actually stored in the database tables.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
40
SQL triggers use the ANSI SQL keywords BEFORE,INSTEAD OF,and AFTER.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
41
Which SQL keyword is used to impose restrictions on a table,data or relationship?

A)SET
B)CREATE
C)SELECT
D)ALTER
E)CONSTRAINT
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
42
SQL triggers can be used when the DBMS receives an INSERT request.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
43
A stored program that is stored within the database and compiled when used is called a trigger.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
44
SQL triggers can be used when the DBMS receives an insert request.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
45
SQL triggers are created using the SQL ADD TRIGGER statement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
46
The Oracle DBMS supports the SQL BEFORE trigger.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
47
Stored procedures have the advantage of greater security,decreased network traffic,SQL optimized by the DBMS compiler,and code sharing.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
48
If the values in an SQL view are not changeable through the view itself,you may still be able to update the view by using unique application logic.In this case,the specific logic is placed in an INSTEAD OF trigger.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
49
Which SQL keyword is used to name a new table and describe the table's columns?

A)SET
B)CREATE
C)SELECT
D)ALTER
E)CONSTRAINT
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
50
To set a column value to an initial value that is selected according to some business logic,you would use the SQL DEFAULT constraint with the CREATE TABLE command.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
51
SQL triggers are used for providing default values,validity checking,updating views,and performing referential integrity actions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
52
If a trigger is being written to enforce referential integrity actions,you cannot use an INSTEAD OF trigger.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
53
Unlike application code,stored procedures are never distributed to the client computers.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
54
Which of the following illustrates the authors' preferred style of defining a primary key?

A)CREATE TABLE CUSTOMER (
CustomerID Integer Primary Key
LastName Char(35)Not Null
First Name Char(25)Null
B)CREATE TABLE CUSTOMER (
CustomerID Integer Not Null
LastName Char(35)Not Null
First Name Char(25)Null
CONSTRAINT CustomerPK PRIMARY KEY (CustomerID)
C)CREATE TABLE CUSTOMER (
CustomerID Integer Not Null
LastName Char(35)Not Null
First Name Char(25)Null
D)either B or C
E)The author does not demonstrate a preference for how to define a primary key.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
55
The SQL Server DBMS supports the SQL BEFORE trigger.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
56
Because SQL stored procedures allow and encourage code sharing among developers,stored procedures give database application developers the advantages of less work,standardized processing,and specialization among developers.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
57
When a trigger is fired,the DBMS makes the appropriate data available to the trigger code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
58
One advantage of using the CONSTRAINT phrase to define a primary is that the database designer controls the ________.

A)name of the primary key
B)name of the foreign key
C)name of the constraint
D)A and B
E)A,B and C
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
59
SQL triggers can be used with SQL operations INSERT UPDATE,and DELETE.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
60
If the table PRODUCT has a column PRICE that has the data type Numeric (8,2),the value 12345 will be displayed by the DBMS as ________.

A)123.45
B)12345
C)12345.00
D)123450.00
E)00012345
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
61
SQL views are always updateable when ________.

A)the view is based on a single table with no computed columns,and all non-null columns are present in the view
B)the view is based on any number of tables,with or without computed columns,and the INSTEAD OF trigger is defined for the view
C)the view is based on multiple tables,the update is being done on the most subordinate table,and the rows of that table can be uniquely identified
D)A and B
E)A,B and C
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
62
Based on the tables below,which of the following SQL statements would increase the balance of the Gonzales by $100 to a total of $450? GENERAL SALES DATABASE:
SALESREP
<strong>Based on the tables below,which of the following SQL statements would increase the balance of the Gonzales by $100 to a total of $450? GENERAL SALES DATABASE: SALESREP   CUSTOMER  </strong> A)SELECT Gonzales FROM CUSTOMER INSERT VALUES PLUS (100)INTO Balance; B)SELECT Gonzales FROM CUSTOMER INSERT VALUES (450)INTO Balance; C)INSERT INTO CUSTOMER VALUES PLUS (100) SELECT Balance WHERE CustName = 'Gonzales'; D)INSERT INTO CUSTOMER VALUES (450) SELECT Balance WHERE CustName = 'Gonzales'; E)UPDATE CUSTOMER SET Balance = 450 WHERE CustName = 'Gonzales';
CUSTOMER
<strong>Based on the tables below,which of the following SQL statements would increase the balance of the Gonzales by $100 to a total of $450? GENERAL SALES DATABASE: SALESREP   CUSTOMER  </strong> A)SELECT Gonzales FROM CUSTOMER INSERT VALUES PLUS (100)INTO Balance; B)SELECT Gonzales FROM CUSTOMER INSERT VALUES (450)INTO Balance; C)INSERT INTO CUSTOMER VALUES PLUS (100) SELECT Balance WHERE CustName = 'Gonzales'; D)INSERT INTO CUSTOMER VALUES (450) SELECT Balance WHERE CustName = 'Gonzales'; E)UPDATE CUSTOMER SET Balance = 450 WHERE CustName = 'Gonzales';

A)SELECT Gonzales
FROM CUSTOMER
INSERT VALUES PLUS (100)INTO Balance;
B)SELECT Gonzales
FROM CUSTOMER
INSERT VALUES (450)INTO Balance;
C)INSERT INTO CUSTOMER VALUES PLUS (100)
SELECT Balance
WHERE CustName = 'Gonzales';
D)INSERT INTO CUSTOMER VALUES (450)
SELECT Balance
WHERE CustName = 'Gonzales';
E)UPDATE CUSTOMER
SET Balance = 450
WHERE CustName = 'Gonzales';
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
63
Which SQL keyword is used to add one or more rows of data to a table?

A)DELETE
B)INSERT
C)SELECT
D)SET
E)UPDATE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
64
When the correct SQL command is used to delete a table's structure,what happens to the data in the table?

A)If the deleted table was a parent table,the data is added to the appropriate rows of the child table.
B)If the deleted table was a child table,the data is added to the appropriate rows of the parent table.
C)The data in the table is also deleted.
D)Nothing because there was no data in the table since only an empty table can be deleted.
E)A and B
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
65
Which SQL keyword is used to change the values of an entire column?

A)CHANGE
B)INSERT
C)SELECT
D)SET
E)MODIFY
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
66
The SQL keyword used to limit column values to specific values is ________.

A)CONSTRAINT
B)CHECK
C)NOT NULL
D)UNIQUE
E)UPDATE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
67
Which SQL keyword is used to change the structure,properties or constraints of a table?

A)SET
B)CREATE
C)SELECT
D)ALTER
E)CONSTRAINT
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
68
Which SQL keyword is used to change one or more rows in a table?

A)MODIFY
B)INSERT
C)SELECT
D)CHANGE
E)UPDATE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
69
In an SQL query of two tables,which SQL keyword indicates that we want data from all the rows of one table to be included in the result,even if the row does not correspond to any data in the other table?

A)LEFT JOIN
B)RIGHT JOIN
C)INCLUDE
D)A and B
E)A,B and C
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
70
According to the SQL-92,statements used to construct views cannot contain ________.

A)the SELECT clause
B)the FROM clause
C)the WHERE clause
D)the ORDER BY clause
E)SQL view statements can use all of the listed clauses.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
71
A set of SQL statements stored in an application written in a standard programming language is called ________.

A)a CHECK constraint
B)a view
C)embedded SQL
D)a trigger
E)a stored procedure
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
72
Which keyword is used to remove one or more rows from a table?

A)DELETE
B)INSERT
C)ERASE
D)SET
E)UPDATE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
73
An SQL virtual table is called ________.

A)a CHECK constraint
B)a view
C)embedded SQL
D)a trigger
E)a stored procedure
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
74
SQL views are constructed from ________.

A)CREATE statements
B)INSERT statements
C)UPDATE statements
D)SELECT statements
E)VIEW statements
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
75
SQL views are used ________.

A)to hide columns
B)to show results of computed columns
C)to hide complicated SQL statements
D)to provide a level of indirection between data processed by applications and the data actually stored in the database tables
E)SQL views are used for all of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
76
The SQL command used to create a virtual table is ________.

A)CREATE VTABLE
B)CREATE VIEW
C)VTABLE
D)VIEW
E)NEWLOOK
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
77
If the values in an SQL view are changeable through the view itself,which SQL statement is used to change the values?

A)CREATE
B)DELETE
C)INSERT
D)SELECT
E)UPDATE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
78
Given the SQL statement
CREATE TABLE SALESREP (
SalesRepNo int NOT NULL,
RepName char(35)NOT NULL,
HireDate date NOT NULL,
CONSTRAINT SalesRepPK PRIMARY KEY (SalesRepNo),
CONSTRAINT SalesRepAK1 UNIQUE (RepName)
);
We know that ________.

A)RepName is the primary key
B)RepName is a foreign key
C)RepName is a candidate key
D)RepName is a surrogate key
E)None of the above is true.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
79
Which SQL keyword is used to delete a table's structure?

A)DELETE
B)DROP
C)DISPOSE
D)ALTER
E)MODIFY
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
80
Which SQL statement is used to retrieve view instances?

A)CREATE
B)DELETE
C)INSERT
D)SELECT
E)UPDATE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 105 في هذه المجموعة.