you need to do an inner join if you are not wanting to list all in the tables that share the record ids.
Hi, Thanks for the reply. I did an inner join and i'm still not getting the result. Nothing is queried out because of the c.CreatedBy = '2418' which doesnt exist for the identifier ('1','2','3','4','5','6').
This is the inner join sql:
SELECT *
FROM TBL_ComponentList c INNER JOIN TBL_Modules m
ON m.Identifier=c.CompIdentifierID AND c.CreatedBy = '2418' AND m.identifier IN ('1','2','3','4','5','6')
If i do it as 2 separate sql, i get what i need but i need to make it as 1. The 2 sql that i need to join is
1) SELECT * FROM TBL_Modules WHERE identifier IN ('1','2','3','4','5','6') ORDER BY Identifier
2) SELECT * FROM TBL_Modules m,TBL_ComponentList c WHERE m.Identifier=c.CompIdentifierID AND c.CreatedBy = '2418' ORDER BY m.Identifier
the identifier id 1 to 6 doesnt exist in table componentlist.
Any help pls?