databases
hi,
i just want to know what a database is what you can do with it how you create it etc. i just want to have an overall understanding of what it is. any help is appreciated.
thanks in advance
[215 byte] By [
justin2] at [2007-11-18 15:05:52]

# 1 Re: databases
Hi,
I'm sure someone will give you a much better definition of a database than me, but since you just asked for an overall understanding my basic knowledge will do as a start. There are two main database types that I know of, relational databases and object oriented databases. You could do a search for either of those on google.
The database is used to create persistent information, ie information that is stored in some way and can then be accessed on request. The relational database stores data in tables, such as a table of peoples addresses etc. The power comes from being able to create relations between tables. This is done using primary keys in each table. A primary key is something that uniquely identifies an entry in a table (such as your bank account number, no other account has the same number even if it's a seperate account in your name). The primary key can appear in other tables, and so relations between the tables can be made. This is obviously very much simplified, but I hope you can see the basic point. The data in the database will be accessed using something like SQL, which is an imperitive program language used to query the database. It's not too complicated to begin to understand.
As to how to create and use databases, I can't help you with that. You would use an off-the-shelf database like MSAccess (if it was a small project), or one of the bigger commercial databases, but I don't yet know how to actually go about doing it.
I'd welcome anyone to correct me, or explain the basics concepts in a more concise way. I recently learnt the basics of databases in my degree course and will be doing a more in-depth course on them after christmas, so this thread will be useful to me too.
Hope this helps in some way Justin :)
# 2 Re: databases
If you want to get started with database programming in java. You can go get a SQL server from mysql http://www.mysql.com/products/mysql/index.html and the mysql driver for java http://www.mysql.com/products/connector-j/index.html
khp at 2007-11-9 13:37:16 >

# 3 Re: databases
though, in contradiction to khp's recommendations, if you are totally clueless as to what a database is, you should have a play with microsoft access first; define some tables, run some queries.. see what you get and how it works. ignore forms, reports and macros... jsut get used to actual DATA and queries.. you'll get bogged down trying to learn about a database if you approach them programmatically
cjard at 2007-11-9 13:38:14 >

# 4 Re: databases
Originally posted by cjard
though, in contradiction to khp's recommendations, if you are totally clueless as to what a database is, you should have a play with microsoft access first;
I generally prefer to stay away form microsoft products as much as possible. Especially nonfree products :(. I simply don't understand why anyone would pay for an access database cosidering the freely avaliable alternatives.
Originally posted by cjard
define some tables, run some queries.. see what you get and how it works.
You can of course do much the same with mysql, interaction with the database directly via the command line interface cf here (http://www.mysql.com/doc/en/Tutorial.html)
Or using the Mysql control center (http://www.mysql.com/products/mysqlcc/index.html)
khp at 2007-11-9 13:39:17 >

# 5 Re: databases
Ok, but you can also find lots of primer resources on the web that would help you understand what it is theoretically, before you jump in with both feat. Probably reading a little bit first woudl really help you accelerate your learning, and when playing around with whatever DB, would enable you to cement what you've read into practical, applicable knowledge.
# 6 Re: databases
thanks for all the replys, though i thought that MS access was free because it came with my computer. Ill play around with it.
thanks again,
justin
# 7 Re: databases
hmm...i was under the impression that a database was a 3 dimensional table, is there any such thing?
thanks in advance,
justin
# 8 Re: databases
[Merged/Moved thread]