Click here to Skip to main content
15,868,440 members
Home / Discussions / Database
   

Database

 
QuestionSSIS package Pin
Sachin Malviya31-Oct-14 6:01
Sachin Malviya31-Oct-14 6:01 
GeneralRe: SSIS package Pin
PIEBALDconsult31-Oct-14 6:03
mvePIEBALDconsult31-Oct-14 6:03 
GeneralRe: SSIS package Pin
Richard Deeming31-Oct-14 6:18
mveRichard Deeming31-Oct-14 6:18 
GeneralRe: SSIS package Pin
PIEBALDconsult31-Oct-14 6:33
mvePIEBALDconsult31-Oct-14 6:33 
QuestionLink to Microsoft Virtual System Pin
Shweta N Mishra31-Oct-14 3:41
professionalShweta N Mishra31-Oct-14 3:41 
AnswerRe: Link to Microsoft Virtual System Pin
Vijay Gill31-Oct-14 3:47
professionalVijay Gill31-Oct-14 3:47 
GeneralRe: Link to Microsoft Virtual System Pin
Shweta N Mishra31-Oct-14 5:21
professionalShweta N Mishra31-Oct-14 5:21 
QuestionUncertain on What to Use as Foreign Key of a Table Pin
ASPnoob30-Oct-14 5:19
ASPnoob30-Oct-14 5:19 
Hi all, I am trying to design a database to hold data for a job portal. Basically I have a database called SiteUsers which contains five tables (UsersTable, JobSeekersTable, ResumesTable, EmployersTable, and JobsTable). The following are the table schema for UsersTable, ResumesTable, and JobsTable.

The UsersTable has a Primary Key (PK) of UserID and a Foreign Key (FK) of Username.
The ResumesTable has a PK of ResumeID and the JobsTable has a PK of JobID.
The JobSeekersTable has a PK of Username.
The EmployersTable has a PK of Username.

The question I have is should the JobSeekersTable FK also be Username, or ResumeID, or a composite of Username and ResumeID. I think that the FK should be Username because it's unique but because it's not the primary key of the JobsTable I am uncertain. Also I did not want to use ResumeID as the FK in the JobSeekersTable because although it will be unique a job seeker can have more than one resume.

Whether you agree or disagree with my assumption that Username should be the PK and FK in the JobSeekersTable, please elaborate your answer . Thanks in advance for your help.

modified 30-Oct-14 12:35pm.

GeneralRe: Uncertain on What to Use as Foreign Key of a Table Pin
PIEBALDconsult30-Oct-14 5:59
mvePIEBALDconsult30-Oct-14 5:59 
AnswerRe: Uncertain on What to Use as Foreign Key of a Table Pin
Eddy Vluggen30-Oct-14 6:08
professionalEddy Vluggen30-Oct-14 6:08 
GeneralRe: Uncertain on What to Use as Foreign Key of a Table Pin
ASPnoob30-Oct-14 6:34
ASPnoob30-Oct-14 6:34 
Questionplsql Pin
Member 1118871528-Oct-14 21:28
Member 1118871528-Oct-14 21:28 
AnswerRe: plsql Pin
Mycroft Holmes28-Oct-14 22:03
professionalMycroft Holmes28-Oct-14 22:03 
GeneralRe: plsql Pin
PhilLenoir29-Oct-14 3:04
professionalPhilLenoir29-Oct-14 3:04 
RantRetrieve Data Using Comma Separated List Pin
ASPnoob28-Oct-14 20:10
ASPnoob28-Oct-14 20:10 
GeneralRe: Retrieve Data Using Comma Separated List Pin
Mycroft Holmes28-Oct-14 22:01
professionalMycroft Holmes28-Oct-14 22:01 
GeneralRe: Retrieve Data Using Comma Separated List Pin
Shweta N Mishra29-Oct-14 1:23
professionalShweta N Mishra29-Oct-14 1:23 
GeneralRe: Retrieve Data Using Comma Separated List Pin
Mycroft Holmes29-Oct-14 3:13
professionalMycroft Holmes29-Oct-14 3:13 
QuestionAdvice on Perfomance Turning of the Query Pin
Vimalsoft(Pty) Ltd28-Oct-14 7:27
professionalVimalsoft(Pty) Ltd28-Oct-14 7:27 
GeneralRe: Advice on Perfomance Turning of the Query Pin
PIEBALDconsult28-Oct-14 8:04
mvePIEBALDconsult28-Oct-14 8:04 
AnswerRe: Advice on Perfomance Turning of the Query Pin
Eddy Vluggen28-Oct-14 8:59
professionalEddy Vluggen28-Oct-14 8:59 
AnswerRe: Advice on Perfomance Turning of the Query Pin
Mycroft Holmes28-Oct-14 12:59
professionalMycroft Holmes28-Oct-14 12:59 
GeneralRe: Advice on Perfomance Turning of the Query Pin
Vimalsoft(Pty) Ltd4-Nov-14 21:56
professionalVimalsoft(Pty) Ltd4-Nov-14 21:56 
QuestionCombine results from 2 foxpro DBF files using union Pin
jkirkerx27-Oct-14 12:30
professionaljkirkerx27-Oct-14 12:30 
AnswerMakes no sense how it works Pin
jkirkerx27-Oct-14 13:01
professionaljkirkerx27-Oct-14 13: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.