Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql statement to retrieve data from two tables
Message
From
04/06/2005 04:16:33
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Sql statement to retrieve data from two tables
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01020203
Message ID:
01020203
Views:
66
hi experts,

i have two files EmpMaster and Details
i want make a query based on the value of EmpMaster-> empsts field
if it is >0 select value from Empmastre, else i want to select data from detail file.
,ie

'Select empcode,empname,iif(empsts >0,empmaster.Remark,(i want to select remark from Details
files base on EmpMaster.empcode = Details.empcode))'

plse help me how to do it in sql server.

Regards
Abdulla
Next
Reply
Map
View

Click here to load this message in the networking platform