Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with SQL select and combining cursors/tables
Message
De
04/10/2001 06:34:11
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
04/10/2001 06:23:31
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00563768
Message ID:
00564014
Vues:
23
Or probably you might move where expressions to select field list and set flags for Exmatch,ProbMatch etc (not tested off the top of my head - 1 Exactmatch, 2 Prob...0 Nomatch):
set exact on
set ansi on
select *,;
 iif( upper(&bmlname)=upper(sddmdata.sdlname) and ;
        upper(&bmaddr)=upper(sddmdata.addr) , 1, ;
iif(upper(&bmaddr)=upper(sddmdata.addr), 2, ;
iif(val(&bmaddr)=val(sddmdata.addr),3,0) );
) as MatchFlag ;
 from bmdata left join sddmdata ;
  on left(&bmzip,5)=left(sddmdata.sdzip,5) ;
  where !(sddmdata.sdaddr == '') into cursAll
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