You could use a numbers table
SELECT value, count, number
FROM table
JOIN Numbers
ON table.count >= Numbers.number
More Related Contents:
- How to select the nth row in a SQL database table?
- How do I decide when to use right joins/left joins or inner joins Or how to determine which table is on which side?
- Why do results from a SQL query not come back in the order I expect?
- Best practices for SQL varchar column length [closed]
- Relationship between catalog, schema, user, and database instance
- What resources exist for Database performance-tuning? [closed]
- how to cast the hexadecimal to varchar(datetime)?
- What are the max number of allowable parameters per database provider type?
- Why in SQL NULL can’t match with NULL?
- In SQL Server how to get the count of child if both parent and child are available [closed]
- SQL Print the name of all Employees together with the name of their supervisor
- How to filter SQL results in a has-many-through relation
- Group by clause in mySQL and postgreSQL, why the error in postgreSQL?
- Storing JSON in database vs. having a new column for each key
- Simple Random Samples from a Sql database
- Stored Procedure with optional “WHERE” parameters
- When to use SELECT … FOR UPDATE?
- How do I UPDATE a row in a table or INSERT it if it doesn’t exist?
- Does mysql have the equivalent of Oracle’s “analytic functions”?
- How to transpose rows to columns with large amount of the data in BigQuery/SQL?
- Are SELECT type queries the only type that can be nested?
- Is there a way to get the row number in Mysql like the rownum in oracle [duplicate]
- Postgres LEFT JOIN with WHERE condition
- What does SQL Select symbol || mean?
- MySQL equivalent of Oracle’s SEQUENCE.NEXTVAL
- How do I list all the columns in a table?
- Equivalent of MySQL ON DUPLICATE KEY UPDATE in Sql Server
- What happens when I exhaust a bigint generated key? How to handle it?
- Convert SQL Server query to MySQL [duplicate]
- comparison of truncate vs delete in mysql/sqlserver [duplicate]