Quiz:
Performing
Queries Using SQL
Select the best answer for each question and click Score My Quiz.
-
Which of the clauses in the PROC
SQL program below is written incorrectly?
proc sql;
select style sqfeet bedrooms
from choice.houses
where sqfeet ge 800;
-
How many statements
does the program below contain?
proc sql;
select grapes,oranges,
grapes + oranges as sumsales
from sales.produce
order by sumsales;
-
Complete the program below to
select the columns
Address and SqFeet from
the table List.Size and Price from the
table List.Price. (Only the column Address
appears in both tables.)
proc sql;
_____________
from list.size,list.price;
-
Which of the clauses below correctly
sorts rows by the values of the columns
Price and SqFeet ?
-
Which clause below specifies that
the two tables Produce and Hardware
be queried? Both tables are located in a library assigned the libref
Sales.
-
Complete the SELECT clause below
to create a new column named
Profit by subtracting the
values of the column Cost from those of the column
Price .
select fruit,cost,price,
________________
-
Which of the following is false?
To end the SQL procedure, you can
-
Which of the following statements
is false?
-
Which statement is true
regarding the use of the PROC SQL step to query data stored in two
or more tables?
-
Which clause in the following
program is incorrect?
proc sql;
select lastname,firstname,address,age
from company.employees census.demo
where employees.id=demo.id
group by lastname;
|