relational databases and SQL Flashcards
what is a database
are structured , persistant collections of data
where are databases used
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
what are the data types in SQL language
- 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 )
what is a flat - file database
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
what are the advantages of data bases when handling large data sets
- makes processing easier
- reduces storage requirements
- avoids redundancy
what are the types of data bases
flat file database
-relational database
what are the disadvantages of a flat file
- very inefficient as data is often duplicated
- difficult to query as data is consumed in one table
- suffer from inconsistencies between records
what is a table
stores records and fields in an organised manner
what is a record
set of data stored in a table,
what is a field
one item of data , a column in a table
what is a primary key
fieild containing unique values for all records
what is a relational data base
have more than one related table
and eliminates data inconsistency and data redundancy
what is a database management software