Click here to Skip to main content
15,907,183 members
Home / Discussions / Database
   

Database

 
AnswerRe: change server name Pin
Colin Angus Mackay15-May-06 9:10
Colin Angus Mackay15-May-06 9:10 
GeneralRe: change server name Pin
Paps215-May-06 9:40
Paps215-May-06 9:40 
GeneralRe: change server name Pin
Frank Kerrigan15-May-06 10:06
Frank Kerrigan15-May-06 10:06 
Question[mssql 2k] Distributing an empty database Pin
Duncan Edwards Jones15-May-06 2:55
professionalDuncan Edwards Jones15-May-06 2:55 
AnswerRe: [mssql 2k] Distributing an empty database Pin
Colin Angus Mackay15-May-06 3:01
Colin Angus Mackay15-May-06 3:01 
AnswerRe: [mssql 2k] Distributing an empty database Pin
Frank Kerrigan15-May-06 3:26
Frank Kerrigan15-May-06 3:26 
QuestionFinding the nth max salary Pin
dayakar_dn15-May-06 1:00
dayakar_dn15-May-06 1:00 
AnswerRe: Finding the nth max salary Pin
Colin Angus Mackay15-May-06 1:52
Colin Angus Mackay15-May-06 1:52 
Something like this might work:
SELECT TOP 1 EmployeeID, Salary
FROM
(
    SELECT TOP n EmployeeID, Salary
    FROM EmployeeTable
    ORDER BY Salary DESC
) AS TopSalaries
ORDER BY Salary ASC
Remember to replace the n in TOP n with the actual literal value that you need (unless you are using SQL Server 2005)


"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)

My: Website | Blog
AnswerRe: Finding the nth max salary Pin
Frank Kerrigan15-May-06 3:32
Frank Kerrigan15-May-06 3:32 
AnswerRe: Finding the nth max salary Pin
Albert Pascual15-May-06 4:47
sitebuilderAlbert Pascual15-May-06 4:47 
GeneralRe: Finding the nth max salary Pin
Colin Angus Mackay15-May-06 4:54
Colin Angus Mackay15-May-06 4:54 
AnswerRe: Another solution Pin
Dinuj Nath16-May-06 2:07
Dinuj Nath16-May-06 2:07 
GeneralRe: Another solution Pin
Paul Conrad16-May-06 6:38
professionalPaul Conrad16-May-06 6:38 
GeneralRe: Another solution Pin
Dinuj Nath16-May-06 17:55
Dinuj Nath16-May-06 17:55 
QuestionConnecting a database with vb.net Pin
ADY00715-May-06 0:24
ADY00715-May-06 0:24 
AnswerRe: Connecting a database with vb.net Pin
Mohammed Amine15-May-06 13:21
Mohammed Amine15-May-06 13:21 
GeneralRe: Connecting a database with vb.net Pin
User 171649215-May-06 13:28
professionalUser 171649215-May-06 13:28 
Questionstatic method??? Pin
WDI13-May-06 20:56
WDI13-May-06 20:56 
AnswerRe: static method??? Pin
Colin Angus Mackay14-May-06 0:34
Colin Angus Mackay14-May-06 0:34 
GeneralRe: static method??? Pin
WDI14-May-06 19:23
WDI14-May-06 19:23 
GeneralRe: static method??? Pin
Colin Angus Mackay14-May-06 20:58
Colin Angus Mackay14-May-06 20:58 
QuestionCreating database from xml Pin
w3Nima13-May-06 20:13
w3Nima13-May-06 20:13 
AnswerRe: Creating database from xml Pin
TheEagle14-May-06 8:00
TheEagle14-May-06 8:00 
GeneralRe: Creating database from xml Pin
w3Nima14-May-06 21:05
w3Nima14-May-06 21:05 
GeneralRe: Creating database from xml Pin
TheEagle17-May-06 8:09
TheEagle17-May-06 8:09 

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.