0

Could anybody tell me that how can I achieve this Query in oracle

select column1, columns2, max(rownumber) from table where .....; 

Explanation: Select Query is so complicated and I need max to give UI Side "total count" of the record for paging and i will send the data only 20 or 30 records based on the paging size not full record.

1

1 Answer 1

2

Use a window function:

select column1, columns2, count(*) over () as total_count from table where .....; 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.