Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
I need sql query to retrieve a data from different Table
Pnkl
11y
1.1k
1
Reply
Hello Guys,
I need your help to solve one query for retrieve data like 'ResultTable' from 3 Different Sql Table and Below i give one exmple:
StudentTable
SID
Name
Email
1
Rohan
[email protected]
2
Ajay
[email protected]
EmployerTable
EID
Name
Email
1
Anna
[email protected]
2
Bittu
[email protected]
Both Table :Student and Employer Table data insert in to one Table TopicPostTable
TopicPostTable
PID
Email
UserType
1
[email protected]
Emp
2
[email protected]
Emp
3
[email protected]
Stn
Result Table:
in TopicPostTable where UserType is 'Emp' then it join with EmployerTable and UserType is 'Stn' then it join with StudentTable
EmplyerTable
PID
Email
Name
1
[email protected]
Anna
2
[email protected]
Bittu
3
[email protected]
Rohan
Thanks...
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
How to change dataset QUERY connection string at runtime in
DATAGRIDVIEW IN ADO.NET WINDOW C#