AW,Example I helped someone else with...T-SQL also supports a top % select top @topselect invoice.vendorname, invoice.vendornumber, invoice.vendorparent, Sum(invoice.InvoiceAmountUSD) As 'InvoiceAmount' from invoiceorder by invoiceamountor hard coded asselect top 5 invoice.vendorname, invoice.vendornumber, invoice.vendorparent, Sum(invoice.InvoiceAmountUSD) As 'InvoiceAmount' from invoiceorder by invoiceamount
JohnIt's a small world (but I wouldn't want to paint it)