Your requirements were not clear for me.
You wrote
Quote:
|
How to get 2 or more max() output ...
|
But, I saw only one max() in your queries.
Quote:
|
I mean I dont want 1st and 2nd highest value.
|
But, a max() function gives you only one highest value.
max(<expression-1>, max(<expression-2>, ... in a query return one corresponding results for each max() function.
Quote:
|
My subquery(select col2 from tab2) returns more than 1 values. I need max() values of all results of the subquery.
|
...
max() values of all results of ...
Why plural?
Anyhow, if you wneed a max() value, you can use simply a MAX function, like ...
(select MAX(col2) from tab2)
Showing some sample data and expected result from the data would be better to clarify your requirement.
If you described your requirement with more phrases and sentences,
it would be not easy to understand for other peoples including me.