Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

Computing minimum and maximum for each id

$
0
0

Dear all

I have a table in which for each record i have 3 or more rows of date time like below.how can i compute minimum and maximum of all times for each id? 

Table1

id     datetime

1      x1

1      x2

1      x3

2      c1

2      c2

3

.

.


Viewing all articles
Browse latest Browse all 5123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>