ok, I know nothing about SQL and to solve this problem I have I need to edit a SQL statement.. the db admin is on holiday but i have full admin rights to the test server so if i screw up its no big deal
In short I have 2 case statements joined with a union, what i need to do is add is a simple value of 1 in the first statement and 0 in the second in order for me to use my system to establish whether the join direction is A -> B or B -> A.
I have 2 questions:
1) can somebody recommend an easy to use SQL viewer
2) is adding a fixed value in the case statements as simple as value 1 value 0? maybe before I ask q2 I should atleast try and work this out for myself
In short I have 2 case statements joined with a union, what i need to do is add is a simple value of 1 in the first statement and 0 in the second in order for me to use my system to establish whether the join direction is A -> B or B -> A.
I have 2 questions:
1) can somebody recommend an easy to use SQL viewer
2) is adding a fixed value in the case statements as simple as value 1 value 0? maybe before I ask q2 I should atleast try and work this out for myself




Comment