SQL_1 Flashcards

(2 cards)

1
Q

Assuming there is a table: create table player (id int, team varchar, goals int), which query will show the total amount of goals per team?

A

✅ select team, sum(goals) from player GROUP BU team;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What SQL statement is used to change values in the database
update
change
replace
edit

A

✅ UPDATE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly