Hi,
im going back through some SQL questions for my exams next week and I cant find a soloution for this, anyone help out?
Do a report using SQL that lists the names of categories from which items were bought. For each category the report should show the total value of the purchases (excluding VAT) and the total value of the VAT paid.. Exclude those categories where the total value of the purchases (excluding VAT) is less than €100.
Country(c_id, c_name, c_vat_rate, exchange_rate)
Seller(seller_id, seller_name, c_id)
Category(cat_id, cat_name)
Purchase(p_id, p_date, seller_id)
Purchase_item(p_id, item_name, cat_id, item_price, item_qty)
Fig. 1 Logical Schema