viewnotes/550/Database Management Systems 10CS54 VTU notes

The Eduladder is a community of students, teachers, and programmers just interested to make you pass any exams. So we solve previous year question papers for you.
See Our team
Wondering how we keep quality?
Got unsolved questions?

Ask Questions

Database-Management-Systems---10CS54-VTU-notes-->View question

Explain insert, delete and update statements in SQL with example. Database Management Systems - 10CS54 VTU notes 8 Marks (Dec/Jan 2013 & June/July 2015)

Explain in brief.?


Taged users:

Be first to like this question

Be first to dislike this question

Talk about thisDelete|Like|Dislike|

You may also like our videos

Below are some of the videos from our collection. We saw that students not only needed content but also videos. So, we decided to build a video platform for you also an algorithm which shows best videos suites to you related to the content you are browsing check out some videos which suit best for you.


The Insert Operation This operation can violate all constraints in a relational database.Domain constraints can be violated if an attribute value is given that does not appear in the corresponding domain. 
Key constraints can be violated if a key value in the new tuple already exits in another tuple in the relation R. Entity constraints can be violated if the primary key of the new tuple is null. 
Referential integrity can be violated if the value of any foreign key in t refers to a tuple that does not exist in the referenced relation. Examples of this operation: 
• Insert <`Ahmad',`Jabbar', null, `60/04/05',F,28000,null,4> into EMPLOYEE.
 This insertion violates the entity integrity constraints (SSN=null). Insert <`Alicia',`Zelaya',`999887777',`60/04/05',F ,28000,`987654321',4> into EMPLOYEE. 
This insertion violates the key constraint (SSN=999887777 is already exists). • Insert <`Ahmad',`Jabbar',`677678989',`60/04/05',M, 28000,`987654321',7> into EMPLOYEE. This insertion violates referential integrity (DNO=7, there is no DEPNUMBER=7 in DEPARTMENT relation). • Insert <`Ahmad',`Jabbar',`987987987',`69/03/29',M,2800,null,4> into EMPLOYEE. This insertion is acceptable.

The Delete Operation This operation can violate only referential integrity. Examples of delete operation:
 • Delete the WORKS_ON tuple with SSN=`123456789' and PNO=1. This deletion is acceptable.
 • Delete the EMPLOYEE tuple with SSN=`999887777'. This deletion violates the referential integrity (tuples in WORKS_ON refer to this tuple).
• Delete the EMPLOYEE tuple with SSN=`333445555'. This deletion violates referential integrity (tuples in EMPLOYEE, DEPARTMENT, WORKS_ON, and DEPENDENT refer to this tuple)
The Update Operation The new value must be of the correct data type and domain. Examples of update operation:
 •Update the SALARY of the EMPLOYEE tuple with SSN=`999887777' to 28000. This update is acceptable. 
•Update the DNO of the EMPLOYEE tuple with SSN=`999887777' to 7. This update violates referential integrity (there is no DNUMBER=7 in DEPARTMENT relation). 
• Update the SSN of the EMPLOYEE tuple with SSN=`999887777' to `987654321'.. 


Be first to like this answer

Be first to dislike this answer
Talk about this|Once you have earned teacher badge you can edit this questionDelete|Like|Dislike|

Lets together make the web is a better place

We made eduladder by keeping the ideology of building a supermarket of all the educational material available under one roof. We are doing it with the help of individual contributors like you, interns and employees. So the resources you are looking for can be easily available and accessible also with the freedom of remix reuse and reshare our content under the terms of creative commons license with attribution required close.

You can also contribute to our vision of "Helping student to pass any exams" with these.
Answer a question: You can answer the questions not yet answered in eduladder.
Career: Work or do your internship with us.
Create a video: You can teach anything and everything each video should be less than five minutes should cover the idea less than five min.
Donate: Ad revenue alone is not able to take care of our server cost consider donating at least a dollar Click here to donate.

If you want the help of doing any of these never hesitate to drop an email to me arunwebber[at]gmail[dot]com, Or you can ping us on WhatsApp ph: 8147433408

Can you help us to add better answer here? Please see this

Not the answer you're looking for? Browse other questions from this Question paper or ask your own question.

Join eduladder!