Click here to Skip to main content
15,892,517 members
Home / Discussions / Database
   

Database

 
GeneralRe: Remote DML/DDL from different Nodes to MS SQL Server 2005 Pin
nt_virus30-Aug-09 2:02
nt_virus30-Aug-09 2:02 
GeneralRe: Remote DML/DDL from different Nodes to MS SQL Server 2005 Pin
Jerry Hammond30-Aug-09 2:33
Jerry Hammond30-Aug-09 2:33 
GeneralRe: Remote DML/DDL from different Nodes to MS SQL Server 2005 Pin
nt_virus30-Aug-09 3:03
nt_virus30-Aug-09 3:03 
GeneralRe: Remote DML/DDL from different Nodes to MS SQL Server 2005 Pin
Jerry Hammond30-Aug-09 3:56
Jerry Hammond30-Aug-09 3:56 
GeneralRe: Remote DML/DDL from different Nodes to MS SQL Server 2005 Pin
Mycroft Holmes30-Aug-09 3:03
professionalMycroft Holmes30-Aug-09 3:03 
QuestionDesktop Database App Pin
pstsp91129-Aug-09 6:26
pstsp91129-Aug-09 6:26 
AnswerRe: Desktop Database App Pin
Mycroft Holmes29-Aug-09 14:56
professionalMycroft Holmes29-Aug-09 14:56 
QuestionSQL: Table, where "partnerships" are stored Pin
softwarejaeger28-Aug-09 23:07
softwarejaeger28-Aug-09 23:07 
Hello,

i have a little problem. I have a table "customers" and a table "partnerships". In the customer database i have stored a few customer with a ID as primary key. In my partnership database i have two columns (partner1, partner2) where i want to store partnerships between them. So now the problem, it should be unnessecary if partner1=1 and partner2=2 or partner1=2 and partner2=1. And one partnership shouldn't be stored two times. So how can i realize this? In my selects it is easy, i easily have:

select * from partnerships where (partner1='1' and partner2='2') or (partner1='2' and partner2='1')

But how to make the right constraints, that this isn't saved to times, so i don't want to have something like this:

partner1    partner2
1           2
2           1


Maybe someone has a solution for me?
AnswerRe: SQL: Table, where "partnerships" are stored Pin
Mycroft Holmes29-Aug-09 15:03
professionalMycroft Holmes29-Aug-09 15:03 
QuestionUnable to Restore MDF file in Vista Pin
sumit703428-Aug-09 17:45
sumit703428-Aug-09 17:45 
AnswerRe: Unable to Restore MDF file in Vista Pin
Jerry Hammond29-Aug-09 11:59
Jerry Hammond29-Aug-09 11:59 
GeneralRe: Unable to Restore MDF file in Vista Pin
sumit703430-Aug-09 18:53
sumit703430-Aug-09 18:53 
GeneralRe: Unable to Restore MDF file in Vista Pin
Jerry Hammond31-Aug-09 6:13
Jerry Hammond31-Aug-09 6:13 
AnswerRe: Unable to Restore MDF file in Vista Pin
Eddy Vluggen31-Aug-09 5:18
professionalEddy Vluggen31-Aug-09 5:18 
Questioner diagram for hospital managment system Pin
noo.dyab28-Aug-09 3:44
noo.dyab28-Aug-09 3:44 
AnswerRe: er diagram for hospital managment system Pin
Ashfield28-Aug-09 4:51
Ashfield28-Aug-09 4:51 
AnswerRe: er diagram for hospital managment system Pin
DoctorMick28-Aug-09 5:43
DoctorMick28-Aug-09 5:43 
AnswerRe: er diagram for hospital managment system Pin
Jerry Hammond29-Aug-09 12:01
Jerry Hammond29-Aug-09 12:01 
AnswerRe: er diagram for hospital managment system Pin
Eddy Vluggen31-Aug-09 5:20
professionalEddy Vluggen31-Aug-09 5:20 
QuestionLogging Pin
cdpace28-Aug-09 3:03
cdpace28-Aug-09 3:03 
AnswerRe: Logging Pin
Ashfield28-Aug-09 4:52
Ashfield28-Aug-09 4:52 
GeneralRe: Logging Pin
cdpace28-Aug-09 4:59
cdpace28-Aug-09 4:59 
GeneralRe: Logging Pin
Blue_Boy28-Aug-09 5:04
Blue_Boy28-Aug-09 5:04 
GeneralRe: Logging Pin
Ashfield28-Aug-09 8:18
Ashfield28-Aug-09 8:18 
GeneralRe: Logging Pin
cdpace28-Aug-09 11:25
cdpace28-Aug-09 11:25 

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.