Question 3
Consider the tables Products and Suppliers given below:
| P_ID | P_Name | S_ID |
|---|---|---|
| 1 | Laptop | 3 |
| 2 | Smartphone | 2 |
| 3 | Tablet | 3 |
| 4 | Headphones | 1 |
Table 1: Products
| S_ID | S_Name |
|---|---|
| 1 | Sony |
| 2 | Samsung |
| 3 | Apple |
Table 2: Supplier
Now consider the SQL query given below:
Select *From Products P, Supplier SWhere P.P_ID<>S.S_IDHow many attributes and rows will be present in the resultant output table?
4 attributes and 9 rows
5 attributes and 8 rows
4 attributes and 8 rows
5 attributes and 9 rows