C192 / SQL

Descripción

College C192 Databases Test sobre C192 / SQL , creado por Craig Willey el 30/06/2020.
Craig Willey
Test por Craig Willey, actualizado hace más de 1 año
Craig Willey
Creado por Craig Willey hace más de 4 años
8
0

Resumen del Recurso

Pregunta 1

Pregunta
The SQL command that enables you to make changes in the data is ____.
Respuesta
  • INSERT
  • SELECT
  • COMMIT
  • UPDATE

Pregunta 2

Pregunta
To list all the contents of the PRODUCT table, you would use ____.
Respuesta
  • LIST * FROM PRODUCT;
  • SELECT * FROM PRODUCT;
  • DISPLAY * FROM PRODUCT;
  • SELECT ALL FROM PRODUCT;

Pregunta 3

Pregunta
Which command would you use when making corrections to the PRODUCT table?
Respuesta
  • CHANGE PRODUCT SET P_INDATE = '01/18/2004' WHERE P_CODE = '13-Q2/P2';
  • ROLLBACK PRODUCT SET P_INDATE = '01/18/2004' WHERE P_CODE = '13-Q2/P2';
  • EDIT PRODUCT SET P_INDATE = '01/18/2004' WHERE P_CODE = '13-Q2/P2';
  • UPDATE PRODUCT SET P_INDATE = '01/18/2004' WHERE P_CODE = '13-Q2/P2';

Pregunta 4

Pregunta
Which command is used to select partial table contents?
Respuesta
  • SELECT <column(s)> FROM <Table name> WHERE <Item>;
  • LIST <column(s)> FROM <Table name> WHERE <Conditions>;
  • SELECT <column(s)> FROM <Table name> WHERE <Conditions>;
  • LIST<column(s)> FROM <Table name> WHERE <Item>;

Pregunta 5

Pregunta
Which query will output the table contents when the value of V_CODE is less than or equal to 21344?
Respuesta
  • SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE FROM PRODUCT WHERE V_CODE <> 21344;
  • SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE FROM PRODUCT WHERE V_CODE <=21344;
  • SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE FROM PRODUCT WHERE V_CODE => 21344;
  • SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE FROM PRODUCT WHERE V_CODE = 21344;

Pregunta 6

Pregunta
What is the SQL syntax requirement to list the table contents for either V_CODE = 21344 or V_CODE = 24288?
Respuesta
  • SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE FROM PRODUCT WHERE V_CODE = 21344 OR V_CODE <= 24288
  • SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE FROM PRODUCT WHERE V_CODE = 21344 OR V_CODE => 24288
  • SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE FROM PRODUCT WHERE V_CODE = 21344 OR V_CODE > 24288
  • SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE FROM PRODUCT WHERE V_CODE = 21344 OR V_CODE = 24288

Pregunta 7

Pregunta
What is the command used to list the P_CODE, P_DESCRIPT, P_INDATE, and P_PRICE fields from the Product table in ascending order by P_PRICE?
Respuesta
  • SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICE FROM PRODUCT SEQUENCE BY P_PRICE;
  • SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICE FROM PRODUCT LIST BY P_PRICE;
  • SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICE FROM PRODUCT ORDER BY P_PRICE;
  • SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICE FROM PRODUCT ASCENDING BY P_PRICE;

Pregunta 8

Pregunta
The basic SQL aggregate function that gives the number of rows containing not null values for the given column is ____.
Respuesta
  • COUNT
  • MIN
  • MAX
  • SUM

Pregunta 9

Pregunta
What is the command 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 value of V_CODE match?
Respuesta
  • SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE FROM PRODUCT, VENDOR WHERE PRODUCT.V_CODE <> VENDOR.V_CODE;
  • SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE FROM PRODUCT, VENDOR WHERE PRODUCT.V_CODE = VENDOR.V_CODE;
  • SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE FROM PRODUCT, VENDOR WHERE PRODUCT.V_CODE <= VENDOR.V_CODE;
  • SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE FROM PRODUCT, VENDOR WHERE PRODUCT.V_CODE => VENDOR.V_CODE;

Pregunta 10

Pregunta
What is the command 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 value of V_CODE match and the output is ordered by the Price?
Respuesta
  • SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE FROM PRODUCT, VENDOR WHERE PRODUCT.V_CODE <> VENDOR.V_CODE; ORDER BY P_PRICE;
  • SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE FROM PRODUCT, VENDOR WHERE PRODUCT.V_CODE => VENDOR.V_CODE; ORDER BY P_PRICE;
  • SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE FROM PRODUCT, VENDOR WHERE PRODUCT.V_CODE <= VENDOR.V_CODE; ORDER BY P_PRICE;
  • SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE FROM PRODUCT, VENDOR WHERE PRODUCT.V_CODE = VENDOR.V_CODE; ORDER BY P_PRICE;

Pregunta 11

Pregunta
To delete a row from the PRODUCT table, use the ____ command.
Respuesta
  • KILL
  • DELETE
  • COMMIT
  • ERASE

Pregunta 12

Pregunta
ANSI-standard SQL allows the use of special operators in conjunction with the WHERE clause. A special operator used to check whether an attribute value is null is ____.
Respuesta
  • BETWEEN
  • IS NULL
  • LIKE
  • IN

Pregunta 13

Pregunta
The ____ command is used to modify the table by deleting a column.
Respuesta
  • DROP
  • ALTER
  • DELETE
  • ERASE

Pregunta 14

Pregunta
The ____ function is used to find the highest value in a table column.
Respuesta
  • MAX
  • TOTAL
  • SUM
  • TOP

Pregunta 15

Pregunta
UPDATE tablename ***** [WHERE conditionlist]; What command replaces the ***** in the above statement?
Respuesta
  • SET columnname = expression
  • columnname = expression
  • expression = columnname
  • LET columnname = expression

Pregunta 16

Pregunta
If you wish to perform an inner join based on only one common attribute, you might use the ____ clause.
Respuesta
  • OF
  • USING
  • HAS
  • JOIN ON

Pregunta 17

Pregunta
In a subquery, which query is executed first?
Respuesta
  • Leftmost
  • Rightmost
  • Innermost
  • Outermost
Mostrar resumen completo Ocultar resumen completo

Similar

PMBOK
Maye Tapia
Fórmulas Geométricas (Perímetros)
Diego Santos
Preguntas del Pensamiento Matemático 3
Raúl Fox
Deutsch - B1 - Grammatik - Liste der Verben mit Präpositionen
Sandra PlaGo
VOCALES. Diptongo o Hiato...
JL Cadenas
Plantilla para diccionario de datos
José Francisco Espinosa Garita
Clasificación de variables
Rober Sanchez
EUROPA...
Ulises Yo
conceptos de fisica
stefany2002