Consider the following tables:
Table 1: TEACHER, which stores Teacher ID (TID), Teacher Name (TName), Experience(Experience) and City (City) that they live in.
| TID | TName | Experience | City |
|---|---|---|---|
| 1 | Kartik | 5 | Bhopal |
| 2 | Shahnaz | 6 | Nagpur |
| 3 | Rajendra | 7 | Delhi |
| 4 | Tanvi | 4 | Bhopal |
| 5 | Alam | 9 | Delhi |
Table 2: SUBJECT, which stores Subject ID (SID), Subject Name (SubName) and ID of the teacher (TID) teaching that Subject.
| SID | SubName | TID |
|---|---|---|
| 101 | Physics | 1 |
| 102 | Chemistry | 2 |
| 103 | Mathematics | 3 |
| 104 | Informatics Practices | 4 |
| 105 | Computer Science | 5 |
Write appropriate SQL query for the following:
(I) Delete the record of the subject whose TID is equal to 4.
(II) Display the names of teachers who have more than 5 years of experience and who stay in Nagpur.
(III) Display subject names along with their teacher names.
DELETE FROM SUBJECT WHERE TID = 4; SELECT TName FROM TEACHER WHERE Experience > 5 AND City = 'Nagpur'; SELECT SubName, TName FROM TEACHER, SUBJECT WHERE TEACHER.TID = SUBJECT.TID; State whether the following statement is True or False:
In Pandas Series, the Positional index can be a string or an integer.
We can add a new row to a DataFrame DF using the ______ method.
Naveen discarded various types of waste material without realizing that e-waste contains harmful substances that could pollute the environment. He wants to know which of the following will be considered as e-waste?
In which scenario is a bar chart preferred over a line chart?
Which of the following network topology uses a central cable (backbone) to connect all devices?