0% found this document useful (0 votes)
15 views1 page

Question Set 43

Uploaded by

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

Question Set 43

Uploaded by

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

Question Set 43

There are 5 engineers who develop the database of a software company. You are one of those 5
engineers. The company you work for has been assigned to create software, and you have entrusted
the team to create a database of that software. The software uses the product, brand table to store
product information in the database. Use this table to answer the following questions.

Product Brand

product_id product_name brand_id


brand_id brand_name
1 Kirsco 1
1 Maliban
2 Cheesebits 1
2 Munchee
3 Snacker Spicy 1
3 Sunrich
4 Gift Assortment 2
5 Choc Shock 2
6 Milk Shortcake 2
7 Hawaian Cookies 2
8 Chocolate Marie 3
9 Potato Cracker 3

01) Create the Relation algebra query needed to find the "Choc Shock" biscuit on the product table of
the database.

02) Search for product details under the brand name "Hawain Cookies" and product "Munchee".
Create the required Relational Algebra Query. (Use 2 as brand_id.)

03) SQL Query is designed by other members of your team to suit their needs. Write the Relational
Algebra Query to the created query.

i) SELECT product_name FROM product;

ii) SELECT product_name FROM product WHERE brand_id = '2';

You might also like