Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding records with unique order number?
Message
 
To
23/11/1999 13:14:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00294401
Message ID:
00294465
Views:
23
That's amazing!

I had developed a routine which pulled all the records containing the item into one cursor, created an updatable version of it, then pulled all records that were not the item into another cursor and deleted matching order ids from the first cursor. It used only about 20 lines of code, and I was getting pretty proud of myself. Then you burst my bubble! (Not that I'm complaining!)

I'll have to explore the count(*) instruction. I don't see any info on that variation in Help or the Hacker's Guide. Where can I find an explanation?

Thanks very much!

Neil

>>Is there a quick method of selecting records where only a single instance of the order number exists?
>>
>
>SELECT COUNT(*), OrderID FROM Mytable GROUP BY OrderID HAVING COUNT(*) = 1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform