Click here to Skip to main content
15,920,217 members
Home / Discussions / Database
   

Database

 
QuestionProblem with SQL Query doing inner joins [modified] Pin
Sunset Towers27-Aug-08 14:23
Sunset Towers27-Aug-08 14:23 
AnswerRe: Problem with SQL Query doing inner joins Pin
PIEBALDconsult27-Aug-08 16:09
mvePIEBALDconsult27-Aug-08 16:09 
GeneralRe: Problem with SQL Query doing inner joins Pin
Sunset Towers27-Aug-08 16:14
Sunset Towers27-Aug-08 16:14 
QuestionInput requested on SQL Random String Generator Pin
Jesse Wimberley27-Aug-08 13:47
Jesse Wimberley27-Aug-08 13:47 
Questionbetween max() and min() Pin
nelsonpaixao27-Aug-08 13:33
nelsonpaixao27-Aug-08 13:33 
AnswerRe: between max() and min() Pin
TheFM23427-Aug-08 13:52
TheFM23427-Aug-08 13:52 
AnswerRe: between max() and min() Pin
Blue_Boy27-Aug-08 21:02
Blue_Boy27-Aug-08 21:02 
AnswerRe: between max() and min() Pin
MatthysDT28-Aug-08 1:34
MatthysDT28-Aug-08 1:34 
To select the 5th lowest (or n-th lowest) replace the "5" in this query with the number you want.

Select max(X) from
(Select top 5 id as X from idTable order by id asc)t


To select the n-th highest replace the "5" in this query with the number you want.
Select min(X) from
(Select top 5 id as X from idTable order by id desc) t


Cheers!


Questionarray Pin
nelsonpaixao27-Aug-08 13:09
nelsonpaixao27-Aug-08 13:09 
AnswerRe: array Pin
Ashfield27-Aug-08 20:57
Ashfield27-Aug-08 20:57 
AnswerRe: array Pin
MatthysDT28-Aug-08 1:56
MatthysDT28-Aug-08 1:56 
Questiontable Pin
nelsonpaixao27-Aug-08 13:02
nelsonpaixao27-Aug-08 13:02 
AnswerRe: table Pin
Ashfield27-Aug-08 20:50
Ashfield27-Aug-08 20:50 
AnswerRe: table Pin
TheFM23428-Aug-08 16:54
TheFM23428-Aug-08 16:54 
QuestionGrouping by most recent date Pin
Netblue27-Aug-08 8:21
Netblue27-Aug-08 8:21 
AnswerRe: Grouping by most recent date Pin
Ashfield27-Aug-08 8:57
Ashfield27-Aug-08 8:57 
GeneralRe: Grouping by most recent date Pin
Netblue27-Aug-08 9:07
Netblue27-Aug-08 9:07 
GeneralRe: Grouping by most recent date Pin
Ashfield27-Aug-08 21:53
Ashfield27-Aug-08 21:53 
Questionhow to find string existence in the another string . Pin
lakshmichawala27-Aug-08 2:32
lakshmichawala27-Aug-08 2:32 
AnswerRe: how to find string existence in the another string . Pin
Ashfield27-Aug-08 2:37
Ashfield27-Aug-08 2:37 
GeneralRe: how to find string existence in the another string . Pin
lakshmichawala27-Aug-08 2:54
lakshmichawala27-Aug-08 2:54 
GeneralRe: how to find string existence in the another string . Pin
Ashfield27-Aug-08 2:55
Ashfield27-Aug-08 2:55 
AnswerRe: how to find string existence in the another string . Pin
Blue_Boy27-Aug-08 3:12
Blue_Boy27-Aug-08 3:12 
AnswerRe: how to find string existence in the another string . Pin
Wendelius27-Aug-08 6:50
mentorWendelius27-Aug-08 6:50 
QuestionHow to read sql server2000/2005 transaction log user friendly way? Pin
Tridip Bhattacharjee27-Aug-08 1:56
professionalTridip Bhattacharjee27-Aug-08 1:56 

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.