Skip to content
Advertisement

Tag: oracle11g

How to break sequence

i have a table named sequence with a single column val and table looks like val —– 1 2 3 5 8 9 10 i need to identify the range of numbers if there is a break in sequence and output like …

Oracle SQL data fetch order

I’m trying to achieve this Layout. I’m not sharing the query because it’s working, I’m just wondering what functions to use in order to achieve format ‘2’. In the beginning I was doing UNION ALL , that’s how I got format ‘1’. The data is fetched from multiple tables. I’m trying to achieve this without PLSQL. Thank you ! How

Advertisement