Hi,
I need to find out the supplier name of the suppliers who supply the second and third largest total quantity of parts (using 2 different SQL statements). If possible I need the SQL to just return a single supplier name (not a list of suppliers in order of Qty - I need to avoid using MoveNext in a recordset)
My tables are:
Supplier (S#, SupplierName)
Part(P#, PartName)
Job(J#, City)
SPJ(S#, P#, J#, Qty)
Thanks
I need to find out the supplier name of the suppliers who supply the second and third largest total quantity of parts (using 2 different SQL statements). If possible I need the SQL to just return a single supplier name (not a list of suppliers in order of Qty - I need to avoid using MoveNext in a recordset)
My tables are:
Supplier (S#, SupplierName)
Part(P#, PartName)
Job(J#, City)
SPJ(S#, P#, J#, Qty)
Thanks