Click here to Skip to main content
15,899,124 members
Home / Discussions / Database
   

Database

 
AnswerRe: Why would you ever designate a primary key as non-clustered? Pin
econner26-Jun-08 17:02
econner26-Jun-08 17:02 
Questionjoining two queries Pin
csp19-Jun-08 2:09
csp19-Jun-08 2:09 
AnswerRe: joining two queries Pin
Blue_Boy19-Jun-08 3:44
Blue_Boy19-Jun-08 3:44 
GeneralRe: joining two queries Pin
A Wong19-Jun-08 3:50
A Wong19-Jun-08 3:50 
GeneralRe: joining two queries Pin
Blue_Boy19-Jun-08 3:52
Blue_Boy19-Jun-08 3:52 
GeneralRe: joining two queries Pin
A Wong19-Jun-08 4:48
A Wong19-Jun-08 4:48 
AnswerRe: joining two queries Pin
Niraj_Silver26-Jun-08 0:15
Niraj_Silver26-Jun-08 0:15 
QuestionThe multipart identifier could not be bound Pin
JacquesDP18-Jun-08 23:20
JacquesDP18-Jun-08 23:20 
Hi guys,

I have the following query, example

Select a.id, b.description
from table1 a
left join (select top 1 c.id, c.description from tableb c where c.id = a.id) as b on b.id = a.id

The reason I do this is because tableb could have multiple duplicates of c.id and I want it to only do the select on one specific id from the table1.
But I get the error because a.id is not within the select statement of tableb.

Is there any way that I can do this, if I remove the where clause in the tableb select statement it returns duplicate values on the description.

Thanks in advance

No matter how long he who laughs last laughs, he who laughs first has a head start!

AnswerRe: The multipart identifier could not be bound Pin
Blue_Boy19-Jun-08 1:05
Blue_Boy19-Jun-08 1:05 
GeneralRe: The multipart identifier could not be bound Pin
JacquesDP19-Jun-08 1:30
JacquesDP19-Jun-08 1:30 
GeneralRe: The multipart identifier could not be bound Pin
Blue_Boy19-Jun-08 3:42
Blue_Boy19-Jun-08 3:42 
Questionselecting highest number smaller than? Pin
Tom Deketelaere18-Jun-08 21:07
professionalTom Deketelaere18-Jun-08 21:07 
AnswerRe: selecting highest number smaller than? Pin
ChandraRam18-Jun-08 21:24
ChandraRam18-Jun-08 21:24 
GeneralRe: selecting highest number smaller than? Pin
Tom Deketelaere18-Jun-08 21:40
professionalTom Deketelaere18-Jun-08 21:40 
GeneralRe: selecting highest number smaller than? Pin
Blue_Boy18-Jun-08 22:41
Blue_Boy18-Jun-08 22:41 
GeneralRe: selecting highest number smaller than? Pin
ChandraRam20-Jun-08 2:21
ChandraRam20-Jun-08 2:21 
QuestionData transaction between MySQL , MSMQ and Asp.net C# application Pin
jmohan18-Jun-08 20:41
jmohan18-Jun-08 20:41 
AnswerRe: Data transaction between MySQL , MSMQ and Asp.net C# application Pin
Niraj_Silver26-Jun-08 0:21
Niraj_Silver26-Jun-08 0:21 
QuestionProblem in query Pin
Poonam Gandash18-Jun-08 20:02
Poonam Gandash18-Jun-08 20:02 
AnswerRe: Problem in query Pin
Colin Angus Mackay18-Jun-08 20:53
Colin Angus Mackay18-Jun-08 20:53 
AnswerRe: Problem in query Pin
Niraj_Silver26-Jun-08 0:17
Niraj_Silver26-Jun-08 0:17 
Questiondifference between sql server and ms access on the basis of backward compatibility Pin
Pankaj Garg18-Jun-08 19:19
Pankaj Garg18-Jun-08 19:19 
AnswerRe: difference between sql server and ms access on the basis of backward compatibility Pin
Ashfield18-Jun-08 22:51
Ashfield18-Jun-08 22:51 
QuestionMsSQL to MySQL Pin
jacko87318-Jun-08 6:12
jacko87318-Jun-08 6:12 
AnswerRe: MsSQL to MySQL Pin
Jerry Hammond19-Jun-08 18:31
Jerry Hammond19-Jun-08 18: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.