Click here to Skip to main content
15,904,023 members
Home / Discussions / Database
   

Database

 
GeneralRe: Requirements Pin
oliver_twistor13-Aug-03 1:30
oliver_twistor13-Aug-03 1:30 
GeneralRe: Requirements Pin
Teo13-Aug-03 2:08
Teo13-Aug-03 2:08 
GeneralPrint Pin
deanoA12-Aug-03 15:35
deanoA12-Aug-03 15:35 
GeneralRe: Print Pin
Mike Dimmick12-Aug-03 22:43
Mike Dimmick12-Aug-03 22:43 
GeneralSQL help for a newbie~ Pin
DEWright_CA12-Aug-03 10:20
DEWright_CA12-Aug-03 10:20 
GeneralRe: SQL help for a newbie~ Pin
jeff_martin12-Aug-03 10:47
jeff_martin12-Aug-03 10:47 
GeneralRe: SQL help for a newbie~ Pin
DEWright_CA12-Aug-03 11:03
DEWright_CA12-Aug-03 11:03 
GeneralRe: SQL help for a newbie~ Pin
jeff_martin12-Aug-03 11:16
jeff_martin12-Aug-03 11:16 
Sorry, should have mentioned that if you have any null fields, you will get null results. If you concatenate to a null field, it makes the result null (no matter what is in the other fields). Are any of the fields not nullable? You can either...

A. Add a where clause to get the records where nullable fields are not null. i.e.

where OWNER_DIRECTION_2 is not null

The problem with this is you won't get records that you should get.

B. Use a case statement inside the query. This seems like a lot of typing, but it should work.

select
( case when OWNER_DIRECTION_2 is null then '' else OWNER_DIRECTION_2 end )

Do this for each field that is nullable. What this does is if the field is null, it returns an empty string (the ''), otherwise it returns the field's value.

To put it together...

select
(
case when OWNER_NUMBER is null then '' else OWNER_NUMBER end + ' ' +
case when OWNER_SUBNUMBER is null then '' else OWNERSUBNUMER end + ' ' +...

I'll let you finish it.

Good luck
GeneralRe: SQL help for a newbie~ Pin
Arjan Einbu12-Aug-03 13:12
Arjan Einbu12-Aug-03 13:12 
GeneralRe: SQL help for a newbie~ Pin
Arjan Einbu12-Aug-03 13:27
Arjan Einbu12-Aug-03 13:27 
GeneralADO and 'Unhandled exception in <application> (MSDART.DLL) 0xC0000005: Access Violation' Pin
KalliMan12-Aug-03 1:40
KalliMan12-Aug-03 1:40 
GeneralRe: ADO and 'Unhandled exception in <application> (MSDART.DLL) 0xC0000005: Access Violation' Pin
Steve S12-Aug-03 1:52
Steve S12-Aug-03 1:52 
GeneralRe: ADO and 'Unhandled exception in <application> (MSDART.DLL) 0xC0000005: Access Violation' Pin
KalliMan12-Aug-03 4:35
KalliMan12-Aug-03 4:35 
GeneralRe: ADO and 'Unhandled exception in <application> (MSDART.DLL) 0xC0000005: Access Violation' Pin
Steve S12-Aug-03 5:40
Steve S12-Aug-03 5:40 
GeneralI thing, i found my solution. Pin
KalliMan12-Aug-03 5:49
KalliMan12-Aug-03 5:49 
GeneralI have an Error message, plz help Pin
Exceter11-Aug-03 17:01
Exceter11-Aug-03 17:01 
GeneralRe: I have an Error message, plz help Pin
Exceter11-Aug-03 17:49
Exceter11-Aug-03 17:49 
Generalprint Pin
deanoA11-Aug-03 16:24
deanoA11-Aug-03 16:24 
GeneralDatabase question Pin
Grindorin11-Aug-03 14:23
Grindorin11-Aug-03 14:23 
GeneralRe: Database question Pin
Arjan Einbu12-Aug-03 10:23
Arjan Einbu12-Aug-03 10:23 
GeneralRe: Database question Pin
Grindorin13-Aug-03 14:18
Grindorin13-Aug-03 14:18 
GeneralQuestion: using multi-thread in ADO.Net & C# Pin
yyf11-Aug-03 9:14
yyf11-Aug-03 9:14 
GeneralRe: Question: using multi-thread in ADO.Net & C# Pin
Mike Dimmick11-Aug-03 11:23
Mike Dimmick11-Aug-03 11:23 
GeneralDatabase Pin
Capper11-Aug-03 8:05
Capper11-Aug-03 8:05 
QuestionHow do i access different databases Pin
Venkatraman11-Aug-03 2:38
Venkatraman11-Aug-03 2:38 

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.