12,475 views
41 votes
41 votes

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
  1. 0 row and 4 columns
  2. 3 rows and 4 columns
  3. 3 rows and 5 columns
  4. 6 rows and 5 columns

5 Answers

Answer:

Related questions

38 votes
38 votes
3 answers
5
Ishrat Jahan asked Nov 2, 2014
11,015 views
Consider two tables in a relational database with columns and rows as follows:$$\overset{\text{Table: Student}}{\begin{array}{|c|c|c|} \hline \textbf {Roll_no} & \textbf{...
43 votes
43 votes
5 answers
6
Ishrat Jahan asked Nov 2, 2014
10,747 views
A table T1 in a relational database has the following rows and columns: $$\begin{array}{|c|c|c|} \hline \text {Roll no. } & \text {Marks} \\\hline 1& 10 \\\hline 2 & 20 ...
43 votes
43 votes
6 answers
8
Ishrat Jahan asked Nov 2, 2014
12,417 views
Consider the following schedule $S$ of transactions $T1$ and $T2:$$${\begin{array}{l|l}\textbf{T1}& \textbf{T2} \\\hline\text{Read(A)} \\\text{A = A – 10}\\& \text...