Informatica SQL 4, 5

SQL - 4
UPDATE
1 / 6
volgende
Slide 1: Tekstslide
InformatiemanagementWOStudiejaar 4

In deze les zitten 6 slides, met interactieve quiz en tekstslides.

Onderdelen in deze les

SQL - 4
UPDATE

Slide 1 - Tekstslide

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 - Tekstslide

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

Slide 3 - Tekstslide

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 - Quizvraag

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 - Tekstslide

Slide 6 - Tekstslide