relational databases and SQL Flashcards

1
Q

what is a database

A

are structured , persistant collections of data

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

where are databases used

A

schools - eg.
… learning platforms such as Google Classroom
…. management information systems such as SIMS or iSAMS
organisation/business use- eg
…. online calenders eg google calender
CRM softare ( customer relationship management)
personal use - eg
…. social media
….multiplayer games

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

what are the data types in SQL language

A
  • float ( number with a decimal point )
    -CHAR ( fixed-length string up to 8000 characters )
    -VARCHAR ( variable length string up to 8000 characters
  • integer ( whole number )
  • text ( variable length sting up to 2 GB of data
    date, time, DateTime (to store dates and times )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is a flat - file database

A

stores a single table of data inside a single text file
- they are also stored in a CSV format
- they are typically used in small/ trivial datasets

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

what are the advantages of data bases when handling large data sets

A
  • makes processing easier
  • reduces storage requirements
  • avoids redundancy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what are the types of data bases

A

flat file database
-relational database

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

what are the disadvantages of a flat file

A
  • very inefficient as data is often duplicated
  • difficult to query as data is consumed in one table
  • suffer from inconsistencies between records
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is a table

A

stores records and fields in an organised manner

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

what is a record

A

set of data stored in a table,

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

what is a field

A

one item of data , a column in a table

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

what is a primary key

A

fieild containing unique values for all records

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

what is a relational data base

A

have more than one related table
and eliminates data inconsistency and data redundancy

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

what is a database management software

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