Drop Table
Support Forum for database administrators and web based access to important newsgroups related to databasesHi, I have a very simple question. In what cases are relational databases necessary? Are they really necessary in cases where only a single type of query is to be performed based on one unique field or can we just put all fields together in a single database and just access them through that unique field?
Post Follow-up to this messageShwetabh (shwetabhgoel@gmail.com) writes: > I have a very simple question. > In what cases are relational databases necessary? > Are they really necessary in cases where only a > single type of query is to be performed based on one unique > field or can we just put all fields together in a single database > and just access them through that unique field? There are plenty of alternatievs to relational databases. There are object- oriented databases, there are probably still some hierarchical databases around, and there are systems that uses flat files. But the relational databases dominate the market, probably because they have proven to be very good at handling large amounts of data. -- Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se Books Online for SQL Server 2005 at http://www.microsoft.com/technet/pr...oads/books.mspx Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodin...ions/books.mspx
Post Follow-up to this messageErland Sommarskog wrote: > Shwetabh (shwetabhgoel@gmail.com) writes: > > There are plenty of alternatievs to relational databases. There are object - > oriented databases, there are probably still some hierarchical databases > around, and there are systems that uses flat files. > > But the relational databases dominate the market, probably because they > have proven to be very good at handling large amounts of data. > > -- > Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se > > Books Online for SQL Server 2005 at > http://www.microsoft.com/technet/pr...oads/books.mspx > Books Online for SQL Server 2000 at > http://www.microsoft.com/sql/prodin...ions/books.mspx Actually I am not asking about the alternatives. I just want to know that are relational databases really necessary for me if I require just a single record every time with no changes in structure, i.e I always need a record based on a unique value. Do i still need to create relations in the database or am I better off butting all fields in a single table and getting data from there.
Post Follow-up to this message"Shwetabh" <shwetabhgoel@gmail.com> wrote in message news:1140086144.048226.309750@g14g2000cwa.googlegroups.com... > Actually I am not asking about the alternatives. I just want to know > that are > relational databases really necessary for me if I require just a single > record > every time with no changes in structure, i.e I always need a record > based on > a unique value. Do i still need to create relations in the database or > am I better off > butting all fields in a single table and getting data from there. More accurately, it sounds like you're asking whether you need to normalize your database. In this case probably not and using something like SQL Server may be overkill. But without knowing more details, I don't think any of us can say for sure. >
Post Follow-up to this messageShwetabh wrote: > Actually I am not asking about the alternatives. I just want to know > that are > relational databases really necessary for me if I require just a single > record > every time with no changes in structure, i.e I always need a record > based on > a unique value. Do i still need to create relations in the database or > am I better off > butting all fields in a single table and getting data from there. I don't think you asked the right question. It seems you aren't asking whether to use relational database systems but whether to normalize your database or not. The main motivation to normalize data is to preserve its integrity when it is updated. A secondary reason is that normalization can help performance by ensuring you aren't maintaining redundant data. Given those factors you ought to have a good excuse if you don't normalize. -- David Portas, SQL Server MVP Whenever possible please post enough code to reproduce your problem. Including CREATE TABLE and INSERT statements usually helps. State what version of SQL Server you are using and specify the content of any error messages. SQL Server Books Online: http://msdn2.microsoft.com/library/ms130214(en-US,SQL.90).aspx --
Post Follow-up to this message>> if I require just a single record every time with no changes in structur e, i.e I always need a record based on a unique value. << There is nothing wrong with an indexed file, which is probably supported by your host language. RDBMS is for large amounts of inter-related data where integrity and portability are the big issue.
Post Follow-up to this messageIt depends what you are doing. If its a single row ever then just store the information in a xml document on the file system. If you are storing multiple rows then I'd consider using a database system because you then dont have to roll your own data access code, having said that, .NET has a number of facilities to help you there. Tony. -- Tony Rogerson SQL Server MVP http://sqlserverfaq.com - free video tutorials "Shwetabh" <shwetabhgoel@gmail.com> wrote in message news:1140086144.048226.309750@g14g2000cwa.googlegroups.com... > > Erland Sommarskog wrote: > > Actually I am not asking about the alternatives. I just want to know > that are > relational databases really necessary for me if I require just a single > record > every time with no changes in structure, i.e I always need a record > based on > a unique value. Do i still need to create relations in the database or > am I better off > butting all fields in a single table and getting data from there. >
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread