Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Noob Needs Help Please

Author  Topic 

fsm0
Starting Member

1 Post

Posted - 2008-11-02 : 23:42:17
This is a homework assignment and I cannot seem to get it correct, spent way too much time on this already.

Here is the question:

Who is paying the maximum amount for single type of
rental equipment (use price * quantity to determine
amount)?

I think I need to use a max aggregate of two different tables for the calculation. The location for the database is

http://courses.ischool.berkeley.edu/i257/f06/Diveshop2000.mdb

This is in Access format, I imported into SQL server on my home machine. I appreciate any help, I feel like a real noob but very frustrated. Thanks for any help.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-11-03 : 00:03:07
have a look at GROUP BY and MAX() functions in books online. you also need ORDER BY to order results based on max value.
Go to Top of Page
   

- Advertisement -