2.2.3(d) SQL Flashcards
1
Q
a database is …
A
… an organised collect of structured information, or data, typically stored electronically in a computer system
2
Q
SQL is …
A
… a language used to get data from a database
3
Q
use SQL when …
A
… when there is a lot of data you need a way of getting ‘querying’ the information that you want
4
Q
SQL commands
A
- SELECT population FROM world WHERE name - ‘Albania’
- SELECT * FROM world WHERE name = ‘Algeria”
- SELECT * FROM world WHERE name LIKE ’A*’ and population > 10,000,000
- SELECT name, population FROM world WHERE name LIKE ‘A’ OR name LIKE ‘B’
- SELECT name FROM world Where population > (SELECT population FROM world WHERE name = ‘Algeria’)