Simple sorting method of sql - listed from the case face questions October 25, 2019 interview process

 There is a table has two fields are table1 Id, and display data content requires Number sql follows Spell

 

 

 

 

I thought for a long first I thought this was the last of Number + Sum () = equal to the sum of this idea, however, 

 

 

 

The actual method can be used

 

Guess you like

Origin www.cnblogs.com/YZM97/p/11736729.html