Question:
what is the difference between database system and file system?
Mintoo
2011-04-17 01:44:45 UTC
in subject database management system
Four answers:
anonymous
2011-04-17 02:05:44 UTC
Databases are a more general idea than filesystems. A database is a system that allows you to store and retrieve data in an organised way.



Filesystems are one particular type of database. It models data as "files" which contain byte data of usually arbitrary length. Files have a name, usually at least one path to help group them into related collections ("directories" or "folders"), and various other metadata associated with them (last modification date, access control information, media type, etc).



Usually the type of database that most people are referring to when they talk about "databases" is a relational database. These store data in tables which are generally created by the end user - designed with particular columns and constraints. Each table contains zero or more rows of data. Relational database software (aka Relational Database Management Systems) often provides access to the data using SQL, a standardised query language for relational data. They often provide other features like views, indexes, stored procedures, etc. Most RDBMS software stores this data in one or more files which they place on a filesystem.



There are other types of database too...



* key/value stores: Berkeley database is one of the best known ones.

* triple/quad stores: for storing RDF data, such as 4store, Virtuoso (which also supports relational data), Jena TDB, etc.

* graph stores: such as AllegroGraph (which can also be used as a triple store).

* object databases: often referred to as "NoSQL", these are a variation on key/value stores. Apache Cassandra is an example.
?
2011-04-17 01:52:25 UTC
Simply put, a file is a collection of bytes stored together. An example of a file could be a Text File (a collection of alphanumeric characters that, when put together, form a readable document) or a Bitmap Image File (a collection of bytes that software would then interpret as elements of an image).



A database is a special type of file that holds many tables. Each table can hold many fields as well as records. Think of a table as a spreadsheet. Each column represents different fields, such as "UserID", "LastName", and "CityOfResidence". Each row represents a record, or an entry, in the table, such as an entry for John Smith who lives in Albuquerque.



An example of a database would be one that has three tables: Books, Instructors, and Courses. Different fields in the "Books" table would be "Author", "Publisher", "Title", and "ISBN". Different records within "Books" would be, for example, an entry for "Learning Java in 20 Days" (Title) by John C. Doe (Author), published by ABC Publishing Co. (Publisher).



Each table in a database requires one field to be designated as the Primary Key. This means that, in order to uniquely identify a record in a table, one field needs to be used. In a "Students" table, the "StudentID" could be used as the Primary Key, since no two records (students) can have the same Student ID. For "Books" it could be "ISBN", since that is unique per book title.
?
2016-10-27 07:02:44 UTC
no longer plenty. A database is mostly extra stepped ahead. The record device is more than a number of saved records or information. shall we are saying names and addresses (a database). A database, like MS get entry to would have a device of truly extracting area of that records intelligently. it might also be relationable. so that you ought to assert tutor me each and each of the names starting up with G. Or tutor me each and each of the names starting up with G who stay in London.
eye-queue (IQ)
2011-04-17 02:06:04 UTC
..



File System vs Data base Management System



1. Files act locally where as DBMS saves directly in a database

2. Saves in temporary locations where as DBMS in well arranged and permanent data base locations

3. In File Sys., transactions are not possible where as various transactions like insert,delete,view,updating etc r possible in DBMS

4. Data will be accessed through single or various files where as in DBMS, tables (schema)

is used to access data

5. A "File manager" is used to store all relationships in directories in File Systems where as a data base manager (administrator) stores the relationship in form of structural tables

6. Last.... but not the least.... Data in data bases are more secure compared to data in files!!



...


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...