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
 MS Sql Server 2008 R2 question
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jkhangura
Starting Member

Canada
1 Posts

Posted - 12/08/2012 :  22:13:04  Show Profile  Reply with Quote
We have a university project where we have to create sales queries for the AdventureWorks05 database.


We need to make queries for the sales portion of the database. An example of what we have right now is:

Comparing a sales persons year-to-date sales to his or her sales quota.. the query we have is:


SELECT SalesPersonID as 'Sales Person ID', SalesYTD as 'Sales Year-To-Date', SalesQuota as 'Sales Quota'
FROM Sales.SalesPerson
Order by SalesYTD DESC


we need to create 4 more queries related to the sales' tables in the database. Please HELP!! The queries do not have to be super complex and advanced... just need to be simple like the one above.

Jkhangura

sodeep
Flowing Fount of Yak Knowledge

USA
7174 Posts

Posted - 12/09/2012 :  10:17:52  Show Profile  Reply with Quote
Question is not clear.Put your question in this format

http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx
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.11 seconds. Powered By: Snitz Forums 2000