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

Database

 
AnswerRe: Random Select [modified] Pin
Michael Potter23-Aug-07 8:43
Michael Potter23-Aug-07 8:43 
GeneralRe: Random Select Pin
PIEBALDconsult23-Aug-07 9:27
mvePIEBALDconsult23-Aug-07 9:27 
AnswerRe: Random Select Pin
Rocky#23-Aug-07 19:55
Rocky#23-Aug-07 19:55 
GeneralRe: Random Select Pin
PIEBALDconsult24-Aug-07 7:57
mvePIEBALDconsult24-Aug-07 7:57 
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 
select TOP 5 salary,empID
FROM EMP
Order by Salary DESC

Use this to find whatever number of top salaried personeel u want. Use a Cursor to fetch the records one by one. In this way u can ignore the records you dont want. Like for finding the 4th highest salary you can ignore the 1st 3 records and get the fourth one.

Rocky

You can't climb up a ladder with your hands in your pockets.

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 
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 

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.