Applied ICT A Level Unit 3 - Database Design
The version of IE 8 we're forced to use at school is doing really odd and painful things to the subnavigation look - leaving big gaps and whathaveyou. I'm trying to fix it but it only seems to happen at school and I can only fix it at home. If anything in the navigation looks really odd then an e-mail would be much appreciated. Thanks.
Megan's Database - a worked example
The aim of this page is to demonstrate the development of a relational database from scratch, as well as show why a relational database is useful.
If you're looking for something a bit more complex, then try Emo's Painters Database. That assumes a bit more knowledge and understanding about databases, but is a sound example of what can be done quite nicely.
But let's start here with the basics...
Starting with the basics...
It's important to understand what databases do and how we can use them. The essential purpose is to organise information - often large amounts of it - and allow that information to be retrieved and presented when required. This involves the use of queries to search for information and reports to present it. Data entry forms might be used to help with these processes.
So we might have a database for a school or college where each student takes a class with a particular tutor. This can easily be modelled using a simple database:
An introduction to basic databases
But there are issues with such a simple database - especially when you need to update it.
The solution is to develop a relational database. Essentially this puts the information about each lot of data in a different table - so in our example, all the student information goes in one table and all the tutor information in another table.
This makes updating (and adding) information a lot easier, but it needs to be well designed and then linked together. That's the tricky bit...
Moving to a relational database
Megans's Job Database
Now we know the basics, we can design a database which will work for lots of basic applications. As a first database to build it's not a bad thing.
Note that the type of job is never specified in the files. That's deliberate - you could apply this database design to a wide range of job types without too much alternation - you just need to decide what types of costs might be involved and add them as required.
A specification for Megan's Job Database
You can build this database. It's not hard to do - just watch the data types.
Once you have it built you need to enter some basic data - four or five customers, four or five types of jobs and then decide on some jobs for specific customers for tblJob.
Now it's time to start to use the database.
List of jobs for Megan's Database
Use queries to produce the lists. You can then use reports to produce outputs which are fit for purpose...
You should probably look at That Blue Square Blog for all the really good other A Level stuff.
