Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with SQL queries
Message
De
09/04/2004 12:20:32
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00893534
Message ID:
00893600
Vues:
21
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform