Update DBMS/SQL/Week4/writeup.md
This commit is contained in:
parent
1289cdbd07
commit
93d46cf08c
@ -100,3 +100,14 @@ NAME YEAR TOTAL_ACCIDENTS
|
|||||||
---------- ---------- ---------------
|
---------- ---------- ---------------
|
||||||
Ramesh 2024 2
|
Ramesh 2024 2
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Q5. List the owners who are not involved in any accident.
|
||||||
|
Ans.
|
||||||
|
```sql
|
||||||
|
SQL> select name from person where(driver_id#) not in(select driver_id# from participated);
|
||||||
|
|
||||||
|
NAME
|
||||||
|
----------
|
||||||
|
Rohit
|
||||||
|
Saarthak
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user