Dbms 1 Midterm Lab Exam 40-50
Dbms 1 Midterm Lab Exam 40-50
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.
a.
Alias
b.
Literal
c.
String
d.
Table name
Given the output below. Which of the following is the correct PL/SQL to be used?
Select one:
a.
FROM PARTS
b.
FROM PARTS
c.
FROM PARTS
d.
FROM PARTS
Feedback
a.
*
b.
AS
c.
d.
||
a.
Clauses are usually placed on separate lines for readability and
ease of editing.
b.
SQL statements are not case sensitive.
c.
Keywords cannot be split across lines or abbreviated.
d.
Indents should be used to make code more readable.
a.
Comparison
b.
Like
c.
Between
d.
IN
a.
MDAS operator
b.
Numerical Values
c.
Arithmetic expression
d.
Logical Condition
a.
Comparison
b.
IN
c.
Like
d.
Between
Given the output below. Which of the following is the correct PL/SQL to be used?
Select one:
a.
b.
c.
d.
SELECT DESCRIPTION, PRICE *.5 +(PRICE-100) FROM PARTS WHERE
PRICE <10000;
Feedback
a.
Between
b.
Like
c.
Comparison
d.
IN