A Database is a structured collection of information that can then be put into/onto a piece of data gathering and storage software. Databases are very useful in the business world and can benefit a company’s organisation and mass-data storage.
What can a database do?
A database can be used for a lot of things but mainly it is used for easily storing data and then accessing it by querying it. As I have stated before, a database can be very useful for a business with a lot of clients.
What types of data are there in a database?
In a database you will obviously have data or information. This is otherwise known as raw data.
You will have Text data, which is data consisting of letters and numbers I.E: a postcode, an address e.t.c. Text data has a field size (the default is normally 50). What “50” means, is the amount of characters that are allowed to be in that one field. You will find that you will have to reduce this size in order to free up memory. I.E: a postcode’s recommended field size (spaces included) is 8. A telephone number can vary depending on weather or not you use spaces between numbers or not. If you’re unsure about how many characters to use, then go over the initially estimated amount very slightly. A field size difference of 1 can determine fully used memory or not in some cases.
Autonumber data is possibly the most valuable and important piece of information (besides the actual data itself). Autonumbers are unique to every piece of data in your database. Only 1 piece of data will have the Autonumber of 1, 2 and so on and so forth. When you have created the Autonumber section of your database, there is no need to fill it in. It will do this by itself. If you look in an Autonumber’s field size, it will display “Long Integer” meaning it can be as long as it needs to be.
Yes/No (otherwise known as Boolean) is a standard tick box field. This will normally consist of yes or no answers. I.E: does this house have a garage? If it does, the box will be ticked. This type of data is very straightforward with a not so very straightforward name.
Number; this again displays as “Long Integer.” This type of data is used for something that requires a number or two and nothing else. I.E: how many bedrooms does this house have? If the house has 3 bedrooms then “3” is required in the field. Number, again, is very straightforward.
Currency; this is very straightforward indeed. It’s all to do with money, the price of something. Currency is probably the easiest to understand.
Date/Time; this is not used very often. An example of when this might be used is when the police are recording a crime in their database.
OLE Object: this is to do with images and other things of that nature.
Hyperlink: A hyperlink is a piece of text that will take you to a web page. If you have used hyperlinks in word documents or anything of that kind, then hyperlinks are very straightforward.
I heard of these things called keys. What are they all about?
This is not your average standard key, which opens a lock. The keys, in terms of databases, are data types, which stand out above all others. I.E: a primary key is a selected field in a database that will uniquely serve that row in particular.
A foreign key is quite similar. A foreign key will have same name as your primary key in your second table (every business database will have more than one table). I.E: If you are making an estate agency database. You will have (in a standard database) a houses table saved as: tbl_houses and one saved as tbl_clients. In your clients table, your primary key will be an Autonumber row called “Client Number.” In your houses table, you will have a foreign key called “Client Number.” You will of course have to relate these two tables together.
What are table relationships?
This is not like your boyfriend/girlfriend-old-married-couple type relationship. This is more like a family, brother and sister relationship. The reason why client number is a foreign key in a houses table is because (thinking about it logically) one client can own many houses and many houses can be owned by one client. If you relate a two tables together then that is very beneficial because if you change something in one table and this data is also in the other table, then it will change it for you. You are promised to never miss any out. Meaning you can stay on top of your business easier and you don’t have to worry about changing two tables all the time. Self-management is a gift. Not a skill.
What is a query?
A query is a question that you ask to the database. This will only work if you have related all your tables together.
What is a form?
A form is a compilation of all the things you have done in this database. It will consist of queries that will quite literally query your tables that you have made and related. It will run macros to do so. It will only require macros if you make a query in a form.
So what are macros?
This is not the shop. Macros are scripts and/or commands which you can either write yourself or use a wizard to do so. Macros are the little messengers that tell the entire database that the form told them that they have to find I.E: all the detached houses that are on your database. Operators can be used.
But what are operators?
Operators are words that can determine if a house has to be: I.E: a detached with two bathrooms AND a garage or a detached with two bathrooms OR a garage. Operators can determine what house you get. (Some changes are more noticeable than others).
There are only two operators. AND, and OR.
I can’t remember all of this!
Don’t worry. There’s no substitute for practice and experience and should you forget then do not panic. This file will ALWAYS be here in my November archive.
That’s all for now. Must dash.
Thank you for your patience.
The Muffin.