indian_sumesh
15th October 2010, 10:02
Hi,
I wants to know if i have to get data from multiple companies and the select statement includes also more than one table then how the statement can be written to get correct results.
eg.
1) select tdsls041.*, tiitm001.*
from tdsls041, tiitm001
where tdsls041.itm refers to tiitm001
and tdsls041._compnr = 200
and titm001._compnr = 200
or
2) select tdsls041.*, tiitm001.*
from tdsls041, tiitm001
where tdsls041.itm refers to tiitm001
and tdsls041._compnr = 200
which eg. is OK?
Pls help
Thanks
Sumesh
I wants to know if i have to get data from multiple companies and the select statement includes also more than one table then how the statement can be written to get correct results.
eg.
1) select tdsls041.*, tiitm001.*
from tdsls041, tiitm001
where tdsls041.itm refers to tiitm001
and tdsls041._compnr = 200
and titm001._compnr = 200
or
2) select tdsls041.*, tiitm001.*
from tdsls041, tiitm001
where tdsls041.itm refers to tiitm001
and tdsls041._compnr = 200
which eg. is OK?
Pls help
Thanks
Sumesh