Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Question

Status
Not open for further replies.

PeterL

IS-IT--Management
Oct 30, 2000
129
US
I have the following SQL statement in Access and want to change it so only unique occurances of the EXPR1 field get returned. How could I modify the following SQL statement:

SELECT Revised_Invoices_temp.*, [OrganizationName]+Str$([InvoiceNumber]) AS Expr1
FROM Revised_Invoices_temp
ORDER BY Revised_Invoices_temp.OrganizationName, Revised_Invoices_temp.InvNum;

Thanks
 
Thanks, but where am I placing DISTINCT? Would this go directly after the SELECT?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top