Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with SQL select and combining cursors/tables
Message
From
04/10/2001 06:34:11
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
04/10/2001 06:23:31
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00563768
Message ID:
00564014
Views:
22
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
Previous
Reply
Map
View

Click here to load this message in the networking platform