Click here to Skip to main content
15,902,636 members
Home / Discussions / Database
   

Database

 
GeneralRe: Please Heeelp - connection error driving me crazy Pin
Colin Angus Mackay31-May-07 8:13
Colin Angus Mackay31-May-07 8:13 
QuestionHow to check if a field already exists in a table Pin
SWDevil31-May-07 3:13
SWDevil31-May-07 3:13 
AnswerRe: How to check if a field already exists in a table Pin
Colin Angus Mackay31-May-07 4:14
Colin Angus Mackay31-May-07 4:14 
GeneralRe: How to check if a field already exists in a table Pin
SWDevil31-May-07 5:12
SWDevil31-May-07 5:12 
GeneralRe: How to check if a field already exists in a table Pin
Colin Angus Mackay31-May-07 8:14
Colin Angus Mackay31-May-07 8:14 
GeneralNormalising Single Table to Two Pin
Brady Kelly31-May-07 2:06
Brady Kelly31-May-07 2:06 
GeneralRe: Normalising Single Table to Two Pin
kubben31-May-07 2:34
kubben31-May-07 2:34 
GeneralRe: Normalising Single Table to Two Pin
Brady Kelly31-May-07 3:17
Brady Kelly31-May-07 3:17 
My problem is matching records in the new and old tables! I have to basically compare all fields from the old table to corresponding fields in the new table, and in T-SQL comparisons don't work with null values. So, I have to, just for one field, for example:

and (new.IDNumber = old.IDNumber) or (new.IDNumber is null and old.IDNumber is null)
etc.
etc.

<edit>
I've just been made privy to the trick of using isnull() on all the field comparisons.


"A little learning is a dangerous thing; drink deep, or taste not the Pierian spring: there shallow draughts intoxicate the brain, and drinking largely sobers us again.", by Alexander Pope

My Blog

GeneralRe: Normalising Single Table to Two Pin
kubben31-May-07 3:23
kubben31-May-07 3:23 
GeneralRe: Normalising Single Table to Two Pin
Brady Kelly31-May-07 3:51
Brady Kelly31-May-07 3:51 
QuestionHow to Transfer SQl Database to a Cd and be Opened with SQl on the other side Pin
Vimalsoft(Pty) Ltd31-May-07 0:18
professionalVimalsoft(Pty) Ltd31-May-07 0:18 
AnswerRe: How to Transfer SQl Database to a Cd and be Opened with SQl on the other side Pin
Colin Angus Mackay31-May-07 1:40
Colin Angus Mackay31-May-07 1:40 
GeneralRe: How to Transfer SQl Database to a Cd and be Opened with SQl on the other side Pin
Vimalsoft(Pty) Ltd31-May-07 2:38
professionalVimalsoft(Pty) Ltd31-May-07 2:38 
GeneralRe: How to Transfer SQl Database to a Cd and be Opened with SQl on the other side Pin
Colin Angus Mackay31-May-07 4:15
Colin Angus Mackay31-May-07 4:15 
GeneralRe: How to Transfer SQl Database to a Cd and be Opened with SQl on the other side Pin
Vimalsoft(Pty) Ltd31-May-07 4:25
professionalVimalsoft(Pty) Ltd31-May-07 4:25 
QuestionSplit it Pin
The_Server31-May-07 0:10
The_Server31-May-07 0:10 
AnswerRe: Split it Pin
Tirthadip31-May-07 1:28
Tirthadip31-May-07 1:28 
AnswerRe: Split it Pin
Kirtan Gor31-May-07 1:40
Kirtan Gor31-May-07 1:40 
QuestionRe: Split it [modified] Pin
The_Server31-May-07 2:25
The_Server31-May-07 2:25 
AnswerRe: Split it Pin
Harini N K4-Jun-07 0:56
Harini N K4-Jun-07 0:56 
AnswerRe: Split it Pin
The_Server6-Jun-07 20:07
The_Server6-Jun-07 20:07 
QuestionDataSet Fill Problem Pin
Kirtan Gor30-May-07 22:52
Kirtan Gor30-May-07 22:52 
QuestionSQL statement returning duplicates with DISTINCT [modified] Pin
ScottM130-May-07 22:01
ScottM130-May-07 22:01 
AnswerRe: SQL statement returning duplicates with DISTINCT Pin
kubben31-May-07 3:11
kubben31-May-07 3:11 
GeneralRe: SQL statement returning duplicates with DISTINCT Pin
ScottM131-May-07 3:24
ScottM131-May-07 3:24 

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.