Filters
Question type

Study Flashcards

The ____________________ clause of the GROUP BY statement operates very much like the WHERE clause in the SELECT statement.

Correct Answer

verifed

verified

The ANSI SQL standards are also accepted by the ISO.

A) True
B) False

Correct Answer

verifed

verified

You can create a logical (virtual)table by using the MAKE VIEW command.

A) True
B) False

Correct Answer

verifed

verified

The SQL query to output the contents of the EMPLOYEE table sorted by last name,first name,and initial is ____.


A) SELECT EMP_LNAME,EMP_FNAME,EMP_INITIAL,EMP_AREACODE,EMP_PHONE
FROM EMPLOYEE
LIST BY EMP_LNAME,EMP_FNAME,EMP_INITIAL;
B) SELECT EMP_LNAME,EMP_FNAME,EMP_INITIAL,EMP_AREACODE,EMP_PHONE
FROM EMPLOYEE
ORDER BY EMP_LNAME,EMP_FNAME,EMP_INITIAL;
C) SELECT EMP_LNAME,EMP_FNAME,EMP_INITIAL,EMP_AREACODE,EMP_PHONE
FROM EMPLOYEE
DISPLAY BY EMP_LNAME,EMP_FNAME,EMP_INITIAL;
D) SELECT EMP_LNAME,EMP_FNAME,EMP_INITIAL,EMP_AREACODE,EMP_PHONE
FROM EMPLOYEE
SEQUENCE BY EMP_LNAME,EMP_FNAME,EMP_INITIAL;

E) None of the above
F) B) and C)

Correct Answer

verifed

verified

Only numeric data types can be added and subtracted in SQL.

A) True
B) False

Correct Answer

verifed

verified

The SQL command that lets you insert rows into a table is ____.


A) INSERT
B) SELECT
C) COMMIT
D) UPDATE

E) B) and D)
F) None of the above

Correct Answer

verifed

verified

A(n)____________________,also known as a nested query or an inner query,is a query that is embedded (or nested)inside another query.

Correct Answer

verifed

verified

Which query 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;

E) A) and B)
F) None of the above

Correct Answer

verifed

verified

SQL character data format(s) is(are) ____.


A) CHAR and VARCHAR
B) VARCHAR only
C) Alphanumeric
D) CHAR only

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

The SQL command that lets you permanently save data changes is ____.


A) INSERT
B) SELECT
C) COMMIT
D) UPDATE

E) B) and D)
F) A) and B)

Correct Answer

verifed

verified

The special operator used to check for similar character strings is ____.


A) BETWEEN
B) IS NULL
C) LIKE
D) IN

E) A) and D)
F) A) and C)

Correct Answer

verifed

verified

Which query 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

E) A) and B)
F) B) and D)

Correct Answer

verifed

verified

A(n)____________________ character is a symbol that can be used as a general substitute for other characters or commands.

Correct Answer

verifed

verified

Frequency distributions can be created quickly and easily using the SQL ____________________ clause.

Correct Answer

verifed

verified

Data type selection is usually dictated by the nature of the data and by the intended use.

A) True
B) False

Correct Answer

verifed

verified

Using the ____________________ command,SQL indexes can be created on the basis of any selected attribute.

Correct Answer

verifed

verified

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;

E) None of the above
F) All of the above

Correct Answer

verifed

verified

You cannot insert a row containing a null attribute value using SQL.

A) True
B) False

Correct Answer

verifed

verified

When joining three or more tables,you need to specify a join condition for one pair of tables.

A) True
B) False

Correct Answer

verifed

verified

Oracle users can use the Access QBE (query by example)query generator.

A) True
B) False

Correct Answer

verifed

verified

Showing 41 - 60 of 100

Related Exams

Show Answer