Click here to Skip to main content
15,899,679 members
Home / Discussions / Database
   

Database

 
QuestionParamaterised access queries Pin
Russell Jones21-Jan-10 23:31
Russell Jones21-Jan-10 23:31 
AnswerRe: Paramaterised access queries Pin
Eddy Vluggen21-Jan-10 23:58
professionalEddy Vluggen21-Jan-10 23:58 
QuestionNeed some advices on SQL INTERSECT Function Pin
James Shao21-Jan-10 21:19
James Shao21-Jan-10 21:19 
AnswerRe: Need some advices on SQL INTERSECT Function Pin
Dimitri Witkowski24-Jan-10 6:04
Dimitri Witkowski24-Jan-10 6:04 
AnswerRe: Need some advices on SQL INTERSECT Function Pin
Mycroft Holmes24-Jan-10 10:44
professionalMycroft Holmes24-Jan-10 10:44 
GeneralRe: Need some advices on SQL INTERSECT Function Pin
James Shao25-Jan-10 12:06
James Shao25-Jan-10 12:06 
QuestionA Question About Architecture Pin
Roger Wright21-Jan-10 18:02
professionalRoger Wright21-Jan-10 18:02 
AnswerRe: A Question About Architecture Pin
Mycroft Holmes21-Jan-10 21:45
professionalMycroft Holmes21-Jan-10 21:45 
The problem with having a table for each test is that when you need to add a new type of test you are off into the database and code to extend you system. Try something like this

Transformer (TransformerID, etc) This should actually be an equipment table with Transformer as a type

TestType (ID,name) basically a placeholder for attributes

TestAttr (ID, AttrLabel) these are varchar and are basically name value pairs

TestTypeDefault(TestTypeID, AttrID) see notes

TestTable (id, transormerID, TestTypeID dates, pass/fail, comments, user) only the common fields for ALL tests

TestResults(TestID, AttrID, AttrValue)

When you create a testtype you link the default attributes to the type.

Creating a Test (attached to a transformer) will get a copy of the default attributes into the testresult table and allows you to add additional attributes to this test

This will allow you to create new test types and tests without any programming. The major drawback is that all your data is in varchar fields and will need converting if you need to manipulate it properly. I've done this one in the 90s for a manufacturing system and it worked well, comparing test results across a period of time was a PITA because of the formatting.

You could put a datatype indicator in the attribute table to help the UI do some validation and grow it from there.

Never underestimate the power of human stupidity
RAH

GeneralRe: A Question About Architecture Pin
Roger Wright22-Jan-10 19:41
professionalRoger Wright22-Jan-10 19:41 
GeneralRe: A Question About Architecture Pin
Mycroft Holmes22-Jan-10 20:37
professionalMycroft Holmes22-Jan-10 20:37 
GeneralRe: A Question About Architecture Pin
Roger Wright22-Jan-10 21:00
professionalRoger Wright22-Jan-10 21:00 
QuestionSQL Server Agent not displayed in Object Explorer in SQL Server 2005 Express Edition Pin
tannghia21-Jan-10 16:13
tannghia21-Jan-10 16:13 
AnswerRe: SQL Server Agent not displayed in Object Explorer in SQL Server 2005 Express Edition Pin
Eddy Vluggen22-Jan-10 0:11
professionalEddy Vluggen22-Jan-10 0:11 
Questionout parameters workaround for Ms Access [solved] [modified] Pin
Dan Mos21-Jan-10 10:28
Dan Mos21-Jan-10 10:28 
AnswerRe: out parameters workaround for Ms Access Pin
Mycroft Holmes21-Jan-10 12:05
professionalMycroft Holmes21-Jan-10 12:05 
GeneralRe: out parameters workaround for Ms Access Pin
Dan Mos22-Jan-10 3:13
Dan Mos22-Jan-10 3:13 
AnswerRe: out parameters workaround for Ms Access Pin
Pranay Rana21-Jan-10 17:51
professionalPranay Rana21-Jan-10 17:51 
GeneralRe: out parameters workaround for Ms Access Pin
Dan Mos22-Jan-10 3:09
Dan Mos22-Jan-10 3:09 
QuestionComposite primary key Table Insertion Problem in SQL Pin
vishnukamath20-Jan-10 22:37
vishnukamath20-Jan-10 22:37 
AnswerRe: Composite primary key Table Insertion Problem in SQL Pin
Bassam Saoud22-Jan-10 5:03
Bassam Saoud22-Jan-10 5:03 
Questionselecting first 7 days from database Pin
benjamin yap20-Jan-10 18:02
benjamin yap20-Jan-10 18:02 
AnswerRe: selecting first 7 days from database Pin
Luc Pattyn20-Jan-10 18:12
sitebuilderLuc Pattyn20-Jan-10 18:12 
AnswerRe: selecting first 7 days from database Pin
Mycroft Holmes20-Jan-10 18:32
professionalMycroft Holmes20-Jan-10 18:32 
GeneralRe: selecting first 7 days from database Pin
David Skelly20-Jan-10 22:49
David Skelly20-Jan-10 22:49 
GeneralRe: selecting first 7 days from database Pin
Mycroft Holmes20-Jan-10 23:27
professionalMycroft Holmes20-Jan-10 23:27 

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.