Professional Documents
Culture Documents
R1 = Product ⋈ Supplier
b. Find name and address of all suppliers who supply television product.
R1 = Product ⋈ Supplier
R2 = σ Product(Type=television) (R1)
R3 = π Supplier(SupplierName, Address) (R2)
c. Find name of all employee who were born in 1986.
R1 = σ Employee(Birthdate.year = 1986)
R2 = π (FullName) (R1)
d. Find name and type of all products sold in ‘23/05/2020’.
R1 = Invoice ⋈ InvoiceLine
R2 = R1 ⋈ Product
R3 = σ Selldate = “23/05/2020” (R2)
R4 = π (Name, Type) (R3)
R1 = Product ⋈ Supplier
R2 = σ (type=television or type !=mobile)(R1)
R3 =
g. List name and price of all product sold by employee “Nguyễn Văn A” in April 2020.
R1 = Invoice ⋈ invoiceLine
R2 = R1 ⋈ Employee
R3 = R2 ⋈ Product
R4 = σ (SellDate.month.year = April 2020) (R3)
R5 = σ (FullName=Nguyễn Văn A) (R4)
R6 = π (Name, SellPrice) (R5)
h. Find name and price of all mobile products of LG sold in April 2020.
R1 = Invoice ⋈ InvoiceLine
R2 = R1 ⋈ Product
R3 = R2 ⋈ Supplier
R4 = σ (SellDate.month.year=April 2020) (R3)
R5 = σ SupplierName = LG (R4)
R6 = σ (Type=Mobile) (R5)
R7 = π (Name, SellPrice) (R6)
i. Find the product with highest SellPrice
j. Find the amount (quantity * sellPrice) of each invoice line of product sold in
30/04/2020.
R1 = Invoice ⋈ InvoiceLine
R2 = R1 ⋈ Product
R3 = σ (SellDate = 30/04/2020) (R2)
R4 = π (amount = quantity*SellPrice) (R3)