Click here to Skip to main content
15,900,973 members
Home / Discussions / Database
   

Database

 
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 
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 
Hi,

For an example, using Sql Server - let's say I have three tables:

Client:
ID
Name

File:
ID
Name
Bytes
ClientID

Data:
ID
DataField
FileID


Each record in Data can be linked back to each Client record through the File Record. I want the DataField value to be unique only per client - so two values of "42" in the DataField is ok as long as they link to different clients.

I could put the ClientID in the Data table, but that would then mean I would need to be sure the ClientID in the related File record always matches.

Can an index be set on the Data table using the DataField field and the Client ID field?

If so, how would you do this? If not, is there an alternative?

Thanks
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 
Questionchange master collation Pin
jojoba201117-Oct-10 8:13
jojoba201117-Oct-10 8:13 
AnswerRe: change master collation Pin
Karthik. A17-Oct-10 16:59
Karthik. A17-Oct-10 16:59 
Questiondate manipulation Pin
scottichrosaviakosmos16-Oct-10 21:37
scottichrosaviakosmos16-Oct-10 21:37 

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.