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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SImple SQl statement help!

Status
Not open for further replies.

GoAutoWay

Technical User
Oct 14, 2011
11
US
I need CIR.vendor to be distinct. here is the code that does not use distinct. I can't just stick dinstinct row or distinct in there because there is a different index number for each row. This is for a listbox on a form.


SELECT CIR.Vendor, CIR.index
from CIR
ORDER BY CIR.Vendor;
 
How are ya GoAutoWay . . .

I get the impression that [blue]CIR[/blue] is a child table with multiple CIR having the same [blue]index[/blue]. Whats preventing you from using a query with a [blue]Group By[/blue] clause?

[blue]Your Thoughts? . . .[/blue]

See Ya! . . . . . .

Be sure to see faq219-2884 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top