Click here to Skip to main content
15,912,665 members
Home / Discussions / Database
   

Database

 
AnswerRe: problem in javascript Pin
pmarfleet18-Oct-07 1:57
pmarfleet18-Oct-07 1:57 
Questionquery Pin
venky45617-Oct-07 23:51
venky45617-Oct-07 23:51 
AnswerRe: query Pin
Imran Khan Pathan18-Oct-07 0:19
Imran Khan Pathan18-Oct-07 0:19 
QuestionData Encryption and Decryption in sql server/2005 Pin
nhss17-Oct-07 21:51
nhss17-Oct-07 21:51 
QuestionImporting Data From Excel Pin
Syed Mujtaba Hassan17-Oct-07 18:45
Syed Mujtaba Hassan17-Oct-07 18:45 
AnswerRe: Importing Data From Excel Pin
Sathesh Sakthivel17-Oct-07 20:01
Sathesh Sakthivel17-Oct-07 20:01 
GeneralRe: Importing Data From Excel Pin
Syed Mujtaba Hassan17-Oct-07 20:30
Syed Mujtaba Hassan17-Oct-07 20:30 
QuestionProblem with row concatenation [modified] Pin
Payal_e_m17-Oct-07 16:52
Payal_e_m17-Oct-07 16:52 
AnswerRe: Problem with row concatenation Pin
Colin Angus Mackay17-Oct-07 17:39
Colin Angus Mackay17-Oct-07 17:39 
GeneralRe: Problem with row concatenation Pin
Payal_e_m17-Oct-07 18:06
Payal_e_m17-Oct-07 18:06 
GeneralRe: Problem with row concatenation Pin
pmarfleet17-Oct-07 20:15
pmarfleet17-Oct-07 20:15 
AnswerRe: Problem with row concatenation Pin
manojm3917-Oct-07 20:18
manojm3917-Oct-07 20:18 
GeneralRe: Problem with row concatenation Pin
Payal_e_m18-Oct-07 16:28
Payal_e_m18-Oct-07 16:28 
QuestionHow to Install SSL in Workgroup Environment for SQL Server? Pin
DotNetWWW17-Oct-07 2:54
DotNetWWW17-Oct-07 2:54 
AnswerRe: How to Install SSL in Workgroup Environment for SQL Server? [modified] Pin
Mike Dimmick17-Oct-07 6:22
Mike Dimmick17-Oct-07 6:22 
GeneralRe: How to Install SSL in Workgroup Environment for SQL Server? Pin
DotNetWWW1-Nov-07 5:40
DotNetWWW1-Nov-07 5:40 
QuestionDynamic ColumnName in Stored Procedure Pin
Herman<T>.Instance17-Oct-07 2:27
Herman<T>.Instance17-Oct-07 2:27 
AnswerRe: Dynamic ColumnName in Stored Procedure Pin
Colin Angus Mackay17-Oct-07 2:40
Colin Angus Mackay17-Oct-07 2:40 
GeneralRe: Dynamic ColumnName in Stored Procedure Pin
Herman<T>.Instance17-Oct-07 3:03
Herman<T>.Instance17-Oct-07 3:03 
GeneralRe: Dynamic ColumnName in Stored Procedure Pin
Colin Angus Mackay17-Oct-07 3:11
Colin Angus Mackay17-Oct-07 3:11 
GeneralRe: Dynamic ColumnName in Stored Procedure Pin
Colin Angus Mackay17-Oct-07 3:38
Colin Angus Mackay17-Oct-07 3:38 
GeneralRe: Dynamic ColumnName in Stored Procedure Pin
Herman<T>.Instance17-Oct-07 3:46
Herman<T>.Instance17-Oct-07 3:46 
QuestionHelp with a SELECT statement required pls. Pin
Steven J Jowett17-Oct-07 2:27
Steven J Jowett17-Oct-07 2:27 
AnswerRe: Help with a SELECT statement required pls. Pin
Colin Angus Mackay17-Oct-07 2:43
Colin Angus Mackay17-Oct-07 2:43 
GeneralRe: Help with a SELECT statement required pls. Pin
Michael Potter17-Oct-07 10:15
Michael Potter17-Oct-07 10:15 
Actually,
SELECT 
    *
FROM 
    AnalysisHeadings AS ah
LEFT JOIN 
    ProductAnalysisValues AS pav 
    ON (ah.HeadingId = pav.HeadingId)
WHERE 
    ItemId = 1

will not get you very far since ItemId will be NULL where there is no matching ProductAnalysisValues row. Therefore, you will get the same result as if you had used an INNER JOIN.

You will need to specify the qualification inside of the ON clause of the LEFT JOIN:
SELECT 
    *
FROM 
    AnalysisHeadings AS ah
LEFT JOIN 
    ProductAnalysisValues AS pav 
    ON (ah.HeadingId = pav.HeadingId AND
        pav.ItemId = 1)

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.