SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 SQL Tables
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

darwesh
Starting Member

Egypt
1 Posts

Posted - 11/04/2013 :  09:02:24  Show Profile  Reply with Quote
Hello Guys,
Can you help me to solve this question?

Employee Customer
id name age salary id name city industry type
1 ben 61 140000 4 bamsonic Cologne J
2 bob 34 44000 6 ranasung Leslieburg J
5 chris 34 40000 7 Vamony Arlington B
7 Dan 41 52000 9 grange Marina B
8 Ken 57 115000
11 Joe 38 38000

Order
Id orderdate Customer_id Employee_id Amount
10 8/2/2006 4 2 540
20 1/30/2009 4 8 1800
30 7/14/2005 9 1 460
40 1/29/2008 7 2 2400
50 2/3/2008 6 7 600
60 3/2/2008 6 7 720
70 5/6/2008 9 7 150


a. The names of all employees that have an order with Bamsonic.
b. The names of all employees that do not have any order with Bamsonic.
c.The names of employees that have 2 or more orders.
Write a SQL statement to insert rows into a table called high_value_employee(name,
age), where an employee must have a salary of 100,000 or greater to be included in
the table.
e. Write the appropriate "CREATE TABLE" statements for all base tables (employee,
customer, order) and shortly describe the choices you made.
f. Which things would you personally improve about this schema? Where do you see
potential problems

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 11/04/2013 :  10:02:19  Show Profile  Reply with Quote
this seems to be an assignment question. Can we see what you tried yet?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000