Skip to content
Advertisement

Mark values with diffreent tag in sql

I have one endpoint that is 7. I would like to few numbers 40,35,30,26,22,18,12 mark as completed.(This is an example. The value may be different) and few numbers 13,17,21,27,32,38,43 mark as pending. (This is an example. The value may be different) Can we achieve by SQL statement? for number details, please find the image.

enter image description here

Advertisement

Answer

If your DBMS supports Windowed Aggregates:

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement