Hi Guys,
I'm having trouble thinking of ideas for queries that would go with an online purchasing system. The queries must be partially complex (i.e. not just a simple insert query

).
I can easily write the queries myself but i just need a little help thinking of useful queries.
A query for an 'Invoice' for example is a perfect idea as it implements table joins etc.
Possible other queries are:
Find all customers that have spent a total of more than X amount
Find all delivery address's that X customer has sent items to
Track an order to see if items have been sent yet or not.
etc....
If anyone else can think of a few other ideas i'd be very grateful :-)
thx for reading :-)
--Philkills