happyIndian100
Programmer
Please Help!
I have two tables named category and Products which has the following data:-
category :
-----------
catid ParentCode CatCode
-----------------------------
1 IT CATIT
2 IT ABCIT
3 IT HPIT
4 PRN COMPRN
5 CDD SRRCD
Products:
--------
ID CatCodeDet
-----------------
1001 1-CATIT
1002 3-HPIT
1003 5-SRRCD
1004 4-COMPRN
1005 3-HPIT
now i want all the Products where parentcode is IT.
the result should be like:
ID CatCodeDet
-----------------
1001 1-CATIT
1002 3-HPIT
1005 3-HPIT
Please help.
Thx in advance...
I have two tables named category and Products which has the following data:-
category :
-----------
catid ParentCode CatCode
-----------------------------
1 IT CATIT
2 IT ABCIT
3 IT HPIT
4 PRN COMPRN
5 CDD SRRCD
Products:
--------
ID CatCodeDet
-----------------
1001 1-CATIT
1002 3-HPIT
1003 5-SRRCD
1004 4-COMPRN
1005 3-HPIT
now i want all the Products where parentcode is IT.
the result should be like:
ID CatCodeDet
-----------------
1001 1-CATIT
1002 3-HPIT
1005 3-HPIT
Please help.
Thx in advance...