Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old March 7th, 2003, 05:02 PM
esbullin esbullin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 5 esbullin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
multiple surveys to multiple tables? or to arrays?

I'm an epidemiologist working with a programmer to develop a web-based health survey. There will be 4 followup surveys. My intention was put the data fields collected from each followup survey into a separate table (i.e. survey1 into table1, survey2 into table2, etc) but the programmer suggests that we serialize each survey into an array and then make one table with each column corresponding to a single followup survey. Then he would unserialize the arrays when necessary. Problem is, we will be working with researchers using SPSS, SAS, and Access who will access our MySQL database via ODBC and I'm wondering how they will be able to access these arrays for analysis.

Why would we want to make arrays? What's wrong with separate fields for each question, going into one table per survey? There won't be a huge number of participants in the study so database normalization is not a big issue.

Many thanks for any insight into this issue.

Reply With Quote
  #2  
Old March 10th, 2003, 10:38 PM
dotcomguy dotcomguy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: #devshed @ irc2.beyondirc.net
Posts: 231 dotcomguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 40 sec
Reputation Power: 6
Send a message via ICQ to dotcomguy Send a message via AIM to dotcomguy Send a message via Yahoo to dotcomguy
Normalization is a good thing. Getting rid of multi-value attributes is only first normal firm of several levels. And, it doesn't sound like performance is an issue. Generally, normalizing in this way will result in a better design and an easier to manage database. It will also allow you to more easily adapt to future changes.
__________________
.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > multiple surveys to multiple tables? or to arrays?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway