Click here to Skip to main content
15,917,174 members
Home / Discussions / Database
   

Database

 
QuestionTable rows vs. comma separated Pin
Genbox17-Dec-09 5:46
Genbox17-Dec-09 5:46 
AnswerRe: Table rows vs. comma separated Pin
Member 450194017-Dec-09 8:09
Member 450194017-Dec-09 8:09 
GeneralRe: Table rows vs. comma separated Pin
Genbox17-Dec-09 8:19
Genbox17-Dec-09 8:19 
GeneralRe: Table rows vs. comma separated Pin
Member 450194017-Dec-09 10:54
Member 450194017-Dec-09 10:54 
GeneralRe: Table rows vs. comma separated Pin
Genbox17-Dec-09 12:03
Genbox17-Dec-09 12:03 
GeneralRe: Table rows vs. comma separated Pin
David Skelly17-Dec-09 22:27
David Skelly17-Dec-09 22:27 
GeneralRe: Table rows vs. comma separated Pin
Genbox18-Dec-09 11:02
Genbox18-Dec-09 11:02 
QuestionDatabase Field to contain data from a screen table Pin
RyanSmith16-Dec-09 22:52
professionalRyanSmith16-Dec-09 22:52 
I have written a small medical research application is asp that uses a sqlserver database to store data patient research data. To set the scene for my question; I am not sure what the term of the table/field design I have used is but I will try to explain.
I have a table that I have called ref_FieldDefinition, this contains the definition of each data field I need to store patient research data for. (E.g. FieldUID, FieldLabel, FieldType, etc.). So I could define a field for example FieldLabel ="Smoker", with FieldType="T/F".
I then have a seperate table that stores the data for each defined field , data_PatientData, (PatientUID, FieldUID, StoredData). (This is a simplified description of how I am constructing the db).

When I present a user with an asp page for a particular patient, the page is built based on which fields are defined in the ref_FieldDefinition table and then which data is applicable from the data_PatientData table. Hence, I have no hard wired fields in my table design.
This concept works fine for classic database field definitions, where you have a fields label and a field data input object (like a textbox, dropdown, checkbox, etc).

Yesterday I was asked could I create a 3x3 "table" on the screen for users to enter values into. The first two rows of the table will contain numbers and the bottom row will contain the sum of each column. If I had a classic db table design I could hardwire fields like "topleft", "topmiddle", "topright" etc.
I was hoping to do this in a smarter way and somehow define a "table" type field that I could dynamically build on display, as I do with my other field definition.

Am I aiming too high here ? Does anyone have any thoughts on this ? Some brainstorming would be much appreciated.

Cheers

Ryan
AnswerRe: Database Field to contain data from a screen table Pin
Mycroft Holmes17-Dec-09 3:58
professionalMycroft Holmes17-Dec-09 3:58 
AnswerConsider XML storage Pin
David Mujica17-Dec-09 5:28
David Mujica17-Dec-09 5:28 
QuestionSelect Query with column name containing [] [Figured out] Pin
dan!sh 16-Dec-09 18:52
professional dan!sh 16-Dec-09 18:52 
AnswerRe: Select Query with column name containing [] Pin
Mycroft Holmes16-Dec-09 18:59
professionalMycroft Holmes16-Dec-09 18:59 
GeneralRe: Select Query with column name containing [] Pin
dan!sh 16-Dec-09 19:01
professional dan!sh 16-Dec-09 19:01 
GeneralRe: Select Query with column name containing [] Pin
Mycroft Holmes16-Dec-09 19:50
professionalMycroft Holmes16-Dec-09 19:50 
GeneralRe: Select Query with column name containing [] Pin
dan!sh 16-Dec-09 21:16
professional dan!sh 16-Dec-09 21:16 
QuestionHow to group data which not the same ? Pin
Golden Jing15-Dec-09 23:06
Golden Jing15-Dec-09 23:06 
AnswerRe: How to group data which not the same ? Pin
Niladri_Biswas16-Dec-09 2:00
Niladri_Biswas16-Dec-09 2:00 
GeneralRe: How to group data which not the same ? Pin
Golden Jing16-Dec-09 2:29
Golden Jing16-Dec-09 2:29 
General[Message Deleted] Pin
Niladri_Biswas16-Dec-09 3:23
Niladri_Biswas16-Dec-09 3:23 
GeneralRe: How to group data which not the same ? Pin
Golden Jing16-Dec-09 14:51
Golden Jing16-Dec-09 14:51 
AnswerRe: How to group data which not the same ? Pin
Luc Pattyn16-Dec-09 15:03
sitebuilderLuc Pattyn16-Dec-09 15:03 
QuestionADODB Recordset - using ActiveX Data Object in Access 2007 Pin
john john mackey15-Dec-09 12:38
john john mackey15-Dec-09 12:38 
QuestionMS-SQL - Bulk Insert query Pin
22491715-Dec-09 11:50
22491715-Dec-09 11:50 
AnswerRe: MS-SQL - Bulk Insert query Pin
Ashfield15-Dec-09 21:01
Ashfield15-Dec-09 21:01 
GeneralRe: MS-SQL - Bulk Insert query Pin
22491716-Dec-09 6:14
22491716-Dec-09 6:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.