You are on page 1of 22

3/22/2019 Midterms

Network connection lost. (Autosave failed).

Make a note of any responses entered on this page in the last few minutes, then try to re-
connect.
Question 1 Choose
Once connection has the letter
been of the correct
re-established, youranswer based
responses on table
should PARTS
be saved andas shown
this below
message
Not yet will disappear.
answered

Marked out of
1.00

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’;

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=35085001 1/22
3/22/2019 Midterms
Question 2 Chooselost.
the (Autosave
letter of the correct answer based on table PARTS as shown below
Network connection failed).
Not yet
answered Make a note of any responses entered on this page in the last few minutes, then try to re-
connect.
Marked out of
1.00
Once connection has been re-established, your responses should be saved and this message
will disappear.

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 3 Given the output below. Which of the following is the correct PL/SQL to be used?
Not yet
answered
Marked out of
1.00

Select one:
a. SELECT DESCRIPTION, PRICE *.5 +PRICE-100 FROM PARTS WHERE
PRICE <10000;
b. SELECT DESCRIPTION, PRICE *.5 +PRICE-100 FROM PARTS WHERE
PRICE >10000;

c. SELECT DESCRIPTION, (PRICE *.5 )+PRICE-100 FROM PARTS WHERE


PRICE >10000;

d. SELECT DESCRIPTION, PRICE *.5 +(PRICE-100) FROM PARTS WHERE


PRICE <10000;

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=35085001 2/22
3/22/2019 Midterms
Question 4 Which oflost.
the (Autosave
following isfailed).
not true about writing SQL statements?
Network connection
Not yet
answered Make a noteSelect
of any one:
responses entered on this page in the last few minutes, then try to re-
connect.
Marked out of
1.00
a. Indents should be used to make code more readable.
Once connection has been re-established, your responses should be saved and this message
b. Clauses are usually placed on separate lines for readability and ease of
will disappear.
editing.
c. Keywords cannot be split across lines or abbreviated.

d. SQL statements are not case sensitive.

Question 5 A system used to concatenate one column to another column.


Not yet
answered
Select one:
Marked out of
a. *
1.00
b. ( )

c. ||
d. AS

Question 6 Supposed that the user uses the ff SELECT statement: what will be the possible
Not yet output.
answered
Marked out of SELECT GRADE AS STUDENT MARK FROM GRADE_REPORT;
1.00

Select one:
a. Error because of the keyword AS.
b. Will display all rows and columns.

c. Will display the column GRADE rename as STUDENT MARK


d. Error because of missing “” mark.

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=35085001 3/22
3/22/2019 Midterms
Question 7 Given the output below.failed).
Which of the following is the correct PL/SQL to be used?
Network connection lost. (Autosave
Not yet
answered Make a note of any responses entered on this page in the last few minutes, then try to re-
connect.
Marked out of
1.00
Once connection has been re-established, your responses should be saved and this message
will disappear.
Select one:
a. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE CLASS = ‘AP’ AND DESCRIPTION LIKE ‘__S%’;

b. SELECT DESCRIPTION, ONHAND, CLASS


FROM PARTS
WHERE CLASS = ‘AP’ OR ONHAND >=8;

c. SELECT DESCRIPTION, ONHAND, CLASS


FROM PARTS
WHERE CLASS = ‘AP’ OR DESCRIPTION LIKE ‘__S%’;

d. SELECT DESCRIPTION, ONHAND, CLASS


FROM PARTS
WHERE CLASS = ‘AP’ OR ONHAND BETWEEEN 8 AND 12

Question 8 True/False. A null value means that the value is unavailable, unassigned, unknown, or
Not yet inapplicable.
answered

Marked out of
1.00
Answer: True

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=35085001 4/22
3/22/2019 Midterms
Question 9 Chooselost.
the (Autosave
letter of the correct answer based on table PARTS as shown below
Network connection failed).
Not yet
answered Make a note of any responses entered on this page in the last few minutes, then try to re-
connect.
Marked out of
1.00
Whichhas
Once connection of the
beenfollowing is the correct
re-established, report listing
your responses only the
should column
be saved PARTNUM,
and this message
DESCRIPTION
will disappear. and PRICE of all PARTS where price is less than 500. Sort the PRICE
in ascending order.

SELECT PARTNUN, DESCRIPTION, PRICE FROM PARTS WHERE PRICE <


500;

SELECT PARTNUN, DESCRIPTION, PRICE FROM PARTS WHERE PRICE >


500;

SELECT PARTNUN, DESCRIPTION, PRICE FROM PARTS WHERE PRICE


<=500;

SELECT PARTNUN, DESCRIPTION, PRICE FROM PARTS WHERE PRICE >=


500;

Question 10 Choose the letter of the correct answer based on table PARTS as shown below
Not yet
answered
Marked out of
1.00

Which of the following is the correct report listing only the column DESCRIPTION,
WAREHOUSE, CLASS and PRICE of all parts where the description contains keyword
‘SHE’.

SELECT DESCRIPTION, WAREHOUSE, CLASS, PRICE FROM PARTS WHERE


DESCRIPTION LIKE ‘%SHE%’;

SELECT DESCRIPTION, WAREHOUSE, CLASS, PRICE FROM PARTS WHERE


DESCRIPTION LIKE ‘SHE%’;

SELECT DESCRIPTION, WAREHOUSE, CLASS, PRICE FROM PARTS WHERE


DESCRIPTION LIKE ‘%SHE’;
SELECT DESCRIPTION, WAREHOUSE, CLASS, PRICE FROM PARTS WHERE
DESCRIPTION LIKE ‘SHE’;

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=35085001 5/22
3/22/2019 Midterms
Question 11 Chooselost.
the (Autosave
letter of the correct answer based on table PARTS as shown below
Network connection failed).
Not yet
answered Make a note of any responses entered on this page in the last few minutes, then try to re-
connect.
Marked out of
1.00
Once connection has been re-established, your responses should be saved and this message
will disappear.

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 12 Choose the letter of the correct answer based on table PARTS as shown below
Not yet
answered
Marked out of
1.00

Which of the following is the correct report listing only the column PARTNUM, CLASS
and ONHAND of all parts where partnum is equal to AT94, DR93 and KV29. (Note 1
query only and do not use logical condition)

SELECT PARTNUM, CLASS, ONHAND FROM PARTS WHERE PARTNUM IN


(‘AT94’,’DR93’,’KV29’);
SELECT PARTNUM, CLASS, ONHAND FROM PARTS WHERE PARTNUM IN
(AT94,DR93,KV29);

SELECT PARTNUM, CLASS, ONHAND FROM PARTS WHERE PARTNUM =


(‘AT94’,’DR93’,’KV29’);
SELECT PARTNUM, CLASS, ONHAND FROM PARTS WHERE PARTNUM NOT
IN (‘AT94’,’DR93’,’KV29’);

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=35085001 6/22
3/22/2019 Midterms
Question 13 True/False.
Network connection lost.This symbolfailed).
(Autosave % denotes zero or many characters.
Not yet
answered Make a note of any responses entered on this page in the last few minutes, then try to re-
Answer:
connect.
Marked out of
1.00
Once connection has been re-established, your responses should be saved and this message
will disappear.

Question 14 This is used to brings together data that is stored in different tables by specifying the
Not yet link between them.
answered

Marked out of Select one:


1.00
a. Inclusion

b. Projection

c. Joins
d. Selection

Question 15 It is a value that is unavailable, unassigned, unknown, or inapplicable.


Not yet
answered
Select one:
Marked out of
a. Space
1.00
b. Zero

c. Blank
d. NULL

Question 16 This is used to selects the rows in a table that are returned by a query. Various criteria
Not yet can be used to restrict the rows that are retrieved.
answered
Marked out of Select one:
1.00
a. Selection

b. Projection

c. Joins
d. Inclusion

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=35085001 7/22
3/22/2019 Midterms
Question 17 This is use
Network connection lost.to(Autosave
Selects the columns in a table that are returned by a query. Selects a few
failed).
Not yet or as many of the columns as required.
answered Make a note of any responses entered on this page in the last few minutes, then try to re-
connect.
Marked out of Select one:
1.00
Once connectiona.has
Joins
been re-established, your responses should be saved and this message
will disappear.
b. Projection
c. Selection
d. Inclusion

Question 18 Given the output below. Which of the following is the correct PL/SQL to be used?
Not yet
answered

Marked out of
1.00

Select one:
a. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE CLASS = ‘AP’ AND ONHAND BETWEEN 8 AND 12;

b. SELECT DESCRIPTION, ONHAND, CLASS


FROM PARTS
WHERE CLASS = ‘AP’ OR ONHAND BETWEEN 8 AND 12;

c. SELECT DESCRIPTION, ONHAND, CLASS


FROM PARTS
WHERE CLASS = ‘AP’ AND DESCRIPTION LIKE ‘%ER’;

d. SELECT DESCRIPTION, ONHAND, CLASS


FROM PARTS
WHERE CLASS = ‘AP’ OR DESCRIPTION LIKE ‘%ER’;

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=35085001 8/22
3/22/2019 Midterms
Question 19 This character is used tofailed).
override the default precedence or to clarify the statement.
Network connection lost. (Autosave
Not yet
answered Make a noteSelect
of any one:
responses entered on this page in the last few minutes, then try to re-
connect.
Marked out of
a. ||
1.00
Once connection has been re-established, your responses should be saved and this message
b. ( )
will disappear.
c. AS
d. *

Question 20 Given the output below. Which of the following is the correct PL/SQL to be used
Not yet
answered

Marked out of
1.00

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’);

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=35085001 9/22
3/22/2019 Midterms
Question 21 Chooselost.
the (Autosave
letter of the correct answer based on table PARTS as shown below
Network connection failed).
Not yet
answered Make a note of any responses entered on this page in the last few minutes, then try to re-
connect.
Marked out of
1.00
Once connection has been re-established, your responses should be saved and this message
will disappear.

Which of the following is the correct report that will list only the column DESCRIPTION,
PARTNUM, CLASS, and PRICE of all PART whose CLASS is equal to HW.

SELECT DESCRIPTION, PARTNUM, CLASS, PRICE FROM PARTS WHERE


CLASS=’HW’;

SELECT DESCRIPTION, PARTNUM, CLASS, PRICE FROM PARTS WHERE


class="HW";
SELECT ‘DESCRIPTION’, ‘PARTNUM’, ‘CLASS’, ‘PRICE’ FROM PARTS
WHERE CLASS=’HW’;

SELECT COLUMN DESCRIPTION, PARTNUM, CLASS, PRICE FROM PARTS


WHERE CLASS=’HW’;

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=35085001 10/22
3/22/2019 Midterms
Question 22 Chooselost.
the (Autosave
letter of the correct answer based on table PARTS as shown below
Network connection failed).
Not yet
answered Make a note of any responses entered on this page in the last few minutes, then try to re-
connect.
Marked out of
1.00
Once connection has been re-established, your responses should be saved and this message
will disappear.

Which of the following is the correct report that will merge the column DESCRIPTION
and PRICE put a literal character string of = “ with a price of ” in between the two
columns. Limit the rows returned by getting only the partnum that starts with letter ‘K’.

SELECT (DESCRIPTION|| ‘WITH A PRICE OF’ || PRICE) FROM PARTS WHERE


PARTNUM LIKE ‘K%’;

SELECT (DESCRIPTION|| ‘WITH A PRICE OF’ || PRICE) FROM PARTS WHERE


PARTNUM LIKE ‘%K’;
SELECT (DESCRIPTION|| ‘WITH A PRICE OF’ || PRICE) FROM PARTS WHERE
PARTNUM LIKE ‘%K%’;
SELECT (DESCRIPTION|| ‘WITH A PRICE OF’ || PRICE) FROM PARTS WHERE
PARTNUM LIKE ‘__K%’;

Question 23 Given the output below. Which of the following is the correct PL/SQL to be used?
Not yet
answered
Marked out of
1.00

Select one:
a. SELECT ALL FROM PARTS;

b. SELECT ALL COLUMN FROM PARTS;

c. SELECT * FROM TABLE PARTS;

d. SELECT * FROM PARTS;

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=35085001 11/22
3/22/2019 Midterms
Question 24 Given the output below.failed).
Which of the following is the correct PL/SQL to be used?
Network connection lost. (Autosave
Not yet
answered Make a note of any responses entered on this page in the last few minutes, then try to re-
connect.
Marked out of
1.00
Once connection has been re-established, your responses should be saved and this message
will disappear.

Select one:
a. SELECT WAREHOUSE, CLASS FROM PARTS WHERE CLASS IN
(‘AP’,’SG’,’HW’);

b. SELECT DISTINCT WAREHOUSE, CLASS FROM PARTS WHERE


WAREHOUSE >=1;

c. SELECT DISTINCT WAREHOUSE, CLASS FROM PARTS;

d. SELECT WAREHOUSE, CLASS FROM PARTS;

Question 25 Choose the letter of the correct answer based on table PARTS as shown below
Not yet
answered

Marked out of
1.00

Which of the following is the correct report listing only the column CLASS,
DESCRIPTION and PRICE of all PARTS where price range is between 200 to 500.
Sort the Price in descending order.

SELECT CLASS, DESCRIPTION, PRICE FROM PARTS WHERE PRICE


BETWEEN 200 AND 500;

SELECT CLASS, DESCRIPTION, PRICE FROM PARTS WHERE PRICE


BETWEEN 500 AND 500;

SELECT CLASS, DESCRIPTION, PRICE FROM PARTS WHERE PRICE


BETWEEN =200 AND 500;

SELECT CLASS, DESCRIPTION, PRICE FROM PARTS WHERE PRICE


BETWEEN 200 AND BETWEEN 500;

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=35085001 12/22
3/22/2019 Midterms
Question 26 This is used
Network connection lost. to test for values
(Autosave failed).in a specified set of values.
Not yet
answered Make a noteSelect
of any one:
responses entered on this page in the last few minutes, then try to re-
connect.
Marked out of
a. Between
1.00
Once connection has been re-established, your responses should be saved and this message
b. Comparison
will disappear.
c. Like
d. IN

Question 27 This is used to in conditions that compare one expression with another value or
Not yet expression.
answered

Marked out of Select one:


1.00
a. Add
b. Subtraction

c. Comparison

d. Logical Condition

Question 28 This is use to create expression with number and date values.
Not yet
answered
Select one:
Marked out of
1.00
a. MDAS operator

b. Logical Condition

c. Numerical Values

d. Arithmetic expression

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=35085001 13/22
3/22/2019 Midterms
Question 29 Chooselost.
the (Autosave
letter of the correct answer based on table PARTS as shown below
Network connection failed).
Not yet
answered Make a note of any responses entered on this page in the last few minutes, then try to re-
connect.
Marked out of
1.00
Once connection has been re-established, your responses should be saved and this message
will disappear.

Which of the following is the correct report listing the DESCRIPTION and Price (Note
that in column PRICE add ADDITIONAL 10000). Get only the prices with no digit that
is equal to ‘5’. Note that you have to concatenate the said column and rename the
merge column as “New Price Lists”. Sort the data in DESC order by Price.

SELECT DESCRIPTION, PRICE + 10000 AS “NEW PRICE LISTS” FROM


PARTS ORDER BY PRICE DESC;

SELECT DESCRIPTION, PRICE + 10000 AS NEW PRICE LISTS FROM PARTS


ORDER BY PRICE DESC;

SELECT DESCRIPTION, PRICE + 10000 AS “NEW PRICE LISTS” FROM


PARTS ORDER BY PRICE;
SELECT DESCRIPTION, PRICE + 10000 + PRICE AS “NEW PRICE LISTS”
FROM PARTS ORDER BY PRICE DESC;

Question 30 Choose the letter of the correct answer based on table PARTS as shown below
Not yet
answered
Marked out of
1.00

Which of the following is the correct report showing all rows and columns sort the
description in ascending order.

SELECT * FROM PARTS ORDER BY DESCRIPTION DESC;


SELECT * FROM PARTS ORDER BY DESCRIPTION;

SELECT * FROM PARTS ORDER BY DESCRIPTION ASC;

SELECT * FROM PARTS ORDER BY DESC;

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=35085001 14/22
3/22/2019 Midterms
Question 31 It is a character, a number, or a date that is included in the SELECT statement.
Network connection lost. (Autosave failed).
Not yet
answered Make a noteSelect
of any one:
responses entered on this page in the last few minutes, then try to re-
connect.
Marked out of
a. Table name
1.00
Once connection has been re-established, your responses should be saved and this message
b. Literal
will disappear.
c. Alias
d. String

Question 32 This is used to test for values in a specified set of values.


Not yet
answered
Select one:
Marked out of
a. Like
1.00
b. Between

c. Comparison
d. IN

Question 33 True/False. Character strings and date values are enclosed with double quotation
Not yet marks.
answered
Marked out of
1.00 Answer: False

Question 34 This is used to perform wildcard searches of valid search string values.
Not yet
answered
Select one:
Marked out of
1.00
a. Between

b. Comparison

c. IN
d. Like

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=35085001 15/22
3/22/2019 Midterms
Question 35 This is used
Network connection lost. to display rows
(Autosave based on a range of values.
failed).
Not yet
answered Make a noteSelect
of any one:
responses entered on this page in the last few minutes, then try to re-
connect.
Marked out of
a. IN
1.00
Once connection has been re-established, your responses should be saved and this message
b. Comparison
will disappear.
c. Between

d. Like

Question 36 Given the output below. Which of the following is the correct PL/SQL to be used?
Not yet
answered

Marked out of
1.00

Select one:
a. SELECT (PARTNUM|| ‘belong to’||DESCRIPTION) FROM PARTS WHERE
CLASS = SG;

b. SELECT (PARTNUM|| belong to||DESCRIPTION) FROM PARTS WHERE


CLASS = ‘SG’;

c. SELECT (PARTNUM|| ‘belong to’||DESCRIPTION) FROM PARTS WHERE


PARTNUM IN (‘BV06,’KV29’)

d. SELECT (PARTNUM|| ‘belong to’||DESCRIPTION) FROM PARTS WHERE


CLASS = ‘SG’;

Question 37 This is used to perform wildcard searches of valid search string values.
Not yet
answered
Select one:
Marked out of
1.00
a. Comparison

b. IN

c. Between
d. Like

Question 38 This is used to restrict the rows that are returned by a query.
Not yet
answered
Select one:
Marked out of
1.00
a. Delete

b. Select

c. Insert
d. Where
https://blended.amauonline.com/mod/quiz/attempt.php?attempt=35085001 16/22
3/22/2019 Midterms
Question 39 Chooselost.
the (Autosave
letter of the correct answer based on table PARTS as shown below
Network connection failed).
Not yet
answered Make a note of any responses entered on this page in the last few minutes, then try to re-
connect.
Marked out of
1.00
Once connection has been re-established, your responses should be saved and this message
will disappear.

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 40 This is used to display rows based on a range of values.


Not yet
answered
Select one:
Marked out of
1.00
a. Like
b. Comparison

c. IN

d. Between

Question 41 True/False. The != not equal to symbol is also equal to this symbol<>.
Not yet
answered
Answer: True
Marked out of
1.00

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=35085001 17/22
3/22/2019 Midterms
Question 42 Given the output below.failed).
Which of the following is the correct PL/SQL to be used?
Network connection lost. (Autosave
Not yet
answered Make a note of any responses entered on this page in the last few minutes, then try to re-
connect.
Marked out of
1.00
Once connection has been re-established, your responses should be saved and this message
will disappear.
Select one:
a. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE ONHAND >=9;

b. SELECT DESCRIPTION, ONHAND, CLASS


FROM PARTS
WHERE CLASS IN (‘HW’,’SG’);

c. SELECT DESCRIPTION, ONHAND, CLASS


FROM PARTS
WHERE DESCRIPTION LIKE ‘%L’;

d. SELECT DESCRIPTION, ONHAND, CLASS


FROM PARTS
WHERE DESCRIPTION LIKE ‘%L%’;

Question 43 Choose the letter of the correct answer based on table PARTS as shown below
Not yet
answered

Marked out of
1.00

Which of the following is the correct report that will display the distinct value for CLASS
and WAREHOUSE limit the rows by getting only the parts under WAREHOUSE 3?

SELECT CLASS, WAREHOUSE FROM PARTS WHERE WAREHOUSE = 3;

SELECT CLASS, WAREHOUSE FROM PARTS WHERE WAREHOUSE = ‘3’;

SELECT CLASS, WAREHOUSE FROM PARTS WHERE WAREHOUSE = =3;

SELECT CLASS, WAREHOUSE =3 FROM PARTS WHERE WAREHOUSE = 3;

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=35085001 18/22
3/22/2019 Midterms
Question 44 Chooselost.
the (Autosave
letter of the correct answer based on table PARTS as shown below
Network connection failed).
Not yet
answered Make a note of any responses entered on this page in the last few minutes, then try to re-
connect.
Marked out of
1.00
Once connection has been re-established, your responses should be saved and this message
will disappear.

Which of the following is the correct report listing only the column DESCRIPTION,
CLASS and PRICE of all PARTS where class is not equal to AP.

SELECT DESCRIPTION, CLASS, PRICE FROM PARTS WHERE CLASS NOT


LIKE ‘%AP%’;

SELECT DESCRIPTION, CLASS, PRICE FROM PARTS WHERE CLASS NOT


LIKE ‘%AP’;
SELECT DESCRIPTION, CLASS, PRICE FROM PARTS WHERE CLASS != AP;

SELECT DESCRIPTION, CLASS, PRICE FROM PARTS WHERE CLASS <> AP;

Question 45 This is used to in conditions that compare one expression with another value or
Not yet expression.
answered
Marked out of Select one:
1.00
a. Subtraction

b. Comparison

c. Logical Condition

d. Add

Question 46 This is used to restrict the rows that are returned by a query.
Not yet
answered
Select one:
Marked out of
1.00
a. Insert

b. Delete

c. Select
d. Where

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=35085001 19/22
3/22/2019 Midterms
Question 47 True/False
Network connection lost.Character
(Autosavevalues are format sensitive and date values are case sensitive-
failed).
Not yet sensitive.
answered Make a note of any responses entered on this page in the last few minutes, then try to re-
connect.
Marked out of
1.00
Answer:
Once connection has been re-established, your responses should be saved and this message
will disappear.

Question 48 Given the output below. Which of the following is the correct PL/SQL to be used?
Not yet
answered

Marked out of
1.00

Select one:
a. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE DESCRIPTION LIKE ‘%R’;

b. SELECT DESCRIPTION, ONHAND, CLASS


FROM PARTS
WHERE CLASS IN (‘HW’,’AP’);

c. SELECT DESCRIPTION, ONHAND, CLASS


FROM PARTS
WHERE DESCRIPTION LIKE ‘R%’;

d. SELECT DESCRIPTION, ONHAND, CLASS


FROM PARTS
WHERE CLASS = ‘AP’ OR CLASS = ‘HW’;

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=35085001 20/22
3/22/2019 Midterms
Question 49 Chooselost.
the (Autosave
letter of the correct answer based on table PARTS as shown below
Network connection failed).
Not yet
answered Make a note of any responses entered on this page in the last few minutes, then try to re-
connect.
Marked out of
1.00
Once connection has been re-established, your responses should be saved and this message
will disappear.

Which of the following is the correct report listing only the column DESCRIPTION,
PARTNUM, CLASS and PRICE of all parts where the description fourth letter starting
from the first is equal to ‘D’.

SELECT DESCRIPTION, PARTNUM, CLASS, PRICES FROM PARTS WHERE


DESCRIPTION LIKE ‘___D%’;

SELECT DESCRIPTION, PARTNUM, CLASS, PRICES FROM PARTS WHERE


DESCRIPTION LIKE ‘%D___’;

SELECT DESCRIPTION, PARTNUM, CLASS, PRICES FROM PARTS WHERE


DESCRIPTION LIKE ‘D%’;
SELECT DESCRIPTION, PARTNUM, CLASS, PRICES FROM PARTS WHERE
DESCRIPTION LIKE ‘%D’;

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=35085001 21/22
3/22/2019 Midterms
Question 50 Given the output below.failed).
Which of the following is the correct PL/SQL to be used?
Network connection lost. (Autosave
Not yet
answered Make a note of any responses entered on this page in the last few minutes, then try to re-
connect.
Marked out of
1.00
Once connection has been re-established, your responses should be saved and this message
will disappear.
Select one:
a. SELECT DESCRIPTION, ONHAND,CLASS
FROM PARTS
WHERE CLASS = HW;

b. SELECT DESCRIPTION, ONHAND,CLASS


FROM PARTS
WHERE CLASS = ‘HW’;

c. SELECT DESCRIPTION, ONHAND,CLASS


FROM PARTS
WHERE ONHAND >=21;

d. SELECT DESCRIPTION, ONHAND,CLASS


FROM PARTS
WHERE ONHAND IN(50,21,22);

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=35085001 22/22

You might also like