Click here to Skip to main content
15,922,574 members
Home / Discussions / Database
   

Database

 
GeneralRe: MS SQL Server 2005 UDF only returns first character from a string value Pin
Ashfield13-Jan-10 5:15
Ashfield13-Jan-10 5:15 
GeneralRe: MS SQL Server 2005 UDF only returns first character from a string value Pin
Steven J Jowett13-Jan-10 5:21
Steven J Jowett13-Jan-10 5:21 
GeneralRe: MS SQL Server 2005 UDF only returns first character from a string value Pin
Ashfield13-Jan-10 8:36
Ashfield13-Jan-10 8:36 
Questionupdate Query with Order by Clause- SQL Server2008 Pin
Paramu197311-Jan-10 22:51
Paramu197311-Jan-10 22:51 
AnswerRe: update Query with Order by Clause- SQL Server2008 Pin
Mycroft Holmes11-Jan-10 23:21
professionalMycroft Holmes11-Jan-10 23:21 
GeneralRe: update Query with Order by Clause- SQL Server2008 Pin
i.j.russell12-Jan-10 3:54
i.j.russell12-Jan-10 3:54 
AnswerRe: update Query with Order by Clause- SQL Server2008 Pin
i.j.russell12-Jan-10 3:57
i.j.russell12-Jan-10 3:57 
AnswerRe: update Query with Order by Clause- SQL Server2008 [modified] Pin
loyal ginger12-Jan-10 4:06
loyal ginger12-Jan-10 4:06 
There is no problem with the order by clause. However, your subquery may return multiple values, which makes the assignment not valid.

You need to refine your subquery so that only the desired value is returned. For example, when you use order by clause and use "top 1", then the "un_rate" of the record with the smallest "Qtnno" value is returned. Without a clear knowledge of your original intension, I don't have a clear answer to your question.

modified on Tuesday, January 12, 2010 11:02 AM

AnswerRe: update Query with Order by Clause- SQL Server2008 Pin
Corporal Agarn12-Jan-10 5:10
professionalCorporal Agarn12-Jan-10 5:10 
GeneralRe: update Query with Order by Clause- SQL Server2008 Pin
i.j.russell12-Jan-10 5:15
i.j.russell12-Jan-10 5:15 
QuestionGetting underlying table-column value from a selected DataGridRow [Solved] Pin
AussieLew11-Jan-10 18:07
AussieLew11-Jan-10 18:07 
AnswerRe: Getting underlying table-column value from a selected DataGridRow Pin
Mycroft Holmes11-Jan-10 18:40
professionalMycroft Holmes11-Jan-10 18:40 
GeneralRe: Getting underlying table-column value from a selected DataGridRow Pin
AussieLew11-Jan-10 21:27
AussieLew11-Jan-10 21:27 
GeneralRe: Getting underlying table-column value from a selected DataGridRow Pin
Mycroft Holmes11-Jan-10 22:12
professionalMycroft Holmes11-Jan-10 22:12 
GeneralRe: Getting underlying table-column value from a selected DataGridRow Pin
AussieLew12-Jan-10 0:46
AussieLew12-Jan-10 0:46 
GeneralRe: Getting underlying table-column value from a selected DataGridRow Pin
Mycroft Holmes12-Jan-10 14:00
professionalMycroft Holmes12-Jan-10 14:00 
QuestionSelecting Rows Pin
sriharsha_1210-Jan-10 19:32
sriharsha_1210-Jan-10 19:32 
AnswerRe: Selecting Rows Pin
Mycroft Holmes10-Jan-10 20:59
professionalMycroft Holmes10-Jan-10 20:59 
GeneralRe: Selecting Rows Pin
sriharsha_1210-Jan-10 23:08
sriharsha_1210-Jan-10 23:08 
QuestionOracle Pin
MsmVc10-Jan-10 17:14
MsmVc10-Jan-10 17:14 
AnswerRe: Oracle Pin
Mycroft Holmes10-Jan-10 18:15
professionalMycroft Holmes10-Jan-10 18:15 
AnswerRe: Oracle Pin
Jörgen Andersson10-Jan-10 21:56
professionalJörgen Andersson10-Jan-10 21:56 
Questionget list of weeks with week number Pin
Maddie from Dartford10-Jan-10 5:08
Maddie from Dartford10-Jan-10 5:08 
AnswerRe: get list of weeks with week number Pin
Herman<T>.Instance13-Jan-10 3:53
Herman<T>.Instance13-Jan-10 3:53 
QuestionProblem with subquery returning more than 1 value [Solved] Pin
James Shao10-Jan-10 4:34
James Shao10-Jan-10 4:34 

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.