Informatics Practices

Write a SQL query to display common divnos from both the tables.

Table : Member

EmpIdNamePayDivno
1001Shankhya3400010
1003Ridhima3200050
1002Sunish4500020

Table : Division

DivnoDivnameLocation
10MediaTF02
20DanceFF02
30ProductionSF01

SQL Joins & Grouping

1 Like

Answer

SELECT Divno 
FROM Division NATURAL JOIN Member;
Output
+-------+
| Divno |
+-------+
|    10 |
|    20 |
+-------+

Answered By

1 Like


Related Questions