databases Flashcards
What is a database?
A collection of tables of data
What is the software that databases use?
Database management system
What are the 2 types of databases?
Relational
Non relational
What is a relational database?
A database where data is stored in a tabular format
(Tables)
What is a non relational database?💿
It is a database where data is stored in key value pairs
What is SQL used for?
Structured Query Language used For manipulating and storing data in databases
What are the 5 functions of SQL?
Create
Select
Insert into
Delete
Update
What is input sanitisation?
It clears the inputted data of unwanted characters to avoid malicious code such as speech marks, brackets, commas
What is input validation?
It checks the inputted data fits the criteria so that it is in an accepted format.
What is a record?
A record is collection of data within a table related to a topic
What is a field?
A field is a set of values arranged in a table that has the same data type
What is maintainability?
Ensures that your code is eas to understand, read, modify and reuse to prevent bugs and errors so your code runs smoothly
What are methods of maintaining code?
Indentation
Formatting
Commenting
Subprograms
Naming conventions
What are naming conventions?
It is when you give variables appropriate names so the code is easier to understand and you use no gaps and only lowercase letters and use underscores
(The set of rules that are followed in order to make an appropriate/good variable name)
What is formatting?
Formatting is the structure of the code or the way its presented