T-SQL - How to find missed max and min value in a sequence of numbers

后端 未结 0 671
有刺的猬
有刺的猬 2021-01-03 09:25

For example, I have a sequence of numbers: {1, 2, 5, 7}. I need to find the smallest and the biggest one, which are missed in this sequence (min=3 and max=6

相关标签:
回答
  • 消灭零回复
提交回复
热议问题