Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with SQL queries
Message
From
09/04/2004 12:20:32
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00893534
Message ID:
00893600
Views:
23
>Ah I see.
>So if i want to use a subquery how can I put the == into the following
>
>SELECT field1 FROM table1 WHERE ALLTRIM(field1) in (sele ALLTRIM(field1) FROM table2) && gives two rows instead of none
>
>
>Thanks
>carmel

No I didn't mean the subquery. Check my first reply for method 2. == is like inline 'set ansi'.
Subquery prevents duplicates but more tricky to build for correct results. To me it sounds you don't need to check if duplicates exists or not. If you want to check add distinct (distinct slows down a lot).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform