Learning Aims and Objectives:
Aim: In this week's page, students will learn the.
Objectives:
1. By the end of this week's page students will be able to.
2. By the end of the week's page students will be able to.
3. By the end of the week's page students will be able to .
4. By the end of the week's page students will be able to
5. By the end of the week's page students will be able to.
• Types of relational database management systems (RDBMS) and their characteristics.
What is a RDMS?
A (RDMS) Relational database management systems is a database that is used to keep data in tables (this is also refered to as an entity or relation), each of these tables holds linked data, for example client details. The relational data structures join the tables into datasets
• RDBMS based on relational models:
o relational data structures – relation, attribute, domain, tuple, cardinality and relational database
o relational algebra sets – symbols, union, intersect, join, select
o database relations – entity relationship, generic, semantic
o relational keys –
Super key - As an example, a table could contain columns like those below
A set of columns could be used, Examples of superkeys are as follows:
The process may be reduced. You can assume that the customer ID is unique to each customer. So the superkey could be reduced to just one field the customer ID, which is the candidate key. However, to ensure absolute uniqueness, a composite candidate key may be formed by combining customer ID with NI.
candidate key,
primary key: - This type of key is used as a unique identifer for a given data set, this can be a combination of letters and numbers. You as an individual in the UK will at the age of 15-16 be sent your National Insurance Number, this number stays with you up to and beyond your death. The number is used to allow things like tax and national insurance to be collected against you, but to also enable you to use this when it comes to claiming benefits, state pensions, and health benefits. This number needs to be unique to you. In databases, we use (in most places) an auto number to provide this detail. Within Access, the auto number starts at 1 and increments by one. If a number is deleted from the database, for example, a mis-entry the number will not be able to be used again.
foreign key : - This key is used often in databases as it is essentially the primary key again, however, in this instance the key is in another table. For example, if you took your national insurance number and put it into the table, employment ( this is a table that would have your employment information) your id could appear more than once as you may be employed by different employers over the years. Within the "Employment" table, it would have its own primary key so that your foreign keys could appear more than once.
entity integrity,
referential integrity
one-to-one,
one-to-many : - Found in almost all database, one-to-many relationships are the link between a data set to another relevant dataset, for example, you are a student at the college, you have a student ID, this id is unique to you. You are studying a course that has a Course ID. You are not the only one studying on this course there are others. So we would have a table that records the enrolment. So your unique id would be put into the enrolment table and next to it would be the course id too.
many-to-many.
Use of RDBMS software tools and structured query language (SQL) for defining,
modifying and removing data structures and data:
When using SQL we can use a series of commands to enter data in to tables, the below are examples of SQL commands used;
INSERT INTO Table_Name (FIELD1, FIELD2) VALUES ("Hello","World");
https://www.w3schools.com/sql/exercise.asp?filename=exercise_insert1
UPDATE Table_Name SET (FIELD1= "Hello" FIELD2="World") WHERE Condition;
https://www.w3schools.com/sql/exercise.asp?filename=exercise_update1
DELETE FROM Table_Name WHERE condition;
https://www.w3schools.com/sql/exercise.asp?filename=exercise_delete1
You will often use the below structure to recall data and information from a system to enable the creation of a report;
SELECT * FROM Table_Name WHERE Condition;
the above statement can be shortened to
SELECT * FROM Table_Name
This statement will recall all information from the identified table and display it to the user, whereas the previous statement can enable the user to define specific search criteria, for example looking for only females.
https://www.w3schools.com/sql/exercise.asp?filename=exercise_select1
• administration of users
• security, integrity, recovery.
Links to Learning Outcomes |
Links to Assessment criteria |
|
---|---|---|
AO1 Demonstrate knowledge of database development terminology, standards, concepts and processes |
Reading: Read and understand texts, selecting material appropriate to purpose, collating from different sources and making comparisons and cross-references as appropriate.
Sentence Structure: Use a range of sentence structures for clarity, purpose and effect, with accurate punctuation and spelling.
Analysis of information: Interpreting Results, Drawing conclusions from data, Comparing data
Using Numbers: Counting, Place value, adding and subtracting, multiplying and dividing.
Collect and record data: Questionnaires, Observation, Tally
Anonymous Assessment - Learners assess an anonymous piece of work containing deliberate mistakes against given success criteria.
Product Evidence - Learners to create product evidence to demonstrate understanding
Question and Answer - Verbal discussion with learners to quantify understanding