Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unique field record set
Message
From
18/06/2008 07:42:13
 
 
To
18/06/2008 05:37:43
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01325054
Message ID:
01325067
Views:
21
You are welcome :)

-Stefan


>That's it!!! I knew this .... grrrrrrr
>
>THANK YOU Stefan.
>
>
>>>Hi:
>>>
>>>I have a table (in a MS SQL Sever database) where one of the field is an item number field that is not a unique field. Multiple item numbers are repeated and are scattered all over the table.
>>>
>>>I would like to retrieve a record set of 1 each of all the different item numbers.
>>>
>>>Can someone show me the SQL syntax to do this?
>>
>>You can probably use "Distinct":
>>
>>Select Distinct yourField From yourTable;
>>
>>
>>
>>hth
>>-Stefan
Previous
Reply
Map
View

Click here to load this message in the networking platform