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

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

SQL is …

A

… a language used to get data from a database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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’)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly