sql Select maximum and minimum values for a column and displayed in the same column

 

 I would like to find two rows of data by the maximum and minimum values ​​of the primary key id, so I can know the situation before and after the time of the entire table

Can be done by the following statement

 

Guess you like

Origin www.cnblogs.com/jiguang321/p/12012569.html