You are here: Re: Select command with multiple tables « MsSQL Server « IT news, forums, messages
Re: Select command with multiple tables

Posted by Shwetabh on 02/17/06 09:34

Erland Sommarskog wrote:
> Shwetabh (shwetabhgoel@gmail.com) writes:
> > Well, apparently, since the dataabse will be used for Label printing,
> > the DBA has to change the schema by adding new fields according to the
> > requirements. Do you suggest instead of normalising the database I
> > should create a single table which holds all the fields which will be
> > used for label? Or is thr some better way out. Now, since I am
> > converting legacy database, it should be possible to add data to the
> > table through a single query which I cannot really foresee happening in
> > a normalised database.
> > What do u suggest?
>
> Since I don't have the full story, but just some selected bits and pieces,
> maybe I should not suggest anything.
>
> Generally, SELECT * is bad. You talk about converting a legacy database,
> but I don't know if that database is even SQL Server. And how your
> question about relational database fits into this, I don't really see.
>
> If you could give a more complete picture of what you are up to, it
> might be easier to give better advice.
>
> --
> Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
>
> Books Online for SQL Server 2005 at
> http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
> Books Online for SQL Server 2000 at
> http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

Ok,here are the details:

I am supposed to convert DBASE IV data to MS SQL server 2000 database.
Now, there are about 40 DBASE tables each of which contains fields
ranging
from 3 to 30. Most of the fields hold either NULL values or redundant
data. In all these tables and fields, there is only one common field
"Partnum".
Now earlier, this DBASE database was used by a labelling software
"Easylabel". It used to
retrieve the neccessary data using the field "Partnum". This software
will connect to
SQL server and retrieve the data when conversion process is complete.

Now my dillema is that should I just create a database containing all
the fields in a single
table or should I try to create relationships among different data
objects. If I put them in a single table, will the system take a
performance hit when accessing data?
If I create relationships, how can I retrieve the data from tables
where information about new fields added by users without using select
*..?

I hope I made myself clear. If any doubts, plz let me know.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация