Click here to Skip to main content
16,012,759 members
Home / Discussions / Database
   

Database

 
QuestionRe: how to connect to a web database Pin
lune1220-May-07 9:15
lune1220-May-07 9:15 
AnswerRe: how to connect to a web database Pin
Christian Graus20-May-07 12:32
protectorChristian Graus20-May-07 12:32 
AnswerRe: how to connect to a web database Pin
Colin Angus Mackay20-May-07 20:56
Colin Angus Mackay20-May-07 20:56 
QuestionHow to query this? [modified] Pin
Arun.Immanuel19-May-07 4:26
Arun.Immanuel19-May-07 4:26 
AnswerRe: How to query this? Pin
enjoycrack19-May-07 6:10
enjoycrack19-May-07 6:10 
GeneralRe: How to query this? Pin
Arun.Immanuel19-May-07 6:28
Arun.Immanuel19-May-07 6:28 
GeneralRe: How to query this? Pin
enjoycrack19-May-07 7:02
enjoycrack19-May-07 7:02 
GeneralRe: How to query this? Pin
Arun.Immanuel19-May-07 16:54
Arun.Immanuel19-May-07 16:54 
At last, I have found it:


SELECT  A.* FROM
(
    SELECT B.ID, B.Date,
      RANK() OVER (PARTITION BY B.ID ORDER BY B.Date  DESC) AS RowRank
    FROM   tblName B  WHERE
      B.Value>0 AND Date<CAST(FLOOR(CAST(GETDATE() AS FLOAT)) AS DATETIME)
    GROUP BY
      B.ID, B.Date
) A WHERE RowRank<=5 ORDER BY ID





Regards,
Arun Kumar.A

GeneralRe: How to query this? Pin
faizankhan20-May-07 21:24
faizankhan20-May-07 21:24 
QuestionHow can I access to a resource that is created in another thread? Pin
ali_reza_zareian18-May-07 23:44
ali_reza_zareian18-May-07 23:44 
AnswerRe: How can I access to a resource that is created in another thread? Pin
Colin Angus Mackay19-May-07 11:50
Colin Angus Mackay19-May-07 11:50 
QuestionSql server 2000 Pin
Ravindra Rayudu18-May-07 19:13
Ravindra Rayudu18-May-07 19:13 
AnswerRe: Sql server 2000 Pin
enjoycrack19-May-07 6:14
enjoycrack19-May-07 6:14 
QuestionSQL Server Internal Commands Pin
Werries18-May-07 6:14
Werries18-May-07 6:14 
AnswerRe: SQL Server Internal Commands Pin
dhbaer18-May-07 7:13
dhbaer18-May-07 7:13 
GeneralRe: SQL Server Internal Commands Pin
Giorgi Dalakishvili18-May-07 7:33
mentorGiorgi Dalakishvili18-May-07 7:33 
GeneralRe: SQL Server Internal Commands Pin
Werries19-May-07 19:40
Werries19-May-07 19:40 
Questiondatabase connection through proxy server Pin
sridhar vattam18-May-07 2:33
sridhar vattam18-May-07 2:33 
AnswerRe: database connection through proxy server Pin
dhbaer18-May-07 7:14
dhbaer18-May-07 7:14 
QuestionDataGridView databound DataTable wont update? [modified] Pin
MrRhino18-May-07 1:43
MrRhino18-May-07 1:43 
AnswerRe: DataGridView databound DataTable wont update? Pin
MrRhino20-May-07 0:35
MrRhino20-May-07 0:35 
QuestionNull Reference Exception in Grid View? Pin
chand1017-May-07 23:54
chand1017-May-07 23:54 
AnswerRe: Null Reference Exception in Grid View? Pin
kubben18-May-07 2:27
kubben18-May-07 2:27 
QuestionThis Procedure Does not Add a new record in the Table Help Pin
Vimalsoft(Pty) Ltd17-May-07 23:46
professionalVimalsoft(Pty) Ltd17-May-07 23:46 
AnswerRe: This Procedure Does not Add a new record in the Table Help Pin
Pete O'Hanlon17-May-07 23:54
mvePete O'Hanlon17-May-07 23:54 

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.