0% found this document useful (0 votes)
58 views2 pages

University of The East - Manila College of Engineering Computer Engineering Department Midterm Quiz No. 1

The document contains instructions for a midterm quiz involving relational database operations on two tables - Table A and Table B. The tables contain product information. Students are asked to perform SELECT, INTERSECT, SUBTRACT, and UNION operations on the tables and write the results. The operations select products by price, find the intersection of the tables, subtract one table from the other, and combine the tables.

Uploaded by

Giezel Revis
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views2 pages

University of The East - Manila College of Engineering Computer Engineering Department Midterm Quiz No. 1

The document contains instructions for a midterm quiz involving relational database operations on two tables - Table A and Table B. The tables contain product information. Students are asked to perform SELECT, INTERSECT, SUBTRACT, and UNION operations on the tables and write the results. The operations select products by price, find the intersection of the tables, subtract one table from the other, and combine the tables.

Uploaded by

Giezel Revis
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

UNIVERSITY OF THE EAST MANILA

COLLEGE OF ENGINEERING
COMPUTER ENGINEERING DEPARTMENT
MIDTERM QUIZ NO. 1
DIRECTIONS: Perform the given relational operation to the given tables. All answers should be
handwritten.
GIVEN:
Table A
Product_ID

Selling_Price

23411

$ 100.00

23412

$ 145.00

23413

$ 200.00

12314

$ 1500.00

12345

$ 1700.00

Table B
Product_ID

Selling_Price

23416

$ 120.00

23417

$ 1450.00

23418

$ 210.00

12314

$ 1500.00

12345

$ 1700.00

OPERATIONS:
1. Select all products from both tables with unit price that is greater than $500.00
Table A
Product_ID

Selling_Price

12314

$ 1500.00

12345

$ 1700.00
Table B
Product_ID

Selling_Price

23417

$ 1450.00

12314

$ 1500.00

12345

$ 1700.00

2. What is the result when you perform the INTERSECT OPERATION


Product_ID

Selling_Price

12314

$ 1500.00

12345

$ 1700.00

3. What is the result when A is subtracted from B


Product_ID

Selling_Price

23411

$ 100.00

23412

$ 145.00

23413

$ 200.00

4. What is the result when B is subtracted from A


Product_ID

Selling_Price

23416

$ 120.00

23417

$ 1450.00

23418

$ 210.00

5. What is the result if UNION is performed


Product_ID

Selling_Price

23411

$ 100.00

23412

$ 145.00

23413

$ 200.00

12314

$ 1500.00

12345

$ 1700.00

23416

$ 120.00

23417

$ 1450.00

23418

$ 210.00

You might also like