Labels

Wednesday, 19 September 2012

D1 unit 18


There are many common errors that can happen in database design but there are also ways of avoiding these errors. One error that can occur in databases is the deletion of fields/records. This is when some data can be deleted within the database which means important information can be lost. To stop this from happening, the database should be backed up regularly to allow all changes to be saved and no information will be lost. Another way of stopping this error is not working directly into the database. Another error that can occur in databases is incorrect data types. This is when people put in data that isn’t relevant which means the data being put into the database is invalid. It also can happen when people use letters instead of numbers which means each bit of data can be different to others within the database. A way of overcoming this error is using input masks. An input mask only allows you to put a certain amount of characters in a text box. For example, when entering card details, there are spaces which only allow you to type in a certain amount of numbers like when you write in your security code. Another way of overcoming this error is using a drop down choice and multiple choices. By having this it means that only certain information can be selected which means the correct data will be put into the database. Another common error that can happen within a database is renaming incorrectly. This is when people filling in their data or other people’s data may spell things wrong which means the data will not be useful and will be invalid. This could be overcome the same way as inputting incorrect data types can be, by using input masks, drop down and multiple choices. Validation is another common error that can come up when using a database. Data can sometimes be put in wrong so a way of overcoming this is creating rules during the design of the database. Some of these rules include only have a limited amount of characters and batch totals. Batch totals check that there are no records empty which means that all records have to be filled in. This means that all data will be correct and all information that is needed will be in the database. Another rule could be presence check. Presence check makes sure that all important information is included in the database. For example, when filling out forms, information that is needed is normally marked with an asterisk. Null values are also a common error when designing a database. This is when records are completely left and not filled in. This corresponds with validation rules. A way of overcoming null values is combined with validation rules. For example, when a field is not filled in, a rule could be that an error message comes up asking to fill in the missing fields. This means that all information would be in the database. 

1 comment: