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{Name} & \textbf{Dept\_id} \\\hline 1& \text{ABC} & 1\\\hline 2& \text{DEF} & 1 \\\hline 3 & \text{GHI} & 2\\\hline 4 & \text{JKL} & 3\\\hline \end{array}} \qquad \overset{\text{Table: Department}}{\begin{array}{|c|c|c|} \hline \textbf {Dept\_id} & \textbf{Dept\_name} \\\hline 1& \text{A} \\\hline 2& \text{B} \\\hline 3 & \text{C} \\\hline \end{array}}\]Roll_no is the primary key of the Student table, Dept_id is the primary key of the Department table and Student.Dept_id is a foreign key from Department.Dept_idWhat will happen if we try to execute the following two SQL statements?update Student set Dept_id = Null where Roll_on = 1update Department set Dept_id = Null where Dept_id = 1
- ABoth i and ii will fail
- Bi will fail but ii will succeed
- Ci will succeed but ii will fail
- DBoth i and ii will succeed