Professional Documents
Culture Documents
1
1. The code below is a create-table statement.
A. State what each line in the statement does.
B. Include an example of the data that will go in each column.
2. Based on your knowledge of the above question, inspect the statements below and iden-
tify what could be wrong with them.
A.
C.
D.
2. The next set of questions are all related to the table “Easy_Drinks” shown below:
What drink name(s) are the outputs of these scripts?
A.
B.
C.
D.
E.
F.
G.
H.
3. Using the “Easy_Drinks” table, write a select statement in 3 different ways with the
output/result being ‘Bull Frog’ all 3 times.
A.
B.
C.
E. List the details of the emps in asc order of the deptnos and desc of jobs.
F. Display all the unique job groups in the descending order
I. List the Empno, Ename, Sal, Daily Sal of all Employees in the ASC order of AnnSal
K. List the empno, ename, sal, exp of all emps working for Mgr 7839.
L. Display the details of the emps whose Comm. Is more than their sal.
N. List the emps who are either ‘CLERK’ or ‘ANALYST’ in the desc order