Assignment Topic:
The topic of the assignment is SQL.
Your assignment must be uploaded/submitted before or on 21/5/2016
Uploading instructions
Please view the assignment submission process document provided to you by the Virtual University to upload the assignment.
Rules for Marking
It should be clear that your assignment will not get any credit if:
- The assignment is submitted after due date
- The assignment is copied
Objective
- This assignment has been designed so that you understand the concept of SQL
Assignment
Consider the tables given below:
ITEM (itemId, itemName, price)
ITEM_ORDER (orderId, itemId, quantity, discount, price)
ORDER (orderId, clientId, date, reqDate, shipDate)
CLIENT (clientId, clientName, address, city)
Write SQL queries for the following:
i. List the items showing only item name and price.
ii. List all the order Id and item Id where discount is less than or equal 15%.
iii. List all the orders of clients who live in the city 'Lahore'.
iv. List order id and order date of all the orders whose ship date is 1st, January 2005.
v. List all the item id whose price is 'Rs. 2500'