Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to retrieve data from 3 tables at time in Sql Server
Message
From
22/01/2006 23:50:34
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to retrieve data from 3 tables at time in Sql Server
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01089270
Message ID:
01089270
Views:
86
Dear Experts,

I have 3 master tables and 1 tranasaction table

In transaction table conatines eigther on of the code from Master file code or empty code;
my purpose is while retriving data from Transaction Table i want to display description from master
file with respect of the code from trasction table and if code is empty i want disply as 'CASH'.
how i will do this in Sql Server.

Master file 1 Stock. Master file 2 NonStock. Master file 3 General.

STCODE1 NSTCODE1 GENCODE1
STDESCRI NSTDESCRI GENDESCRI

STCODE2 NSTCODE2 GENCODE2
STDESCR2 NSTDESCR2 GENDESCR2

Transaction file

TrsInv TrsCode Amt Qty

INV001 STCODE1 5 7
INV001 STCODE2 2 8
INV001 GENCODE2 8 4
INV001 NSTCODE1 8 4
INV001 6 9
INV001 NSTCODE2 8 3

Thanks in Advance

Abdulla
Next
Reply
Map
View

Click here to load this message in the networking platform