+ 1

Hello there i have created three department tables Departments Supervisor I have filled them with notes how to execute this

INNER JOIN THREE TABLES SQL SERVER 2019

8th Sep 2021, 3:55 PM
Ardit Emerllahu
Ardit Emerllahu - avatar
9 Réponses
+ 1
Uhh what columns does each table have?
8th Sep 2021, 4:02 PM
Tim
Tim - avatar
+ 1
A͢J - S͟o͟l͟o͟H͟e͟l͟p͟e͟r͟'s solution might be the one you're looking for unless you didn't declare any foreign key or some sort
8th Sep 2021, 4:34 PM
Tim
Tim - avatar
+ 1
Ardit Emerllahu That's SQL server syntax before dislike you should check on Google.
8th Sep 2021, 4:56 PM
A͢J
A͢J - avatar
+ 1
Ardit Emerllahu You don't think Supervisor table missing one more column which should be use for JOIN with another table?
8th Sep 2021, 4:58 PM
A͢J
A͢J - avatar
0
SYNTAX??
8th Sep 2021, 3:56 PM
Ardit Emerllahu
Ardit Emerllahu - avatar
0
SELECT * FROM table t1 INNER JOIN table t2 ON t1.id = t2.id INNER JOIN table t3 ON t1.id = t3.id WHERE your_condition I assumed there is column id in all 3 tables
8th Sep 2021, 4:05 PM
A͢J
A͢J - avatar
0
SQL SERVER 2019 SYNTAX I MEAN
8th Sep 2021, 4:31 PM
Ardit Emerllahu
Ardit Emerllahu - avatar
0
I have created three tables to connect to the INNER JOIN Command AS BELOW DEPARTMENTS TABLE DEPARTMENT TABLE SUPERVISOR TABLE The Departments table contains the following columns: DepartmentiID, Name, Surname. The Department table contains the following columns: DepartmentsID, personal number, first name, last name, #NumberDay, using COUNT. The SuperVisor tables are the following columns: SupervisorID, FirstName, LastName .
8th Sep 2021, 4:50 PM
Ardit Emerllahu
Ardit Emerllahu - avatar
0
there has to be a column like departments_id in department that link's between the 3 table's so that you can make on condition comes true. make an id_departments or department in supervisor table or table contains them all. based on you data relation if 1-1 or 1-to more
9th Sep 2021, 9:40 AM
Wahib AL-Adham
Wahib AL-Adham - avatar