I have two tables..
Persons:
empid(primary key)
firstname
lastname
email
Details:
Did(primary key)
salary
designation
empid
Now I need to SELECT first name and last name of employees whose designation is Manager.
I am a beginner, I have been learning SQL from W3school (which is awesome btw), if you can suggest me where should I go after completing w3school that would be just great!
It’s pretty much as you said it, with a simple join on the column that relates the two tables together (in this case
EmpID):As for best source of knowledge, you can’t beat books, MSDN, and StackOverFlow if you ask me. There’s a good few blogs around too – but they tend to be for more advanced topics. The writers tend to hang around SO anyway!