Need your help with a quite easy sql question i guess (but cant figure it out!)!
I am working with an MVC Project in asp.net and have 5 tables in my database i want to add upp and present in a single view
Each table is data about employee at a certain section att my job. like this:
HR(tabel1)
id FirstName Lastname phoneNumber
1 Mike Ashton xxxxxxxx
2 John Keegan xxxxxxxx
Economy(tabel2)
id FirstName Lastname phoneNumber
1 Lisa Ek xxxxxxxx
2 John Alm xxxxxxxx
.
IT (table3)
Logistic(table4)
Support(table5)
So the table dont have any relationship and i just want to display the data within each table under each other on a single view page(employee) like this:
id FirstName Lastname phoneNumber
1 Mike Ashton xxxxxxxx
2 John Keegan xxxxxxxx
3 Lisa Ek xxxxxxxx
4 John Alm xxxxxxxx
.
.
So in my controller i need to join these 5 tables somehow but cant figure it out how to do it, anyone can help me?
/ Daniel