I have two tables in oracle for getting the software versions
RequiredVersion Table
major minor maintenance requiredversion
20 0 0 20.0.1
20 0 1 20.0.3
20 0 3 null
20 0 4 null
20 0 2 20.0.5
20 0 5 null
20 0 6 null
OptimumVersion Table
major minor maintenance optimumver
20 0 0 20.0.2
20 0 2 20.0.6
20 0 1 20.0.4
User will send the input 20.0.0 for this version I am splitting and comparing with major minor and maintenance in both the tables. how can I get all the dependencies i.e required versions and optimum version
I/P 20.0.0
O/p 20.0.1
20.0.2
20.0.3
20.0.4
20.0.5
20.0.6
Each version I get may or may not have required and optimum version . I tried a lot using query but not getting how we can call in loop.Please help me to solve this issue.
Structure : 20.0.0
/ \
(reqver) 20.0.1 20.0.2 (optimumvers)
/ \ / \
20.0.3 20.0.4 20.0.5 20.0.6
(reqver) (optver) (req) (opt)
Thanks in advance