Deck 7: Introduction to Structured Query Language SQL
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/92
Play
Full screen (f)
Deck 7: Introduction to Structured Query Language SQL
1
Entity integrity is enforced automatically when the primary key is specified in the CREATE TABLE command sequence.
True
2
The COMMIT command does not permanently save all changes.In order to do that,you must use SAVE.
False
3
Only numeric data types can be added and subtracted in SQL.
False
4
The ANSI SQL standards are also accepted by the ISO.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
5
Oracle users can use the Access QBE (query by example)query generator.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
6
The CHECK constraint is used to define a condition for the values that the attribute domain cannot have.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
7
Although SQL commands can be grouped together on a single line,complex command sequences are best shown on separate lines,with space between the SQL command and the command's components.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
8
Any changes made to the contents of a table are not physically saved on disk until you use the SAVE command.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
9
Data type selection is usually dictated by the nature of the data and by the intended use.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
10
To list the contents of a table,you must use the DISPLAY command.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
11
All SQL commands must be issued on a single line.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
12
SQL requires the use of the ADD command to enter data into a table.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
13
The ANSI prescribes a standard SQL-the current fully approved version is known as SQL07.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
14
You can select partial table contents by naming the desired fields and by placing restrictions on the rows to be included in the output.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
15
Mathematical operators cannot be used to place restrictions on character-based attributes.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
16
A database language enables the user to perform complex queries designed to transform the raw data into useful information.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
17
String comparisons are made from left to right.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
18
If you have not yet used the COMMIT command to store the changes permanently in the database,you can restore the database to its previous condition with the ROLLBACK command.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
19
SQL is considered difficult to learn; its command set has a vocabulary of more than 300 words.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
20
You cannot insert a row containing a null attribute value using SQL.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
21
An alias cannot be used when a table is required to be joined to itself in a recursive query.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
22
When a user issues the DELETE FROM tablename command without specifying a WHERE condition,.
A)no rows will be deleted
B)the first row will be deleted
C)the last row will be deleted
D)all rows will be deleted
A)no rows will be deleted
B)the first row will be deleted
C)the last row will be deleted
D)all rows will be deleted
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
23
The SQL command that allows a user to permanently save data changes is .
A)INSERT
B)SELECT
C)COMMIT
D)UPDATE
A)INSERT
B)SELECT
C)COMMIT
D)UPDATE
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
24
Some RDBMSs,such as Oracle,automatically data changes when issuing data definition commands.
A)COMMIT
B)ROLLBACK
C)UNSAVE
D)UPDATE
A)COMMIT
B)ROLLBACK
C)UNSAVE
D)UPDATE
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
25
ANSI-standard SQL allows the use of special operators in conjunction with the WHERE clause.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
26
Some RDBMSs,such as Microsoft Access,automatically make the necessary conversions to eliminate case sensitivity.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
27
UPDATE tablename *****
[WHERE conditionlist];
The command replaces the ***** in the syntax of the UPDATE command,shown above.
A)SET columnname = expression
B)columnname = expression
C)expression = columnname
D)LET columnname = expression
[WHERE conditionlist];
The command replaces the ***** in the syntax of the UPDATE command,shown above.
A)SET columnname = expression
B)columnname = expression
C)expression = columnname
D)LET columnname = expression
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
28
An example of a command a user would use when making changes to a PRODUCT table is .
A)CHANGE PRODUCT SET P_INDATE = '18-JAN-2004' WHERE P_CODE = '13-Q2/P2';
B)ROLLBACK PRODUCT SET P_INDATE = '18-JAN-2004' WHERE P_CODE = '13-Q2/P2';
C)EDIT PRODUCT SET P_INDATE = '18-JAN-2004' WHERE P_CODE = '13-Q2/P2';
D)UPDATE PRODUCT SET P_INDATE = '18-JAN-2004' WHERE P_CODE = '13-Q2/P2';
A)CHANGE PRODUCT SET P_INDATE = '18-JAN-2004' WHERE P_CODE = '13-Q2/P2';
B)ROLLBACK PRODUCT SET P_INDATE = '18-JAN-2004' WHERE P_CODE = '13-Q2/P2';
C)EDIT PRODUCT SET P_INDATE = '18-JAN-2004' WHERE P_CODE = '13-Q2/P2';
D)UPDATE PRODUCT SET P_INDATE = '18-JAN-2004' WHERE P_CODE = '13-Q2/P2';
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
29
The SQL data manipulation command HAVING:
A)restricts the selection of rows based on a conditional expression.
B)restricts the selection of grouped rows based on a condition.
C)modifies an attribute's values in one or more table's rows.
D)groups the selected rows based on one or more attributes.
A)restricts the selection of rows based on a conditional expression.
B)restricts the selection of grouped rows based on a condition.
C)modifies an attribute's values in one or more table's rows.
D)groups the selected rows based on one or more attributes.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
30
Date procedures are often more software-specific than other SQL procedures.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
31
When joining three or more tables,you need to specify a join condition for one pair of tables.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
32
SQL allows the use of logical restrictions on its inquiries such as OR,AND,and NOT.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
33
In Oracle,the command is used to change the display for a column,for example,to place a $ in front of a numeric value.
A)DISPLAY
B)FORMAT
C)CHAR
D)CONVERT
A)DISPLAY
B)FORMAT
C)CHAR
D)CONVERT
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
34
The SQL command that allows a user to list the contents of a table is .
A)INSERT
B)SELECT
C)COMMIT
D)UPDATE
A)INSERT
B)SELECT
C)COMMIT
D)UPDATE
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
35
Most SQL implementations yield case-insensitive searches.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
36
The constraint assigns a value to an attribute when a new row is added to a table.
A)CHECK
B)UNIQUE
C)NOT NULL
D)DEFAULT
A)CHECK
B)UNIQUE
C)NOT NULL
D)DEFAULT
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
37
The COUNT function is designed to tally the number of non-null "values" of an attribute,and is often used in conjunction with the DISTINCT clause.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
38
The constraint assigns a value to an attribute when a new row is added to a table.
A)CHECK
B)UNIQUE
C)NOT NULL
D)DEFAULT
A)CHECK
B)UNIQUE
C)NOT NULL
D)DEFAULT
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
39
The command is used to restore the database to its previous condition.
A)COMMIT; RESTORE;
B)COMMIT; BACKUP;
C)COMMIT; ROLLBACK;
D)ROLLBACK;
A)COMMIT; RESTORE;
B)COMMIT; BACKUP;
C)COMMIT; ROLLBACK;
D)ROLLBACK;
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
40
The conditional LIKE must be used in conjunction with wildcard characters.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
41
A table can be deleted from the database by using the command.
A)DROP TABLE
B)DELETE TABLE
C)MODIFY TABLE
D)ERASE TABLE
A)DROP TABLE
B)DELETE TABLE
C)MODIFY TABLE
D)ERASE TABLE
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
42
The special operator used to check whether an attribute value is within a range of values is .
A)BETWEEN
B)NULL
C)LIKE
D)IN
A)BETWEEN
B)NULL
C)LIKE
D)IN
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
43
According to the rules of precedence,which of the following computations should be completed first?
A)performing additions and subtractions
B)performing multiplications and divisions
C)performing operations within parentheses
D)performing power operations
A)performing additions and subtractions
B)performing multiplications and divisions
C)performing operations within parentheses
D)performing power operations
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
44
Which of the following queries will output the table contents when the value of the character field P_CODE is alphabetically less than 1558-QW1?
A)SELECT P_CODE,P_DESCRIPT,P_QOH,P_MIN,P_PRICE FROM PRODUCT WHERE P_CODE <'1558-QW1';
B)SELECT P_CODE,P_DESCRIPT,P_QOH,P_MIN,P_PRICE FROM PRODUCT WHERE P_CODE = [1558-QW1];
C)SELECT P_CODE,P_DESCRIPT,P_QOH,P_MIN,P_PRICE FROM PRODUCT WHERE P_CODE = (1558-QW1);
D)SELECT P_CODE,P_DESCRIPT,P_QOH,P_MIN,P_PRICE FROM PRODUCT WHERE P_CODE = {1558-QW1};
A)SELECT P_CODE,P_DESCRIPT,P_QOH,P_MIN,P_PRICE FROM PRODUCT WHERE P_CODE <'1558-QW1';
B)SELECT P_CODE,P_DESCRIPT,P_QOH,P_MIN,P_PRICE FROM PRODUCT WHERE P_CODE = [1558-QW1];
C)SELECT P_CODE,P_DESCRIPT,P_QOH,P_MIN,P_PRICE FROM PRODUCT WHERE P_CODE = (1558-QW1);
D)SELECT P_CODE,P_DESCRIPT,P_QOH,P_MIN,P_PRICE FROM PRODUCT WHERE P_CODE = {1558-QW1};
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
45
The command would be used to delete the table row where the P_CODE is 'BRT-345'.
A)DELETE FROM PRODUCT WHERE P_CODE = 'BRT-345';
B)REMOVE FROM PRODUCT WHERE P_CODE = 'BRT-345';
C)ERASE FROM PRODUCT WHERE P_CODE = 'BRT-345';
D)ROLLBACK FROM PRODUCT WHERE P_CODE = 'BRT-345';
A)DELETE FROM PRODUCT WHERE P_CODE = 'BRT-345';
B)REMOVE FROM PRODUCT WHERE P_CODE = 'BRT-345';
C)ERASE FROM PRODUCT WHERE P_CODE = 'BRT-345';
D)ROLLBACK FROM PRODUCT WHERE P_CODE = 'BRT-345';
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
46
The SQL aggregate function that gives the number of rows containing non-null values for a given column is .
A)COUNT
B)MIN
C)MAX
D)SUM
A)COUNT
B)MIN
C)MAX
D)SUM
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
47
The query to join the P_DESCRIPT and P_PRICE fields from the PRODUCT table and the V_NAME,V_AREACODE,V_PHONE and V_CONTACT fields from the VENDOR table,where the values of V_CODE match and the output is ordered by the price is .
A)SELECT PRODUCT.P_DESCRIPT,PRODUCT.P_PRICE,VENDOR.V_NAME,VENDOR.V_CONTACT,VENDOR.V_AREACODE,VENDOR.V_PHONE FROM PRODUCT,VENDOR
WHERE PRODUCT.V_CODE <> VENDOR.V_CODE; ORDER BY PRODUCT.P_PRICE;
B)SELECT PRODUCT.P_DESCRIPT,PRODUCT.P_PRICE,VENDOR.V_NAME,VENDOR.V_CONTACT,VENDOR.V_AREACODE,VENDOR.V_PHONE FROM PRODUCT,VENDOR
WHERE PRODUCT.V_CODE => VENDOR.V_CODE; ORDER BY PRODUCT.P_PRICE;
C)SELECT PRODUCT.P_DESCRIPT,PRODUCT.P_PRICE,VENDOR.V_NAME,VENDOR.V_CONTACT,VENDOR.V_AREACODE,VENDOR.V_PHONE FROM PRODUCT,VENDOR
WHERE PRODUCT.V_CODE <= VENDOR.V_CODE; ORDER BY PRODUCT.P_PRICE;
D)SELECT PRODUCT.P_DESCRIPT,PRODUCT.P_PRICE,VENDOR.V_NAME,VENDOR.V_CONTACT, VENDOR.V_AREACODE,VENDOR.V_PHONE FROM PRODUCT,VENDOR
WHERE PRODUCT.V_CODE = VENDOR.V_CODE; ORDER BY PRODUCT.P_PRICE;
A)SELECT PRODUCT.P_DESCRIPT,PRODUCT.P_PRICE,VENDOR.V_NAME,VENDOR.V_CONTACT,VENDOR.V_AREACODE,VENDOR.V_PHONE FROM PRODUCT,VENDOR
WHERE PRODUCT.V_CODE <> VENDOR.V_CODE; ORDER BY PRODUCT.P_PRICE;
B)SELECT PRODUCT.P_DESCRIPT,PRODUCT.P_PRICE,VENDOR.V_NAME,VENDOR.V_CONTACT,VENDOR.V_AREACODE,VENDOR.V_PHONE FROM PRODUCT,VENDOR
WHERE PRODUCT.V_CODE => VENDOR.V_CODE; ORDER BY PRODUCT.P_PRICE;
C)SELECT PRODUCT.P_DESCRIPT,PRODUCT.P_PRICE,VENDOR.V_NAME,VENDOR.V_CONTACT,VENDOR.V_AREACODE,VENDOR.V_PHONE FROM PRODUCT,VENDOR
WHERE PRODUCT.V_CODE <= VENDOR.V_CODE; ORDER BY PRODUCT.P_PRICE;
D)SELECT PRODUCT.P_DESCRIPT,PRODUCT.P_PRICE,VENDOR.V_NAME,VENDOR.V_CONTACT, VENDOR.V_AREACODE,VENDOR.V_PHONE FROM PRODUCT,VENDOR
WHERE PRODUCT.V_CODE = VENDOR.V_CODE; ORDER BY PRODUCT.P_PRICE;
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
48
Which of the following queries is used to list a unique value for V_CODE,where the list will produce only a list of those values that are different from one another?
A)SELECT ONLY V_CODE FROM PRODUCT;
B)SELECT UNIQUE V_CODE FROM PRODUCT;
C)SELECT DIFFERENT V_CODE FROM PRODUCT;
D)SELECT DISTINCT V_CODE FROM PRODUCT;
A)SELECT ONLY V_CODE FROM PRODUCT;
B)SELECT UNIQUE V_CODE FROM PRODUCT;
C)SELECT DIFFERENT V_CODE FROM PRODUCT;
D)SELECT DISTINCT V_CODE FROM PRODUCT;
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
49
Which of the following queries will output the table contents when the value of V_CODE is not equal to 21344?
A)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE <> 21344;
B)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE <= 21344;
C)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE = 21344;
D)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE => 21344;
A)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE <> 21344;
B)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE <= 21344;
C)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE = 21344;
D)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE => 21344;
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
50
A(n)is a query that is embedded inside another query.
A)alias
B)operator
C)nested
D)view
A)alias
B)operator
C)nested
D)view
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
51
The special operator used to check whether a subquery returns any rows is .
A)BETWEEN
B)EXISTS
C)LIKE
D)IN
A)BETWEEN
B)EXISTS
C)LIKE
D)IN
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
52
Which of the following queries will list all the rows in which the inventory stock dates occur on or after January 20,2016?
A)SELECT P_DESCRIPT,P_QOH,P_MIN,P_PRICE,P_INDATE FROM PRODUCT WHERE P_INDATE >= '20-JAN-2016';
B)SELECT P_DESCRIPT,P_QOH,P_MIN,P_PRICE,P_INDATE FROM PRODUCT WHERE P_INDATE >= $20-JAN-2010$;
C)SELECT P_DESCRIPT,P_QOH,P_MIN,P_PRICE,P_INDATE FROM PRODUCT WHERE P_INDATE <= '20-JAN-2010';
D)SELECT P_DESCRIPT,P_QOH,P_MIN,P_PRICE,P_INDATE FROM PRODUCT WHERE P_INDATE >= {20-JAN-2010};
A)SELECT P_DESCRIPT,P_QOH,P_MIN,P_PRICE,P_INDATE FROM PRODUCT WHERE P_INDATE >= '20-JAN-2016';
B)SELECT P_DESCRIPT,P_QOH,P_MIN,P_PRICE,P_INDATE FROM PRODUCT WHERE P_INDATE >= $20-JAN-2010$;
C)SELECT P_DESCRIPT,P_QOH,P_MIN,P_PRICE,P_INDATE FROM PRODUCT WHERE P_INDATE <= '20-JAN-2010';
D)SELECT P_DESCRIPT,P_QOH,P_MIN,P_PRICE,P_INDATE FROM PRODUCT WHERE P_INDATE >= {20-JAN-2010};
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
53
Which of the following is used to select partial table contents?
A)SELECT FROM
BY;
B)LIST FROM
BY;
C)SELECT FROM
WHERE;
D)LIST FROM
WHERE;
A)SELECT
BY
B)LIST
BY
C)SELECT
WHERE
D)LIST
WHERE
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
54
The special operator used to check whether an attribute value matches a given string pattern is .
A)BETWEEN
B)IS NULL
C)LIKE
D)IN
A)BETWEEN
B)IS NULL
C)LIKE
D)IN
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
55
A(n)is an alternate name given to a column or table in any SQL statement.
A)alias
B)data type
C)stored function
D)trigger
A)alias
B)data type
C)stored function
D)trigger
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
56
Which of the following queries will output the table contents when the value of V_CODE is equal to 21344?
A)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE <> 21344;
B)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE <= 21344;
C)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE = 21344;
D)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE => 21344;
A)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE <> 21344;
B)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE <= 21344;
C)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE = 21344;
D)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE => 21344;
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
57
Which of the following queries will use the given columns and column aliases from the PRODUCT table to determine the total value of inventory held on hand?
A)SELECT P_DESCRIPT,P_QOH,P_PRICE,P_QOH/P_PRICE FROM PRODUCT;
B)SELECT P_DESCRIPT,P_QOH,P_PRICE,P_QOH=P_PRICE FROM PRODUCT;
C)SELECT P_DESCRIPT,P_QOH,P_PRICE,P_QOH*P_PRICE FROM PRODUCT;
D)SELECT P_DESCRIPT,P_QOH,P_PRICE,P_QOH-P_PRICE FROM PRODUCT;
A)SELECT P_DESCRIPT,P_QOH,P_PRICE,P_QOH/P_PRICE FROM PRODUCT;
B)SELECT P_DESCRIPT,P_QOH,P_PRICE,P_QOH=P_PRICE FROM PRODUCT;
C)SELECT P_DESCRIPT,P_QOH,P_PRICE,P_QOH*P_PRICE FROM PRODUCT;
D)SELECT P_DESCRIPT,P_QOH,P_PRICE,P_QOH-P_PRICE FROM PRODUCT;
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
58
Which of the following queries uses the correct SQL syntax to list the table contents for either V_CODE = 21344 or V_CODE = 24288?
A)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE = 21344 OR V_CODE <= 24288;
B)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE = 21344 OR V_CODE => 24288;
C)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE = 21344 OR V_CODE > 24288;
D)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE = 21344 OR V_CODE = 24288;
A)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE = 21344 OR V_CODE <= 24288;
B)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE = 21344 OR V_CODE => 24288;
C)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE = 21344 OR V_CODE > 24288;
D)SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE FROM PRODUCT WHERE V_CODE = 21344 OR V_CODE = 24288;
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
59
The query to join the P_DESCRIPT and P_PRICE fields from the PRODUCT table and the V_NAME,V_AREACODE,V_PHONE,and V_CONTACT fields from the VENDOR table where the values of V_CODE match is .
A)SELECT P_DESCRIPT,P_PRICE,V_NAME,V_CONTACT,V_AREACODE,V_PHONE FROM PRODUCT,VENDOR WHERE PRODUCT.V_CODE <> VENDOR.V_CODE;
B)SELECT P_DESCRIPT,P_PRICE,V_NAME,V_CONTACT,V_AREACODE,V_PHONE FROM PRODUCT,VENDOR WHERE PRODUCT.V_CODE = VENDOR.V_CODE;
C)SELECT P_DESCRIPT,P_PRICE,V_NAME,V_CONTACT,V_AREACODE,V_PHONE FROM PRODUCT,VENDOR WHERE PRODUCT.V_CODE <= VENDOR.V_CODE;
D)SELECT P_DESCRIPT,P_PRICE,V_NAME,V_CONTACT,V_AREACODE,V_PHONE FROM PRODUCT,VENDOR WHERE PRODUCT.V_CODE => VENDOR.V_CODE;
A)SELECT P_DESCRIPT,P_PRICE,V_NAME,V_CONTACT,V_AREACODE,V_PHONE FROM PRODUCT,VENDOR WHERE PRODUCT.V_CODE <> VENDOR.V_CODE;
B)SELECT P_DESCRIPT,P_PRICE,V_NAME,V_CONTACT,V_AREACODE,V_PHONE FROM PRODUCT,VENDOR WHERE PRODUCT.V_CODE = VENDOR.V_CODE;
C)SELECT P_DESCRIPT,P_PRICE,V_NAME,V_CONTACT,V_AREACODE,V_PHONE FROM PRODUCT,VENDOR WHERE PRODUCT.V_CODE <= VENDOR.V_CODE;
D)SELECT P_DESCRIPT,P_PRICE,V_NAME,V_CONTACT,V_AREACODE,V_PHONE FROM PRODUCT,VENDOR WHERE PRODUCT.V_CODE => VENDOR.V_CODE;
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
60
All changes in a table structure are made using the command,followed by a keyword that produces the specific changes a user wants to make.
A)ALTER TABLE
B)UPDATE TABLE
C)COOMIT TABLE
D)ROLLBACK TABLE
A)ALTER TABLE
B)UPDATE TABLE
C)COOMIT TABLE
D)ROLLBACK TABLE
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
61
A specialty field in mathematics,known as algebra,is dedicated to the use of logical operators.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
62
In an INSERT command,a user can indicate just the attributes that have required values by listing the inside parentheses after the table name.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
63
The command,coupled with appropriate search conditions,is an incredibly powerful tool that enables a user to transform data into information.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
64
In a 1:M relationship,a user must always create the table for the side first.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
65
___ __.is the process the DBMS uses to verify that only registered users access the database.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
66
__ words are words used by SQL to perform specific functions.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
67
The SQL data type DATE stores date in the date format.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
68
With the exception of the database process,most RDBMS vendors use SQL that deviates little from the ANSI standard SQL.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
69
In the SQL environment,the word covers both questions and actions.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
70
A(n),also known as a nested query or an inner query,is a query that is embedded (or nested)inside another query.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
71
A common practice is to create a(n)on any field that is used as a search key,in comparison operations in a conditional expression,or when a user wants to list rows in a specific order.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
72
The basic SQL vocabulary has fewer than words.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
73
A(n)is a logical group of database objects,such as tables and indexes,that are related to each other.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
74
A(n)character is a symbol that can be used as a general substitute for other characters or commands.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
75
The specification is used to avoid having duplicated values in a column.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
76
To delete an index,one must use the command.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
77
DATE()and SYSDATE are special functions that return today's date in MS Access and ,respectively.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
78
To make SQL code more _______,most SQL programmers use one line per column (attribute)definition.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
79
In SQL,all expressions evaluate to true or false.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck
80
U.S.state abbreviations are always two characters,so (2)is a logical choice for the data type representing a state column.
Unlock Deck
Unlock for access to all 92 flashcards in this deck.
Unlock Deck
k this deck