Hello
I want to fetch record from different table through subquery . Please describe how can we do it through one example?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Joginder BangerRank #360 · 7K reputationPosted Mar 26, 2015, 5:19 AM EDT
TableA
id name DepartmentID
1 Davin 1
TableB
DepartmentID DepartmentName
1 Microsoft
select DepartmentName from TableB where DepartmentID(select DepartmentID from TableA where name='Davin')
i think this query may be help you.
Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted Mar 26, 2015, 5:44 AM EDT
But i can't predict what type of the result you are accepting can you give an example for better understanding your query........
Thanks....