•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MS SQL section within the Web Development category of DaniWeb, a massive community of 423,563 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,617 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS SQL advertiser: Programming Forums
Views: 347 | Replies: 1
•
•
Join Date: May 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
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
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
•
•
•
•
•
•
•
•
DaniWeb MS SQL Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- simple query about cout (C)
- Need help on query! (MySQL)
- Newbie - looping and array [very simple] problem (PHP)
- Help with simple shell script (Windows NT / 2000 / XP / 2003)
- microsoft access simple date query (Computer Science and Software Design)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
- Please help me out with MySQL query (MySQL)
- DB-Authentication php/mysql on Mac OSX v3 (PHP)
Other Threads in the MS SQL Forum
- Previous Thread: Filter the Filter
- Next Thread: Simple Question PLease URGENT



Threaded Mode