Click here to Skip to main content
15,913,773 members
Home / Discussions / Database
   

Database

 
QuestionTransforming standard values from excel to database record Pin
dhatchu13-Oct-06 1:43
dhatchu13-Oct-06 1:43 
QuestionOracle tables and columns by SQL Query Pin
PasNad12-Oct-06 19:28
PasNad12-Oct-06 19:28 
AnswerRe: Oracle tables and columns by SQL Query Pin
rah_sin13-Oct-06 0:16
professionalrah_sin13-Oct-06 0:16 
GeneralRe: Oracle tables and columns by SQL Query Pin
PasNad13-Oct-06 17:10
PasNad13-Oct-06 17:10 
GeneralRe: Oracle tables and columns by SQL Query Pin
rah_sin15-Oct-06 17:55
professionalrah_sin15-Oct-06 17:55 
AnswerRe: Oracle tables and columns by SQL Query Pin
Akhilesh Yadav15-Oct-06 23:46
Akhilesh Yadav15-Oct-06 23:46 
GeneralRe: Oracle tables and columns by SQL Query Pin
simplemusings17-Oct-06 3:55
simplemusings17-Oct-06 3:55 
QuestionDatabase best practice - large tables. Pin
MY120112-Oct-06 3:28
MY120112-Oct-06 3:28 
Hi there!

I have a question regarding the structure of a database. I'm currently designing af table that will end up with around 50 columns of different kinds. Now my question is: Would it be better to split the table into smaller tables?

I have tried this but I keep running into integrity problems, because the database server will have to delete rows in other tables as well.

To clear things up I will give an example:
Consider a factory. The factory pollutes. In order to keep track of the pollution, the factory owner has to fill in some 20 values of different kinds. Normally you would place these values on the factory table, but since there are so many of them, you might be able to put the pollution data in another table called PollutionData. But somehow I can't get this to work properbly. I have the factory referencing the PollutionId in the PollutionData table.

A cascade delete will only work the other way around! Whenever someone deletes the pollution data, the factory is deleted. Which of course is wrong. I want the pollution data deleted if the factory is deleted. And I want the database server to produce an error if someone tries to delete pollution data referenced by a factory.

As I see it - the only way to solve this is to put the pollution columns into the Factories table, but I have this kind "oh noes - this is wrong"-feeling - and that's just because there are so many columns.

Any suggestions would be greatly appreciated! Smile | :)

Best regards
Soeren
AnswerRe: Database best practice - large tables. Pin
Colin Angus Mackay12-Oct-06 3:43
Colin Angus Mackay12-Oct-06 3:43 
GeneralRe: Database best practice - large tables. Pin
MY120112-Oct-06 6:04
MY120112-Oct-06 6:04 
GeneralRe: Database best practice - large tables. Pin
Colin Angus Mackay12-Oct-06 7:13
Colin Angus Mackay12-Oct-06 7:13 
AnswerRe: Database best practice - large tables. Pin
Eric Dahlvang12-Oct-06 4:22
Eric Dahlvang12-Oct-06 4:22 
GeneralRe: Database best practice - large tables. Pin
MY120112-Oct-06 6:10
MY120112-Oct-06 6:10 
GeneralRe: Database best practice - large tables. [modified] Pin
Eric Dahlvang12-Oct-06 6:51
Eric Dahlvang12-Oct-06 6:51 
GeneralRe: Database best practice - large tables. Pin
Colin Angus Mackay12-Oct-06 7:14
Colin Angus Mackay12-Oct-06 7:14 
GeneralRe: Database best practice - large tables. Pin
MY120112-Oct-06 7:33
MY120112-Oct-06 7:33 
GeneralRe: Database best practice - large tables. Pin
Colin Angus Mackay12-Oct-06 11:21
Colin Angus Mackay12-Oct-06 11:21 
GeneralRe: Database best practice - large tables. Pin
Eric Dahlvang12-Oct-06 8:03
Eric Dahlvang12-Oct-06 8:03 
GeneralRe: Database best practice - large tables. Pin
MY120112-Oct-06 8:36
MY120112-Oct-06 8:36 
AnswerRe: Database best practice - large tables. Pin
Akhilesh Yadav15-Oct-06 23:53
Akhilesh Yadav15-Oct-06 23:53 
Questionnavigation bar Pin
m.m._200712-Oct-06 1:36
m.m._200712-Oct-06 1:36 
AnswerRe: navigation bar Pin
Colin Angus Mackay12-Oct-06 2:40
Colin Angus Mackay12-Oct-06 2:40 
Questionget value from Gridview Pin
sbao00411-Oct-06 23:32
sbao00411-Oct-06 23:32 
AnswerRe: get value from Gridview Pin
Jay_se12-Oct-06 1:11
Jay_se12-Oct-06 1:11 
GeneralRe: get value from Gridview Pin
sbao00412-Oct-06 2:29
sbao00412-Oct-06 2:29 

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.