Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP SQL Syntax - Tuesday BrainFreeze
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01238981
Message ID:
01239007
Views:
11
>>Thanks all! :o)
>>
>Looks like Cetin's SQL is the simplest.
>
>It's a bit unclear what do you mean by "every distinct or unique aid record". Is aID the PK for the table?

Not exaclty.

If you have records like:
AID            AAGcy
---------------------
1             AAAA
1             BBBB
1             CCCC
With Cetin's solution you will get:
AID            AAGcy     adescriptn
------------------------------------ 
1             CCCC       bla bla
With mine:
AID            AAGcy   adescriptn
----------------------------------
1             AAAA      bla bla
1             BBBB      bla bla
1             CCCC      bla bla
So it all depends of what Tracy needs :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform