Queries Final
Queries Final
Customer:
Item:
Invoice:
Invitem
Customer:
Item
Invoice
INVITEM
12. Find customers from the tristate area of New York, New Jersey and Connecticut.
13. Find all customers whose name starts with the letter E.
20. Find the payment Due Date if the payment is Due in Two Months from the invoice Date.
22. Find the Total, Average, Highest, and Lowest Unit Prices.
23. Display How many Different items are available for Customers.
26. Find all possible Combinations of Customers and items (Cartesian Product).
27. Display all item Quantities and item prices for invoices.
29. Use an outer join to Display items ordered and Not ordered.
30. Display invoices, Customer Names, and item Names together (Multiple Joins).
35. Create a New Table for all New Jersey Customers Based on the Existing CUSTOMER Table.
36. Copy all New York Customer to the Newly Created NJ_CUSTOMER Table.
38. Find Customers Who are not from New York or New Jersey (Set Operator).
39. Delete Rows from the CUSTOMER Table that Are also in the NYNJ_CUSTOMER Table.
41. Find the Two items with the lowest Quantity on Hand.
42. Create a Simple View with item Names and item Prices Only.
43. Create a View that Displays invoice Number and Customer Names for New Jersey Customers.
44. Create a Sequence that can be used to Enter New items into the ITEM Table.
45. Add a New item into the ITEM Table with the ITEMNUM_SEQ Sequence.
48. Lock Customer Bayer’s Record to Update State and phone Number.
49. Give Everybody SELECT and INSERT Rights on Your ITEM Table.
50. Revoke the INSERT Option on the ITEM Table from User BOND.