Informatica SQL 4, 5

SQL - 4
UPDATE
1 / 6
next
Slide 1: Slide
InformatiemanagementWOStudiejaar 4

This lesson contains 6 slides, with interactive quiz and text slides.

Items in this lesson

SQL - 4
UPDATE

Slide 1 - Slide

4) UPDATE
The UPDATE statement is used to modify the existing records in a table.
UPDATE [Table Name]
SET [Column Name]=['Value 1'], [Column Name2=['Value2']
WHERE [Column Name]='   '
StudentsTable

Slide 2 - Slide

UPDATE StudentsTable
SET Lesson='Math'
WHERE StudentID= '613109'
StudentsTable

Slide 3 - Slide

Chris decided that his favourite lesson was actually Chemistry. What should we type in order to update his favourite lesson?
A
UPDATE StudentsTable SET Lesson='Chemistry' WHERE StudentID='Chris'
B
UPDATE StudentsTable SET Lesson='Chemistry' WHERE StudentID='983376'
C
UPDATE StudentsTable SET Lesson='Chemistry' WHERE Name='Chris'
D
UPDATE StudentsTable SET Lesson='Chemistry' WHERE column1='983376'

Slide 4 - Quiz

JOINs

The JOIN statement is used to combine rows from two or more tables, based on a related column between them.
  • INNER JOIN
  • LEFT JOIN
  • RIGHT JOIN
  • FULL JOIN

Slide 5 - Slide

Slide 6 - Slide