I want to get get 6 "double_scoring" records and 4 "singe_scoring" records from my Profiles table based on SCORING_RULE column values. Can you please let me know how can I do this with SELECT query where I am just selecting 10 records with ROWNUM <= 10 limit.
How to get desired type of records for desired number of times in oracle
oracle-10gselect
Related Question
- How to select distinct record
- MySQL – Select Rows with At Least 2 Non-Missing Values
- Oracle 10g – Matching Multiple Columns in Full-Text Search
- SELECT clausebased on other rows values
- PostgreSQL – Add a Column with Name from a SELECT Result
- Sql-server – need the rows with a unique value on certain columns but date column doesn’t help
Best Answer
Please try this query:
Check it here: http://sqlfiddle.com/#!4/7ecc95/1