Click here to Skip to main content
15,921,156 members
Home / Discussions / Database
   

Database

 
AnswerRe: Further Help with Select Required Please Pin
Luc Pattyn23-Nov-10 14:15
sitebuilderLuc Pattyn23-Nov-10 14:15 
GeneralRe: Further Help with Select Required Please Pin
djhankypark23-Nov-10 14:24
djhankypark23-Nov-10 14:24 
GeneralRe: Further Help with Select Required Please Pin
Luc Pattyn23-Nov-10 14:48
sitebuilderLuc Pattyn23-Nov-10 14:48 
QuestionDatabase design Pin
digicd123-Nov-10 7:31
digicd123-Nov-10 7:31 
AnswerRe: Database design Pin
fjdiewornncalwe23-Nov-10 7:51
professionalfjdiewornncalwe23-Nov-10 7:51 
AnswerRe: Database design Pin
Eddy Vluggen23-Nov-10 7:54
professionalEddy Vluggen23-Nov-10 7:54 
GeneralRe: Database design Pin
digicd123-Nov-10 8:04
digicd123-Nov-10 8:04 
GeneralRe: Database design Pin
Eddy Vluggen23-Nov-10 8:33
professionalEddy Vluggen23-Nov-10 8:33 
digicd1 wrote:
Since the home address repeats itself - I could minimize duplicate records by having an address table

He'd still be a client once, and a practitioner once. You'd need a link to both addresses. The address might be registered and linked to more than once. That'll make complicated queries, and I doubt that you'll save a lot of room.

It's a form of premature optimization, don't do it.

digicd1 wrote:
having the user be responsible to change the home address in two different locations

If it's two different entities, then they shouldn't be changed simultanously. Likewise, you could add a boolean to the Employee to let him/her indicate that their address as a client is the same address as their Employee-address. Depending on the boolean, you update either one, or both addresses.

digicd1 wrote:
Do you think the extra table and joins would be a huge performance impact and would be better to store twice?

I think that storage-space is cheaper than cpu-time. You should really dive into normalization, three guidelines would help you get a relational model that you can build on. Once you have that, it's easier to spot where you can optimize things.
I are Troll Suspicious | :suss:

GeneralRe: Database design Pin
digicd124-Nov-10 3:38
digicd124-Nov-10 3:38 
GeneralRe: Database design Pin
Eddy Vluggen24-Nov-10 7:20
professionalEddy Vluggen24-Nov-10 7:20 
AnswerRe: Database design Pin
Mycroft Holmes23-Nov-10 19:13
professionalMycroft Holmes23-Nov-10 19:13 
Questionparam_record_id int OUTPUT Pin
Jassim Rahma23-Nov-10 4:01
Jassim Rahma23-Nov-10 4:01 
AnswerRe: param_record_id int OUTPUT Pin
Eddy Vluggen23-Nov-10 7:31
professionalEddy Vluggen23-Nov-10 7:31 
Questionmultiple select statements in stored procedures Pin
Xiangyang Liu 刘向阳23-Nov-10 2:17
Xiangyang Liu 刘向阳23-Nov-10 2:17 
AnswerRe: multiple select statements in stored procedures Pin
Pete O'Hanlon23-Nov-10 2:21
mvePete O'Hanlon23-Nov-10 2:21 
GeneralRe: multiple select statements in stored procedures Pin
Xiangyang Liu 刘向阳23-Nov-10 3:19
Xiangyang Liu 刘向阳23-Nov-10 3:19 
AnswerRe: multiple select statements in stored procedures Pin
Jörgen Andersson23-Nov-10 2:47
professionalJörgen Andersson23-Nov-10 2:47 
GeneralRe: multiple select statements in stored procedures Pin
Xiangyang Liu 刘向阳24-Nov-10 0:46
Xiangyang Liu 刘向阳24-Nov-10 0:46 
GeneralRe: multiple select statements in stored procedures Pin
Jörgen Andersson24-Nov-10 3:41
professionalJörgen Andersson24-Nov-10 3:41 
QuestionMail sending problem from sql server URGENT Pin
Tridip Bhattacharjee23-Nov-10 2:08
professionalTridip Bhattacharjee23-Nov-10 2:08 
AnswerRe: Mail sending problem from sql server URGENT Pin
Amu_2723-Nov-10 5:12
Amu_2723-Nov-10 5:12 
AnswerRe: Mail sending problem from sql server URGENT Pin
Simon_Whale23-Nov-10 5:27
Simon_Whale23-Nov-10 5:27 
QuestionHow do I Compare Thumb Image by the Select Statement in SQL Server 2005....? Pin
Manish_Kumar_Nayak22-Nov-10 20:32
Manish_Kumar_Nayak22-Nov-10 20:32 
AnswerRe: How do I Compare Thumb Image by the Select Statement in SQL Server 2005....? Pin
Luc Pattyn22-Nov-10 20:37
sitebuilderLuc Pattyn22-Nov-10 20:37 
GeneralRe: How do I Compare Thumb Image by the Select Statement in SQL Server 2005....? Pin
Manish_Kumar_Nayak22-Nov-10 20:40
Manish_Kumar_Nayak22-Nov-10 20:40 

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.