OMFG Resulting to this.....NEED SQL HELP Options
BoozeHound
#1 Posted: : Monday, October 10, 2011 4:37:29 PM
Rank: Advanced Member


Groups: Registered User

Joined: 8/20/2007
Posts: 73
Points: 18
Location: Vancouver, Wa
Ok Guys... Been a long time and thought what geeks do I know....


I have a damn SQL statement I need to write and I do not do SQL AT ALL....

Working with MS SQL 2008 R2

Need to do following.. ASAP


1. Calculate the number of exempt and non-exempt
employees there are, by job title. The results should be
sorted in descending order.

2. Determine if you have any employees whose salary is
below the minimum salary for their job classification. If
so, who are they?

3. Calculate the average, minimum and maximum salary
for exempt employees. Using the UNION command also
display the same information for the non-exempt
employees.

4. Calculate the difference between the maximum and
minimum salaries for the non-exempt employees.
Create a query that shows all employees whose name
has the second letter of either an ‘a’,’e’,’i’,’r’ or ‘u’.


Again... I do not work with SQL this is for a damn course I gotta finish.


By All means email me at beerguy.cdg@gmail.com

Later all Booze




Rikaelus
#2 Posted: : Monday, October 10, 2011 4:49:49 PM
Rank: Administration



Groups: {pDs} Member, Registered User, Server Admin, Administration

Joined: 3/27/2008
Posts: 1,699
Points: 3,092
Location: Arizona
Piece of cake.... if it were MySQL. But I don't know MS SQL as well.
Plus... we'd need the table structure and perhaps a sample of the data there-in to come up with the actual query.

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.