edited by
10,796 views
43 votes
43 votes

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 \\\hline3 & 30  \\\hline 4 & \text{NULL}\\\hline \end{array}$$
The following sequence of SQL statements was successfully executed on table T1.

Update T1 set marks = marks + 5
Select avg(marks) from T1


What is the output of the select statement?

  1. $18.75$
  2. $20$
  3. $25$
  4. $\text{Null}$
edited by

5 Answers

–5 votes
–5 votes
option a
Answer:

Related questions

38 votes
38 votes
3 answers
5
Ishrat Jahan asked Nov 2, 2014
11,057 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
6 answers
8
Ishrat Jahan asked Nov 2, 2014
12,465 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...