



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This quiz was taken by Sir Raza Muhammad at Quaid-i-Azam University for Introduction to Programming course. It includes: Computer, Programming, Engineers, Accesses, Database, Model, Relational, Operations
Typology: Exercises
1 / 6
This page cannot be seen from the preview
Don't miss anything!




A. Application software B. Database management system C. Actual database
ANSWER: A
A. Database model B. Schema C. Subschema D. DBMS
ANSWER: C
A. SELECT B. PROJECT C. JOIN
ANSWER: C
A. SELECT B. PROJECT C. JOIN
ANSWER: B
A. SELECT B. PROJECT C. JOIN
ANSWER: A
select A, B, C from X
A. SELECT B. PROJECT C. JOIN
ANSWER: B
X: A B C 2 5 7 3 3 3
what value will be extracted by the following query?
TEMP SELECT from X where B > C RESULT PROJECT A from TEMP
A. 2 B. 3 C. 4 D. 5
ANSWER: C
X: A B C 2 5 7 3 3 3 4 4 2 5 2 8
what value will be retrieved by the following query?
TEMP SELECT from X where B = C RESULT PROJECT B from TEMP
A. 2 B. 3 C. 4 D. 5
ANSWER: B
X: A B C 2 5 7 3 3 6 4 4 2 5 2 2
what values will be retrieved by the following SQL statement?
select A, B from X where X.B = X.C
A. 2, 5 B. 3, 6 C. 2, 2 D. 5, 2
ANSWER: D
X: A B Y: C D 7 s t 3 2 z r 2
what value would be retrieved by executing the following SQL statement?
what values would be in the tuple produced by the following statement?
Result JOIN X and Y where X.A < Y.D
ANSWER: 2, s, r, 3
X: A B Y: C D 2 s t 1 5 z r 3 w 2
what values would be in the tuple produced by the following statements?
Temp JOIN X and Y where X.A = Y.D Result PROJECT X.B, Y.C from Temp
ANSWER: s, w
X: A B Y: C D 7 s t 1 3 z r 2 1 u
what values would be retrieved by executing the following statement?
select X.A, X.B, Y.C from X, Y where X.A < Y.D
ANSWER: 1, u, t
X: A B Y: C D Z: E F 7 s t 4 2 w 3 z r 2 3 q 1 u
what values would be retrieved by executing the following statement?
select X.B, Y.C, Z.F from X, Y, Z where X.A > Y.D and X.A = Z.E
ANSWER: z, r, q
select A, B from X where C = D
ANSWER: SELECT, PROJECT
ANSWER: The connection between an employee’s name and identification number may not be available in the second database because two employees may have the same address.
X: A B Y: C D 2 s t 1 5 z r 3 w 2
draw the relation Result that would be produced by the following statements?
Temp JOIN X and Y where X.A > Y.D Result PROJECT X.B, Y.C from Temp
ANSWER: X.B Y.C s t z t z r z w
ANSWER: Temp1 SELECT from Parts where PartNumber = “X4J26” Temp2 JOIN Temp1 and Suppliers where Temp1.SupplierID = Suppliers.SupplierID Result PROJECT Suppliers.SupplierID, Suppliers.FaxNumber