Dates

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a pipeID and DateCCTV. A pipeID can be DateCCTV many times. I'd like
to get the most recent Date of the DateCCTV for each pipeID.
 
Tristan,

If all you are interested in is knowing the DateCCTV for each pipe then
something like this should work:

SELECT PipeID, MAX(DateCCTV) as MostRecentDate
FROM yourTable
GROUP BY PipeID

HTH
Dale
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top