472,953 Members | 1,600 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,953 software developers and data experts.

many columns in a table

Is it reasonable to have a table with about 300 columns? There will be
about 2500 rows.

The data does not normalize. The alternative would be about 30 tables
of about 10 columns each (all 30 tables with about 2500 rows). If I do
this, about half of the selects will be against one table, but the
other half will require joins of all 30.

Assume they're all varchar (mostly less than 32 characters, with about
half of the columns in any given row null).

Selects outnumber inserts/updates by about a thousand to one.

I will probably need an index on every column.
Jul 19 '05 #1
2 2322
It doesn't sound reasonable to me. Denormalizing to avoid a 30 table join
sounds fine. But with half the columns null, I think you've gone to far.

The alternative: My instinct says the table with half the selects against it
should be that table alone. The other 29 tables can likely be denormalized
into some handful of tables that are logically related.

e

In article <3c**************************@posting.google.com >,
tr*****@yahoo.com (Thomas Reat) wrote:
Is it reasonable to have a table with about 300 columns? There will be
about 2500 rows.

The data does not normalize. The alternative would be about 30 tables
of about 10 columns each (all 30 tables with about 2500 rows). If I do
this, about half of the selects will be against one table, but the
other half will require joins of all 30.

Assume they're all varchar (mostly less than 32 characters, with about
half of the columns in any given row null).

Selects outnumber inserts/updates by about a thousand to one.

I will probably need an index on every column.

Jul 19 '05 #2
I missed your comment about needing an index on every column. Yikes! I don't
know enough (or care :-) what you're doing but alarms should be going off.

e

In article <ta***************@bignews1.bellsouth.net>, ef**********@yahoo.com
(Eric Friedman) wrote:
It doesn't sound reasonable to me. Denormalizing to avoid a 30 table join
sounds fine. But with half the columns null, I think you've gone to far.

The alternative: My instinct says the table with half the selects against it
should be that table alone. The other 29 tables can likely be denormalized
into some handful of tables that are logically related.

e

In article <3c**************************@posting.google.com >,
tr*****@yahoo.com (Thomas Reat) wrote:
Is it reasonable to have a table with about 300 columns? There will be
about 2500 rows.

The data does not normalize. The alternative would be about 30 tables
of about 10 columns each (all 30 tables with about 2500 rows). If I do
this, about half of the selects will be against one table, but the
other half will require joins of all 30.

Assume they're all varchar (mostly less than 32 characters, with about
half of the columns in any given row null).

Selects outnumber inserts/updates by about a thousand to one.

I will probably need an index on every column.

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Doug Baroter | last post by:
Hi, I've enherited a big mess, a SQL Server 2000 database with approximately 50 user tables and 65+ GB data, no explicit relationships among entities (RI constraints whatsover), attempt to...
4
by: Florian | last post by:
Hi, I have a table that contains log data, usually around a million records. The table has about 10 columns with various attributes of the logged data, nothing special. We're using SQL Server...
1
by: Yaron C. | last post by:
Hello, I would like to ask for your help. I am trying to create a page with table of many form elements. The size of the table is 84x10 (84 rows, 10 columns) and each cell contains 1 form...
15
by: kimi | last post by:
I have just started working on a project that is partially complete. It is an application that is using access to store test results. The test results are being stored in two Access 2000 databases....
4
by: Sherwood Botsford | last post by:
Table Markers ID (Primary Key) This&That PointClass (Combo box) Points Table PointClasses PointClass (primary key) Points (number) Description (Text)
4
by: dbuchanan | last post by:
Hello, I have an audit table into which I insert information about the use of the application. This works sometimes and other times fails. I cannot find any reason for it failing. It is always...
9
by: Ots | last post by:
I'm using SQL 2000, which is integrated with a VB.NET 2003 app. I have an Audit trigger that logs changes to tables. I want to apply this trigger to many different tables. It's the same trigger,...
2
by: Ryan Liu | last post by:
Hi, If I have a very big view in database, it covers 15 tables, each table has 1000 columns. When I issue select * from view, the database will give error -- too many columns. Can I use a...
2
TheServant
by: TheServant | last post by:
Hi everybody, I posted a similar question about 6~12 months ago with no definate answer, so I will give it another go, as the choice has popped up again in my programming life: If the number of...
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.