Click here to Skip to main content
15,913,115 members
Home / Discussions / Database
   

Database

 
GeneralRe: dbase deisgn question Pin
bfis10813712-Aug-08 13:08
bfis10813712-Aug-08 13:08 
GeneralRe: dbase deisgn question Pin
PIEBALDconsult12-Aug-08 13:15
mvePIEBALDconsult12-Aug-08 13:15 
GeneralRe: dbase deisgn question Pin
Mycroft Holmes12-Aug-08 19:44
professionalMycroft Holmes12-Aug-08 19:44 
GeneralRe: dbase deisgn question Pin
bfis10813713-Aug-08 1:03
bfis10813713-Aug-08 1:03 
GeneralRe: dbase deisgn question Pin
Mycroft Holmes13-Aug-08 2:00
professionalMycroft Holmes13-Aug-08 2:00 
GeneralRe: dbase deisgn question Pin
Mark Churchill12-Aug-08 21:15
Mark Churchill12-Aug-08 21:15 
GeneralRe: dbase deisgn question Pin
Wendelius13-Aug-08 7:23
mentorWendelius13-Aug-08 7:23 
QuestionHelp with a SELECT query needed. Pin
Steven J Jowett12-Aug-08 3:24
Steven J Jowett12-Aug-08 3:24 
Hi guys,

My weak T-SQL skills have let me down once again Frown | :(

I have 2 tables, ACCOUNTS and ADDRESSES within a database that I need to return data from.
I each account in the ACCOUNTS table can have zero or more addresses and I need to select from the ADDRESSES TABLE two specific addresses, if available.

Before I carry on, I should point out I indent to use a Stored Procedure.

So I need to SELECT an account from ACCOUNTS and the Primary address from ADDRESSES (signified by column IsPrimary = True) and the Invoice Address from ADDRESSES (where the Type = 'INVOICE'). The result should be one row per account and should always return the account even if there is no Primary or Invoice address.

I am eternally grateful for any assistance, and examples on how to achieve the desired result.

Thanks

Steve Jowett
-------------------------
It is offen dangerous to try and see someone else's point of view, without proper training. Douglas Adams (Mostly Harmless)

AnswerRe: Help with a SELECT query needed. Pin
PIEBALDconsult12-Aug-08 3:29
mvePIEBALDconsult12-Aug-08 3:29 
GeneralRe: Help with a SELECT query needed. Pin
Steven J Jowett12-Aug-08 3:31
Steven J Jowett12-Aug-08 3:31 
GeneralRe: Help with a SELECT query needed. Pin
Steven J Jowett12-Aug-08 4:32
Steven J Jowett12-Aug-08 4:32 
GeneralRe: Help with a SELECT query needed. Pin
PIEBALDconsult12-Aug-08 5:10
mvePIEBALDconsult12-Aug-08 5:10 
GeneralRe: Help with a SELECT query needed. Pin
Steven J Jowett12-Aug-08 5:45
Steven J Jowett12-Aug-08 5:45 
QuestionMySQL to MSSQL conversion of stmt Pin
tim_gunning12-Aug-08 1:54
tim_gunning12-Aug-08 1:54 
AnswerRe: MySQL to MSSQL conversion of stmt Pin
Tim Carmichael12-Aug-08 2:13
Tim Carmichael12-Aug-08 2:13 
GeneralRe: MySQL to MSSQL conversion of stmt Pin
tim_gunning12-Aug-08 2:25
tim_gunning12-Aug-08 2:25 
GeneralRe: MySQL to MSSQL conversion of stmt Pin
Tim Carmichael12-Aug-08 3:06
Tim Carmichael12-Aug-08 3:06 
GeneralRe: MySQL to MSSQL conversion of stmt Pin
tim_gunning12-Aug-08 3:24
tim_gunning12-Aug-08 3:24 
QuestionNot returning null values Pin
Brendan Vogt12-Aug-08 1:41
Brendan Vogt12-Aug-08 1:41 
AnswerRe: Not returning null values Pin
Ashfield12-Aug-08 2:05
Ashfield12-Aug-08 2:05 
QuestionRe: Not returning null values Pin
Brendan Vogt12-Aug-08 21:08
Brendan Vogt12-Aug-08 21:08 
AnswerRe: Not returning null values Pin
PIEBALDconsult12-Aug-08 3:34
mvePIEBALDconsult12-Aug-08 3:34 
AnswerRe: Not returning null values Pin
PIEBALDconsult12-Aug-08 3:36
mvePIEBALDconsult12-Aug-08 3:36 
GeneralRe: Not returning null values Pin
Ashfield12-Aug-08 5:20
Ashfield12-Aug-08 5:20 
GeneralRe: Not returning null values Pin
PIEBALDconsult12-Aug-08 7:31
mvePIEBALDconsult12-Aug-08 7:31 

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.