Click here to Skip to main content
15,909,822 members
Home / Discussions / Database
   

Database

 
QuestionReporting Services - Controlling number of rows of a table control Pin
Rashmi Deshpande30-Jun-08 23:47
Rashmi Deshpande30-Jun-08 23:47 
Questionsql query Pin
Pankaj Garg30-Jun-08 21:25
Pankaj Garg30-Jun-08 21:25 
AnswerRe: sql query Pin
Giorgi Dalakishvili30-Jun-08 21:27
mentorGiorgi Dalakishvili30-Jun-08 21:27 
GeneralRe: sql query Pin
Pankaj Garg30-Jun-08 21:31
Pankaj Garg30-Jun-08 21:31 
GeneralRe: sql query Pin
Giorgi Dalakishvili1-Jul-08 4:20
mentorGiorgi Dalakishvili1-Jul-08 4:20 
AnswerRe: sql query Pin
TheFM2342-Jul-08 3:43
TheFM2342-Jul-08 3:43 
QuestionHow to get the second occuring of a row Pin
Exelioindia30-Jun-08 4:09
Exelioindia30-Jun-08 4:09 
AnswerRe: How to get the second occuring of a row Pin
SomeGuyThatIsMe30-Jun-08 8:39
SomeGuyThatIsMe30-Jun-08 8:39 
you just want the MIN(updated) for each FID where priority = 1

so..

SELECT Id, Fid, Priority, Updated
FROM table a
WHERE Priority = 1
AND a.Updated = (SELECT MIN(Updated)
FROM table
WHERE Fid = a.Fid
AND Priority = 1)

might work...i havnt tested it...and i know its a bad way to do things...but its the first that came to mind...you can do it with a join, i just dont want to think that hard right now.

Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

Questionconnecting to remote sql server Pin
kadkir30-Jun-08 3:48
kadkir30-Jun-08 3:48 
AnswerRe: connecting to remote sql server Pin
rrrriiizz2-Jul-08 19:37
rrrriiizz2-Jul-08 19:37 
QuestionSQL Server 2008 Express Pin
Brendan Vogt30-Jun-08 3:26
Brendan Vogt30-Jun-08 3:26 
AnswerRe: SQL Server 2008 Express Pin
Mark Salsbery30-Jun-08 7:01
Mark Salsbery30-Jun-08 7:01 
AnswerRe: SQL Server 2008 Express Pin
Paul Conrad30-Jun-08 7:05
professionalPaul Conrad30-Jun-08 7:05 
QuestionStored procedure = Unit of work? Pin
AliasElias30-Jun-08 2:00
AliasElias30-Jun-08 2:00 
AnswerRe: Stored procedure = Unit of work? Pin
Mike Dimmick30-Jun-08 3:05
Mike Dimmick30-Jun-08 3:05 
GeneralRe: Stored procedure = Unit of work? Pin
AliasElias30-Jun-08 12:11
AliasElias30-Jun-08 12:11 
QuestionHow to monitor query in Pervasive.sql . Please help me it is very urgent for me Pin
Akash Agarwal29-Jun-08 23:59
Akash Agarwal29-Jun-08 23:59 
Questionselect count query(2 field) Pin
kabirkhan29-Jun-08 20:06
kabirkhan29-Jun-08 20:06 
AnswerRe: select count query(2 field) Pin
meeram39530-Jun-08 0:28
meeram39530-Jun-08 0:28 
AnswerRe: select count query(2 field) Pin
ChandraRam30-Jun-08 0:49
ChandraRam30-Jun-08 0:49 
QuestionGetting blank pages while exporting data into pdf format using SSRS 2005 Pin
prabhakaranns29-Jun-08 8:01
prabhakaranns29-Jun-08 8:01 
QuestionInserting into table from cursor Pin
iamdking28-Jun-08 21:41
iamdking28-Jun-08 21:41 
AnswerRe: Inserting into table from cursor Pin
Mycroft Holmes28-Jun-08 21:50
professionalMycroft Holmes28-Jun-08 21:50 
Question"Stock Recon" type query .. most efficient route? Pin
francoisdotnet28-Jun-08 4:39
francoisdotnet28-Jun-08 4:39 
AnswerRe: "Stock Recon" type query .. most efficient route? Pin
Paul Conrad28-Jun-08 8:05
professionalPaul Conrad28-Jun-08 8:05 

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.