0 ratings0% found this document useful (0 votes) 78 views4 pagesRDBMS DML Post
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
€
vw Dashboard
Dev / Stage-1/ ROBMS lation Lar
Quiz review
‘Started on Thursday 12 October 2023, 126 AM.
State Fished
(Completed on Thursday, 12 October 2028, 1:26 AM
Time taken 25 0c
Marks 5.00/5.00
Grade 100.00 out of 100.00
Feedback Congratulations! You have passed by securing more than 80%
Question 1
Wihich $aL statement needs both insert and update prvllege onthe target table and select privilege onthe source table?
Select one
a. ater
b mergew
c. delete
6. update
The correct answeris: mergeQuestion 2
Consider the below table structure:
[Folumn Name Patatype Feonstraint
[Empname archar2(20) INot Null
lempia INumber(70) PK
IPhoneno INumber(70) Nota
insert into employee(empid.empname)values('123' John);
‘When we issue the above insert command and ifthe statement fails,
what would be the reason,
Select one
4 The statement will get executed successfully
. Value for phoneno is missing.
© The column order should not be changed.
4. empid value should be given without single quotes.
‘Your answer's coe
‘The correct answers Value for phoneno is missing
Question 3
DELETE FROM dept WHERE dept = 901;
‘The above delete statement throws an integrity constraint error because a child record was found. What could we do to make the
statement execute?
Select one
‘Add the "CONSTRAINTS CASCADE" option to the command.
b. Delete the child records first.
Add the FORCE keyword to the command.
4. You cannot make the command execute
‘Your answer's correct
‘The correct answeris: Delete the child records frst,Question 4
Examine the structure of the Employee table:
[Folumn Name Patatype [Ponstraint
[Empname Wvarehar2(20) INot Null
lEmpia INumber(70) PK
IPhoneno INumber(70) Nota
[Deptid INumber(70) FK
Datain the Departmant table
[bepuid [pname [Location
h [sales Mumba
iz IMarketing Kkorkate
Wich update statement produces the folowing eror?
(0RA.02281: integrity constraint (S¥S_C23) violated - parent key nt found
Select one
UPDATE Employee SET empid = NULL WHERE deptid=5;
b. UPDATE Employee SET Empid = 101 WHERE Deptid=
© UPDATE Employee SET empid = NULL WHERE phoneno=9876543210;
4. UPDATE Employee SET Deptid=3 WHERE Empid = 101;
‘Your answer's core.
The correct answers: UPDATE Employee SET Deptid=3 WHERE EmplQuestion 5
Examine the structure of the STUDENT table:
[bolumn Name Patatype Jeonstraint
(Studia INumber(3) PK
Name Wvarchara(20) INotwull
address Wvarchara(30)
[bos pate
Wihich statement inserts new row into the STUDENT table?
Select one
‘INSERT INTO student (stud_id, address, dob)
\VALUES (101,100 Main Street'17-JUN-99);
',_ INSERT INTO student VALUES (101;smith);
©. INSERT INTO student VALUES (101;100 Main Street17-JUN-99''Smith);
4. INSERTINTO student (stud id, address, name, dob)
VALUES (101/100 Main StreetSmith17-JUN99);
‘Your answer's core
‘The correct answers: INSERT INTO stident (¢tuXk
VALUES (107;100 Main StretSmit!17-JUN-99);
ss, name, dob)
4 Delete Records
Jump to
‘Test Your Understanding (copy) >