Sunteți pe pagina 1din 8

Question 1

Answer saved
Marked out of 1.00

Flag question

Question text

This is used to display rows based on a range of values.


Select one:
a. Like
b. Comparison
c. Between
d. IN
Clear my choice

Question 2

Answer saved
Marked out of 1.00

Flag question

Question text

True/False. Character strings and date values are enclosed with double quotation marks.
FALSE
Answer:

Question 3

Answer saved
Marked out of 1.00
Flag question

Question text

Given the output below. Which of the following is the correct PL/SQL to be used?

Select one:
a. SELECT WAREHOUSE, CLASS FROM PARTS;
b. SELECT DISTINCT WAREHOUSE, CLASS FROM PARTS;
c. SELECT WAREHOUSE, CLASS FROM PARTS WHERE CLASS IN
(‘AP’,’SG’,’HW’);
d. SELECT DISTINCT WAREHOUSE, CLASS FROM PARTS WHERE WAREHOUSE
>=1;
Clear my choice

Question 4

Answer saved
Marked out of 1.00

Flag question

Question text

Choose the letter of the correct answer based on table PARTS as shown below
Which of the following is the correct report listing only the column DESCRIPTION, ONHAND
and WAREHOUSE of all PARTS where ONHAND is greater than or equal to 21.

SELECT DESCRIPTION, ONHAND, WAREHOUSE FROM PARTS WHERE ONHAND


>=21;

SELECT DESCRIPTION, ONHAND, WAREHOUSE FROM PARTS WHERE ONHAND


<=21;

SELECT DESCRIPTION, ONHAND, WAREHOUSE FROM PARTS WHERE ONHAND


=21;

SELECT DESCRIPTION, ONHAND, WAREHOUSE FROM PARTS WHERE ONHAND


>21;

Question 5

Answer saved
Marked out of 1.00

Flag question

Question text

Choose the letter of the correct answer based on table PARTS as shown below
Which of the following is the correct report listing the column PARTNO, DESCRIPTION and
WAREHOUSE. Get only that description that does not ends with ‘ER’. Note that you have to
merge the said three columns, rename the merge column as “Parts Record”. Below is the sample
output for column.
Parts Record
AT94is the part number ofIRONwhich belong to warehouse3

SELECT (PARTNUM || ‘is the part number of’|| DESCRIPTION || ‘which belongs to’ ||
WAREHOUSE FROM PARTS WHERE PARTNUM NOT LIKE ‘%ER’;

SELECT (PARTNUM || ‘is the part number of’ ||DESCRIPTION || ‘which belongs to’ ||
WAREHOUSE) FROM PARTS WHERE PARTNUM NOT LIKE ‘ER%’;

SELECT (PARTNUM ‘is the part number of’ DESCRIPTION‘which belongs


to’WAREHOUSE) FROM PARTS WHERE PARTNUM NOT LIKE ‘%ER’;

SELECT (PARTNUM || ‘is the part number of’ ||DESCRIPTION || ‘which belongs to’ ||
WAREHOUSE) FROM PARTS WHERE PARTNUM LIKE ‘%ER’;

Question 6

Answer saved
Marked out of 1.00

Flag question

Question text

This is used to display rows based on a range of values.


Select one:
a. Between
b. IN
c. Like
d. Comparison
Clear my choice

Question 7

Answer saved
Marked out of 1.00

Flag question

Question text

Given the output below. Which of the following is the correct PL/SQL to be used?

Select one:
a. SELECT ALL FROM PARTS;
b. SELECT * FROM TABLE PARTS;
c. SELECT * FROM PARTS;
d. SELECT ALL COLUMN FROM PARTS;
Clear my choice

Question 8

Answer saved
Marked out of 1.00
Flag question

Question text

Given the output below. Which of the following is the correct PL/SQL to be used

Select one:
a. SELECT WAREHOUSE, CLASS FROM PARTS;
b. SELECT DISTINCT WAREHOUSE FROM PARTS;
c. SELECT DICTINCT WAREHOUSE, CLASS FROM PARTS WHERE WAREHOUSE
>=1;
d. SELECT WAREHOUSE, CLASS FROM PARTS WHERE CLASS IN
(‘AP’,’SG’,’HW’);
Clear my choice

Question 9

Answer saved
Marked out of 1.00

Flag question

Question text

Choose the letter of the correct answer based on table PARTS as shown below
Which of the following is the correct report that will display the DESCRIPTION,
WAREHOUSE AND distinct value for CLASS.

SELECT DESCRIPTION, WAREHOUSE, DISTINCT (CLASS) FROM PARTS;

SELECT DESCRIPTION, WAREHOUSE, CLASS FROM PARTS;

SELECT DISTINCT DESCRIPTION, WAREHOUSE, CLASS FROM PARTS;

SELECT DESCRIPTION, WAREHOUSE, DISTINCT ‘CLASS ‘ FROM PARTS;

Question 10

Answer saved
Marked out of 1.00

Flag question

Question text

Choose the letter of the correct answer based on table PARTS as shown below
Which of the following is the correct report listing only the column DESCRIPTION, ONHAND,
CLASS and PRICE of all price where the description ends with letter ‘N’.

SELECT DESCRIPTION, ONHAND, CLASSS FROM PARTS WHERE DESCRIPTION


LIKE ‘%N’;

SELECT DESCRIPTION, ONHAND, CLASSS FROM PARTS WHERE DESCRIPTION


LIKE ‘N%’;

SELECT DESCRIPTION, ONHAND, CLASSS FROM PARTS WHERE DESCRIPTION


LIKE ‘%N%’;

SELECT DESCRIPTION, ONHAND, CLASSS FROM PARTS WHERE DESCRIPTION


NOT LIKE ‘%N’;

S-ar putea să vă placă și