Click here to Skip to main content
15,924,402 members
Home / Discussions / Database
   

Database

 
GeneralRe: Determine column's datatype Pin
Sarvesvara (BVKS) Dasa14-Jan-03 19:52
Sarvesvara (BVKS) Dasa14-Jan-03 19:52 
GeneralSkeletons in my SQL closet Pin
Megan Forbes13-Jan-03 1:21
Megan Forbes13-Jan-03 1:21 
GeneralRe: Skeletons in my SQL closet Pin
Jeremy Oldham13-Jan-03 1:32
Jeremy Oldham13-Jan-03 1:32 
GeneralRe: Skeletons in my SQL closet Pin
Megan Forbes13-Jan-03 9:10
Megan Forbes13-Jan-03 9:10 
GeneralRe: Skeletons in my SQL closet Pin
Jeremy Oldham13-Jan-03 10:22
Jeremy Oldham13-Jan-03 10:22 
GeneralRe: Skeletons in my SQL closet Pin
Megan Forbes13-Jan-03 23:52
Megan Forbes13-Jan-03 23:52 
GeneralRe: Skeletons in my SQL closet Pin
Terry Denham13-Jan-03 10:38
Terry Denham13-Jan-03 10:38 
GeneralRe: Skeletons in my SQL closet Pin
Terry Denham13-Jan-03 10:42
Terry Denham13-Jan-03 10:42 
It sounds like you want to return the firm regardless of whether they have any orders or not. if this is the case then you need to do an outer join between the firm table and the order table so that you guarantee yourself that you always get the firm data, but then all the order data would be null if there aren't any matches.

SELECT f.*, o.*
FROM firm f
LEFT OUTER JOIN order o on (
f.firm_id = o.firm_id
)

But if you post a sample of the query you're trying to run and the results that you want, I'll be better able to give you a solution.

You don't have to post the full query, just enough to get the general principle.
GeneralAccess database Pin
Sarvesvara (BVKS) Dasa12-Jan-03 23:31
Sarvesvara (BVKS) Dasa12-Jan-03 23:31 
GeneralRe: Access database Pin
SimonS12-Jan-03 23:54
SimonS12-Jan-03 23:54 
GeneralRe: Access database Pin
Sarvesvara (BVKS) Dasa13-Jan-03 2:42
Sarvesvara (BVKS) Dasa13-Jan-03 2:42 
GeneralRe: Access database Pin
David Wulff13-Jan-03 10:18
David Wulff13-Jan-03 10:18 
GeneralRe: Access database Pin
Sarvesvara (BVKS) Dasa13-Jan-03 20:40
Sarvesvara (BVKS) Dasa13-Jan-03 20:40 
GeneralWeb site does not deploy Pin
dyerstein12-Jan-03 7:27
dyerstein12-Jan-03 7:27 
GeneralRe: Web site does not deploy Pin
Sarvesvara (BVKS) Dasa12-Jan-03 23:30
Sarvesvara (BVKS) Dasa12-Jan-03 23:30 
GeneralDisconnected ADO Recordset Pin
Ranjan Banerji11-Jan-03 6:00
Ranjan Banerji11-Jan-03 6:00 
GeneralRe: Disconnected ADO Recordset Pin
Hesham Amin11-Jan-03 8:05
Hesham Amin11-Jan-03 8:05 
GeneralImporting Text Files into SQLServer Pin
dturton10-Jan-03 13:28
dturton10-Jan-03 13:28 
GeneralRe: Importing Text Files into SQLServer Pin
mwilliamson12-Jan-03 15:49
mwilliamson12-Jan-03 15:49 
GeneralRe: Importing Text Files into SQLServer Pin
dturton13-Jan-03 2:42
dturton13-Jan-03 2:42 
GeneralRe: Importing Text Files into SQLServer Pin
Terry Denham13-Jan-03 10:49
Terry Denham13-Jan-03 10:49 
GeneralSQlServer arabic Query Pin
intibnin9-Jan-03 20:48
intibnin9-Jan-03 20:48 
GeneralRe: SQlServer arabic Query Pin
Mazdak10-Jan-03 4:08
Mazdak10-Jan-03 4:08 
GeneralRe: SQlServer arabic Query Pin
Hesham Amin11-Jan-03 7:56
Hesham Amin11-Jan-03 7:56 
GeneralDelete records after certain period Pin
alex.barylski9-Jan-03 20:25
alex.barylski9-Jan-03 20: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.