• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

GATE | GATE-IT-2004 | Question 74

A relational database contains two tables student and department in which student table has columns roll_no, name and dept_id and department table has columns dept_id and dept_name. The following insert statements were executed successfully to populate the empty tables:
Insert into department values (1, \'Mathematics\')
Insert into department values (2, \'Physics\')
Insert into student values (l, \'Navin\', 1)
Insert into student values (2, \'Mukesh\', 2)
Insert into student values (3, \'Gita\', 1) 
How many rows and columns will be retrieved by the following SQL statement?
Select * from student, department

(A)

0 row and 4 columns

(B)

3 rows and 4 columns

(C)

3 rows and 5 columns

(D)

6 rows and 5 columns

Answer

Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated :
Share your thoughts in the comments