basis 5 tm 10 Flashcards

1
Q

toon de tabel city uit de database customers

A

SELECT city FROM customers

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

toon de id en city uit de database customers

2 querys tegerlijk tonen

A

SELECT city FROM customers;

SELECT id FROM customers;

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

toon namen en postcode uit database customers

A

SELECT name,zip FROM customers

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

toon alle tabellen uit database customers

A

SELECT * FROM customers

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

toon alle unieke staten van database customers

A

SELECT DISTINCT state FROM customers

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

toon eerste 5 id en name van database customers

A

SELECT id,name FROM customers LIMIT 5

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

toon 6-15 id en name uit database customers

A

SELECT id,name FROM customers LIMIT 5, 10

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

toon op alfabetische volgorde de namen van database customers

A

SELECT name FROM customers ORDER BY name

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

toon namen en postcode georderdend op postcode van z-a uit database customers

A

SELECT name,zip FROM customers ORDER BY zip DESC

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

toon de naam en id uit database customers gesorteerd op basis van id aflopend en toon alleen de hoogste

A

SELECT name, id FROM customers ORDER BY id DESC LIMIT 1

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

toon id en name met id nummer 54 uit database customers

A

SELECT id, name FROM customers WHERE id=54

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

toon id en name met id zonder 54 uit database customers

A

SELECT id, name FROM customers WHERE id !=54

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

toon id en name waar id kleiner is dan 8 van database customers

A

SELECT id, name FROM customers WHERE id < 8

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

toon id en name waar id kleiner is dan 8 inclusief 8 van database customers

A

SELECT id, name FROM customers WHERE id <=8

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

toon id en name waar id zit tussen 25 en 30 uit database customers

A

SELECT id,name FROM customers BETWEEN 25 AND 30

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

toon name en staat van CA

uit database customers

A

SELECT name, state FROM customers WHERE state = ‘CA’