Google Answers Logo
View Question
 
Q: 5 Simple SQL Statements ( No Answer,   0 Comments )
Question  
Subject: 5 Simple SQL Statements
Category: Computers > Programming
Asked by: thanksmate-ga
List Price: $50.00
Posted: 27 Feb 2004 15:39 PST
Expires: 27 Feb 2004 16:01 PST
Question ID: 311567
Am in a hurry, Very nice bonus if this is answered within 5 hours, at least $50!

So following are 5 SQL related questions I would like answered, quick and easy!


1. Given that a customer can place many orders, but each order can
only be placed by one customer and each order has many items. Data to
store about the customer includes customer number, name, address and
zip code. Data to store about the order are order number, order date
and customer number. Data to store about the order item should be
order number, item number and quantity of each item ordered.
Produce a Table Notation for each entity based on the above.


2. Provide an SQL statement that will display the value of the
inventory for all products with a quantity over 100, given:
Product (Product-ID, Product-DESC, Product-Cost, Quantity)


3. Compute the total inventory value by category and list it by
highest value first, given:
Customer (_CID_, Name, Address, City, State, Zip, Category)
Inventory (_ItemID_, Description, ListPrice, Cost, QuantityOnHand, Category)
Order (_OrderID_, OrderDate, CID)
OrderItem (_OrderID_, _ItenID_, Quantity, SalePrice)


4. List customer accounts who have a penicillin allergy and have the
drug penicillin prescribed, given:
Customer (_Account#_, Name, Address, City, State, Zip, Phone)
Allergies (_Allergy_, _Account#_, Level)
Prescriptions (_Prescription#_, Account#, Physician, Phy-Phone, Drug,
Size, Quantity, Date)


5. Using the data in the image (link below), write SQL statements for
the following:
i. How many animals have we ordered from suppliers in Kentucky?
ii. Which category of animals provides the most profit (ignore shipping)

(when I use the underscore "_" it means Primary Key)

Here is the image: 
http://www.gnaunited.com/modules/My_Uploads/user_folders/thanksmate/LEFT-RIGHT.jpg

Am in a hurry, Very nice bonus if this is answered within 5 hours, at least $50!
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy