Click here to Skip to main content
16,012,025 members
Home / Discussions / Database
   

Database

 
GeneralRe: Xml datatype vs cdc Pin
Ebube21-Oct-10 5:37
Ebube21-Oct-10 5:37 
Questionhow to use % symbol in Like statement. Pin
shiva.kore18-Oct-10 21:13
shiva.kore18-Oct-10 21:13 
AnswerRe: how to use % symbol in Like statement. PinPopular
thatraja18-Oct-10 21:21
professionalthatraja18-Oct-10 21:21 
QuestionMessage Removed Pin
18-Oct-10 8:03
eddieangel18-Oct-10 8:03 
AnswerRe: Normalization / Referential Integrity Pin
Eddy Vluggen18-Oct-10 8:21
professionalEddy Vluggen18-Oct-10 8:21 
AnswerRe: Normalization / Referential Integrity Pin
Chris Meech18-Oct-10 8:43
Chris Meech18-Oct-10 8:43 
AnswerRe: Normalization / Referential Integrity [modified] Pin
PIEBALDconsult18-Oct-10 9:00
mvePIEBALDconsult18-Oct-10 9:00 
AnswerRe: Normalization / Referential Integrity Pin
Mycroft Holmes18-Oct-10 13:00
professionalMycroft Holmes18-Oct-10 13:00 
I do believe your data structure is incorrect. Your constraint of 1:1 between owner and property fails when someone own more that 1 property or a property has more than 1 owner or a property is sold (I assume you wish to retain history of the property).

As Piebald suggested a many:many link table is what you need to implement.

What happens if you have a company own the property, now you are in the position of needing an address table so you need a many:many link between owner and address...

Designing a data structure is not a trivial excercise and needs time and effort to get it right. It is guaranteed that you will not get it right the first time. Be prepared to admit an error and redesign ASAP, allowing an incorrect design to persist only deepens the cost of fixing the problem.
Never underestimate the power of human stupidity
RAH

GeneralRe: Normalization / Referential Integrity Pin
eddieangel18-Oct-10 13:12
eddieangel18-Oct-10 13:12 
AnswerRe: Normalization / Referential Integrity Pin
Ray Cassick18-Oct-10 13:51
Ray Cassick18-Oct-10 13:51 
QuestionCan a Unique Index be set on a secondary linked table field? Pin
Stryder_118-Oct-10 7:29
Stryder_118-Oct-10 7:29 
AnswerRe: Can a Unique Index be set on a secondary linked table field? [modified] Pin
Eddy Vluggen18-Oct-10 8:24
professionalEddy Vluggen18-Oct-10 8:24 
AnswerRe: Can a Unique Index be set on a secondary linked table field? Pin
rushingfly18-Oct-10 20:19
rushingfly18-Oct-10 20:19 
Questionlinked server on SQL 2005 to database on AS400 Pin
samerh17-Oct-10 20:26
samerh17-Oct-10 20:26 
AnswerRe: linked server on SQL 2005 to database on AS400 Pin
David Skelly18-Oct-10 22:27
David Skelly18-Oct-10 22:27 
GeneralRe: linked server on SQL 2005 to database on AS400 Pin
samerh18-Oct-10 22:33
samerh18-Oct-10 22:33 
QuestionSplitting a column value in to many [modified] Pin
rakeshs31217-Oct-10 18:12
rakeshs31217-Oct-10 18:12 
AnswerRe: Splitting a column value in to many Pin
RyanEK17-Oct-10 20:05
RyanEK17-Oct-10 20:05 
GeneralRe: Splitting a column value in to many Pin
Mycroft Holmes17-Oct-10 20:47
professionalMycroft Holmes17-Oct-10 20:47 
GeneralRe: Splitting a column value in to many Pin
rakeshs31219-Oct-10 23:21
rakeshs31219-Oct-10 23:21 
Questioncombine multiple rows in single row Pin
i gr817-Oct-10 17:49
i gr817-Oct-10 17:49 
AnswerRe: combine multiple rows in single row Pin
Alegria_Lee17-Oct-10 18:12
Alegria_Lee17-Oct-10 18:12 
GeneralRe: combine multiple rows in single row Pin
Blue_Boy17-Oct-10 23:15
Blue_Boy17-Oct-10 23:15 
GeneralRe: combine multiple rows in single row Pin
Alegria_Lee18-Oct-10 4:49
Alegria_Lee18-Oct-10 4:49 
AnswerRe: combine multiple rows in single row Pin
Mycroft Holmes17-Oct-10 20:43
professionalMycroft Holmes17-Oct-10 20:43 

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.