Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 4: Consider the tables given below and write the relational Algebra for the following tasks: Table Name: Products begin{tabular}{|1|1|1|1|1|} hline Productid & Product Name

image text in transcribed

Task 4: Consider the tables given below and write the relational Algebra for the following tasks: Table Name: Products \begin{tabular}{|1|1|1|1|1|} \hline Productid & Product Name & Unit & Price & Supplierld \hline 1 & Chais & 10 boxes $\times 20$ bags & 18 & 1 \hline 2 & Chang & $24-12$ oz bottles & 19 & 1 \hline 3 & Aniseed Syrup & $12-550 \mathrm{ml}$ bottles & 10 & 1 W Thline 4 & Chef Anton's Cajun Seasoning & $48-602$ jars & 22 & 2 \hline \end{tabular) \begin{tabular}{|1|1|1|1|1|} \hline Supplierid & SupplierName & ContactName & Address & City \hline 1 & Exotic Liquid & Charlotte Cooper & 49 Gillbert St. & Londona \hline 2 & New Orleans Cajun Delights & Shelley Burke & P.O. Box 78934 & New Orleans \hline 3 & Grandma Kelly's Homestead & Regina Murphy & 707 Oxford Rd. & Ann Arbor \hline 4 & Tokyo Traders & Yoshi Nagase & $\begin{array}{111}9-8 & \text { Sekimai } \text { Musashino-shi } &\text { Tokyo }\end{array}$ \hline \end{tabular) A. Write the Relational algebra for the following questions. 1. Find all the information of products whose price is from 15 to 25 inclusively. ii. Find the lowest price of products for each supplier ID. iii. Find I ID, name and address of suppliers whose city is Tokyo. B. Convert the following SQL statements to Relational Algebra expressions : 1. Select * From Products Where Supplierid in $(1,2,3)$; ii Select Productio, ProductName From Products Where Price between 10 and 20 ; CS.VS.964

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

Students also viewed these Databases questions