Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

Question
LAB DBI DATABASE
We have the database consist of 5 relations:
Product (ProductCode, Name, PurchasePrice, SellPrice, Type, SupplierCode)
Supplier (SupplierCode, SupplierName, Address)
Employee (EmloyeelD, FullName, Gender, BirthDate, Address)
Invoice (InvoicelD, SellDate, EmployeelD)
InvoiceLine(ProductCode, InvoicelD, Quantity)
Write expressions of relational algebra to answer the following queries:
a. Find name and sell price of televisions supplied by Sony.
b. Find name and address of all suppliers who supply television product.
c. Find name of all employee who were born in 1986.
d. Find name and type of all products sold in '23/05/2020'.
e. Find name of female employees who sold televisions.
f. Find name and address of suppliers who supply both television and mobile.
g. List name and price of all product sold by employee "Nguyễn Văn A" in April 2020.
h. Find name and price of all mobile products of LG sold in April 2020.
i.
Find the product with highest SellPrice.
j.
Find the amount (quantity * sellPrice) of each invoice line of product sold in 30/04/2020.
expand button
Transcribed Image Text:We have the database consist of 5 relations: Product (ProductCode, Name, PurchasePrice, SellPrice, Type, SupplierCode) Supplier (SupplierCode, SupplierName, Address) Employee (EmloyeelD, FullName, Gender, BirthDate, Address) Invoice (InvoicelD, SellDate, EmployeelD) InvoiceLine(ProductCode, InvoicelD, Quantity) Write expressions of relational algebra to answer the following queries: a. Find name and sell price of televisions supplied by Sony. b. Find name and address of all suppliers who supply television product. c. Find name of all employee who were born in 1986. d. Find name and type of all products sold in '23/05/2020'. e. Find name of female employees who sold televisions. f. Find name and address of suppliers who supply both television and mobile. g. List name and price of all product sold by employee "Nguyễn Văn A" in April 2020. h. Find name and price of all mobile products of LG sold in April 2020. i. Find the product with highest SellPrice. j. Find the amount (quantity * sellPrice) of each invoice line of product sold in 30/04/2020.
Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education