I have two tables in my SQL Server database. The first is Test1 and second is Test2. There is a column RegNo in both tables.
Now I want to select the values from both the tables for a particular RegNo.
This is what I’m doing
SELECT Test1.SurName, Test2.Class, Test2.Medium
FROM Test1,Test2 JOINS
Test2 ON Test1.RegNo = Test2.RegNo
But my query is giving error.
1 Answer