Dear Expert,
I have 2 tables as the following,
Table : Product
Column : ID, Code, Name
Table : Trx
Column : Trx_ID, Trx_Date, Product_ID
How can perform the following query in MSSQL or is there any other way
to perform the same query ??? For you info I can do this in Sybase and
it's work fine. Thank you.
=============== =============== =============== ===============
Select Trx.Product_ID,
(Select Produc.Code
From Product
Where Product.ID = Trx.Product_ID) as Product_Code
From Trx
Where Product_Code = '0001'
=============== =============== =============== ===============
Regards,
Chen Fock Siong
2004-05-27
I have 2 tables as the following,
Table : Product
Column : ID, Code, Name
Table : Trx
Column : Trx_ID, Trx_Date, Product_ID
How can perform the following query in MSSQL or is there any other way
to perform the same query ??? For you info I can do this in Sybase and
it's work fine. Thank you.
=============== =============== =============== ===============
Select Trx.Product_ID,
(Select Produc.Code
From Product
Where Product.ID = Trx.Product_ID) as Product_Code
From Trx
Where Product_Code = '0001'
=============== =============== =============== ===============
Regards,
Chen Fock Siong
2004-05-27
Comment