Click here to Skip to main content
15,898,134 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL Server Replication Pin
Hesham Amin24-Sep-06 3:18
Hesham Amin24-Sep-06 3:18 
QuestionSql,/Access/Oracle to Excel Pin
vicky0000021-Sep-06 20:59
vicky0000021-Sep-06 20:59 
Questiondeploying a .net winforms that has to connect to remote sql server Pin
steve_rm21-Sep-06 19:46
steve_rm21-Sep-06 19:46 
AnswerRe: deploying a .net winforms that has to connect to remote sql server Pin
Jim Conigliaro22-Sep-06 10:55
Jim Conigliaro22-Sep-06 10:55 
QuestionSQL server nested tables or what? Pin
iskaza21-Sep-06 13:14
iskaza21-Sep-06 13:14 
AnswerRe: SQL server nested tables or what? Pin
Rob Graham21-Sep-06 14:04
Rob Graham21-Sep-06 14:04 
GeneralRe: SQL server nested tables or what? Pin
iskaza21-Sep-06 14:22
iskaza21-Sep-06 14:22 
GeneralRe: SQL server nested tables or what? [modified] Pin
Rob Graham21-Sep-06 14:43
Rob Graham21-Sep-06 14:43 
That will be a mess to implement and maintain. The solution I proposed is quite common in database applications, sometimes called master-detail:
<font>JobSeekers

Jsid | lastname | firstname | Address 1  | address 2 | Telephone
---------------------------------------------------------------
1    | Smith    | Robert    | 123 22nd St| Apt 35    | 555-9898
----------------------------------------------------------------
2    | Jones    | Bill      | 1532 1st St| <null>    | 555-9987
-----------------------------------------------------------------
3    | Green    | James     | 12 Maple St| <null>    | 555-8906

JobHistory

JSID | JobNum   | Start     | End        | Employer
------------------------------------------------------------
1    | 1        | May 1985  | June 1986  | Acme tools
------------------------------------------------------------
1    | 2        | July 1986 | March 2006 | Big Gun Software
------------------------------------------------------------
2    | 1        | march 2000| March 2006 | Acme Componets

</null></null></font>


The Jobseeker with JSID 1 had two prior jobs, the 1 with JSID 2 had only 1, the one with Jsid 3 had no prior jobs.
I can always easily get the job history for any JSID by
" Select * from JobHistory Where JSID = 2 "

I store no more and no less data than I need, It's easy to correct the JobHistory by adding or removing rows.


[added comment:]

More importantly, If I later discover that i want more data in the JobHistory Table, I can just
Add fields to contain it. With your approach, the xml structure would change, and you would have to
Query and correct each instance.
Also if I want some results based on job history, say all applicants who previously worked at Acme,
it's a simple query. With your approch, you must once again examine every record's job history xml -
a real pain.

Last modified: 26mins after originally posted --



QuestionOne more question Pin
iskaza21-Sep-06 15:12
iskaza21-Sep-06 15:12 
AnswerRe: One more question Pin
Rob Graham21-Sep-06 17:36
Rob Graham21-Sep-06 17:36 
QuestionRe: One more question Pin
iskaza22-Sep-06 3:00
iskaza22-Sep-06 3:00 
GeneralDesign question - returning varying results Pin
Judah Gabriel Himango21-Sep-06 5:47
sponsorJudah Gabriel Himango21-Sep-06 5:47 
GeneralRe: Design question - returning varying results Pin
Eric Dahlvang21-Sep-06 6:42
Eric Dahlvang21-Sep-06 6:42 
GeneralRe: Design question - returning varying results Pin
Judah Gabriel Himango21-Sep-06 8:35
sponsorJudah Gabriel Himango21-Sep-06 8:35 
GeneralRe: Design question - returning varying results Pin
Eric Dahlvang21-Sep-06 11:23
Eric Dahlvang21-Sep-06 11:23 
GeneralRe: Design question - returning varying results [modified] Pin
Eric Dahlvang22-Sep-06 3:26
Eric Dahlvang22-Sep-06 3:26 
GeneralRe: Design question - returning varying results Pin
Judah Gabriel Himango22-Sep-06 5:38
sponsorJudah Gabriel Himango22-Sep-06 5:38 
GeneralRe: Design question - returning varying results Pin
Eric Dahlvang22-Sep-06 6:17
Eric Dahlvang22-Sep-06 6:17 
GeneralRe: Design question - returning varying results Pin
Judah Gabriel Himango22-Sep-06 6:28
sponsorJudah Gabriel Himango22-Sep-06 6:28 
GeneralRe: Design question - returning varying results Pin
Scott Serl21-Sep-06 7:49
Scott Serl21-Sep-06 7:49 
GeneralRe: Design question - returning varying results Pin
Judah Gabriel Himango21-Sep-06 8:39
sponsorJudah Gabriel Himango21-Sep-06 8:39 
GeneralRe: Design question - returning varying results Pin
Scott Serl21-Sep-06 9:03
Scott Serl21-Sep-06 9:03 
GeneralRe: Design question - returning varying results Pin
Judah Gabriel Himango21-Sep-06 10:00
sponsorJudah Gabriel Himango21-Sep-06 10:00 
GeneralRe: Design question - returning varying results Pin
Scott Serl21-Sep-06 10:27
Scott Serl21-Sep-06 10:27 
GeneralRe: Design question - returning varying results Pin
Judah Gabriel Himango21-Sep-06 18:01
sponsorJudah Gabriel Himango21-Sep-06 18:01 

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.