Click here to Skip to main content
15,891,828 members
Home / Discussions / Database
   

Database

 
QuestionSQL query Pin
Milind Panchal23-Aug-07 6:56
Milind Panchal23-Aug-07 6:56 
AnswerRe: SQL query Pin
Michael Potter23-Aug-07 8:20
Michael Potter23-Aug-07 8:20 
GeneralRe: SQL query Pin
Milind Panchal23-Aug-07 18:29
Milind Panchal23-Aug-07 18:29 
GeneralRe: SQL query Pin
Rocky#23-Aug-07 20:11
Rocky#23-Aug-07 20:11 
GeneralRe: SQL query Pin
Michael Potter24-Aug-07 5:10
Michael Potter24-Aug-07 5:10 
QuestionHow to upload an Ntext column value to a text file Pin
edukulla23-Aug-07 6:48
edukulla23-Aug-07 6:48 
QuestionHow can I optimize this script? Pin
Skanless23-Aug-07 6:11
Skanless23-Aug-07 6:11 
AnswerRe: How can I optimize this script? Pin
Michael Potter23-Aug-07 8:41
Michael Potter23-Aug-07 8:41 
DISTINCT used as an argument of a SELECT clause does not eliminate rows due to a single duplicate column. It eliminates rows when all columns are equivalent. The whole row would have to be the same for it to begin its removal process.

DISTINCT can be used as an argument in an aggregate like AVG(DISTINCT price). Here it will eliminate duplicate prices before calculating the average.

I think you need to re-examine how you have coded your store procedure. It seems a little over done. Not sure what your desired end result is but, I would think a much simpler LEFT JOIN would handle most of the work.
Questionreturn int (urgent) [modified] Pin
ksaw12323-Aug-07 5:28
ksaw12323-Aug-07 5:28 
AnswerRe: return int (urgent) Pin
Colin Angus Mackay23-Aug-07 5:34
Colin Angus Mackay23-Aug-07 5:34 
GeneralRe: return int (urgent) [modified] Pin
ksaw12323-Aug-07 5:38
ksaw12323-Aug-07 5:38 
GeneralRe: return int (urgent) Pin
Xandip24-Aug-07 17:31
Xandip24-Aug-07 17:31 
GeneralRe: return int (urgent) Pin
ksaw12325-Aug-07 0:14
ksaw12325-Aug-07 0:14 
Questionloop in sql table Pin
costavo23-Aug-07 4:06
costavo23-Aug-07 4:06 
AnswerRe: loop in sql table Pin
Colin Angus Mackay23-Aug-07 5:30
Colin Angus Mackay23-Aug-07 5:30 
QuestionConnect to sql server Pin
messages23-Aug-07 3:56
messages23-Aug-07 3:56 
AnswerRe: Connect to sql server Pin
WhiteGirl2323-Aug-07 4:00
WhiteGirl2323-Aug-07 4:00 
GeneralRe: Connect to sql server Pin
messages23-Aug-07 4:14
messages23-Aug-07 4:14 
AnswerRe: Connect to sql server Pin
Colin Angus Mackay23-Aug-07 4:03
Colin Angus Mackay23-Aug-07 4:03 
GeneralRe: Connect to sql server Pin
messages23-Aug-07 4:17
messages23-Aug-07 4:17 
GeneralRe: Connect to sql server Pin
Colin Angus Mackay23-Aug-07 5:35
Colin Angus Mackay23-Aug-07 5:35 
GeneralRe: Connect to sql server Pin
Colin Angus Mackay23-Aug-07 5:37
Colin Angus Mackay23-Aug-07 5:37 
GeneralRe: Connect to sql server Pin
messages23-Aug-07 6:55
messages23-Aug-07 6:55 
AnswerRe: Connect to sql server Pin
martin_hughes23-Aug-07 13:21
martin_hughes23-Aug-07 13:21 
GeneralRe: Connect to sql server Pin
messages23-Aug-07 21:12
messages23-Aug-07 21:12 

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.