You are on page 1of 2

Study the next module: Data Manipulation Language and find the commands that can do the

following:

Student Table
 Write SQL commands for the following:
a.  Create an INSERT command to
add a student with a student ID of 65798 and last name
Lopez to the Student table
INSERT INTO student ( studentID )
VALUES 65798

INSERT INTO student ( StudentName )


VALUES Lopez

b. Now write a command that will remove Lopez from the


Student table.
DELETE FROM student
WHERE StudentName = ‘Lopez’

c. Create an SQL command that will modify the Studentname


ofAltvater to Altavister.
UPDATE Customers
SET ContactName='Juan'
WHERE Country='Mexico';

UPDATE Student
SET StudentName = ‘Altvater’
WHERE StudentName = ‘Altavister’

You might also like