So here is what you want
select * from tbl
where count1 - count2 <= 10
More Related Contents:
- How to create a specific SQL Server stored procedure? [closed]
- How to query MongoDB with “like”
- Difference between numeric, float and decimal in SQL Server
- T-SQL: Deleting all duplicate rows but keeping one [duplicate]
- Fast way to discover the row count of a table in PostgreSQL
- What is SELF JOIN and when would you use it? [duplicate]
- Spark Window Functions – rangeBetween dates
- “CASE” statement within “WHERE” clause in SQL Server 2008
- SQL Server – How to lock a table until a stored procedure finishes
- How to use table variable in a dynamic sql statement?
- Are “from Table1 left join Table2” and “from Table2 right join Table1” interchangeable?
- How to create a unique index on a NULL column?
- SQL Server SELECT to JSON function
- How to count instances of character in SQL Column
- Cannot use UPDATE with OUTPUT clause when a trigger is on the table
- What’s the difference between “where” clause and “on” clause when table left join?
- DATEDIFF function in Oracle [duplicate]
- get TopN of all groups after group by using Spark DataFrame
- How to store array or multiple values in one column
- Renaming foreign-key columns in MySQL
- convert Postgres geometry format to WKT
- SQL Server Convert integer to binary string
- create custom function for date difference excluding weekends and holidays in oracle sql
- passing SQL “IN” parameter list in jasperreport
- SQL update trigger only when column is modified
- MSAccess – query to return result set of earliest rows with a unique combination of 2 columns
- The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions
- What is the meaning of SELECT … FOR XML PATH(‘ ‘),1,1)?
- SQL Sort Order with Null values last
- SQLite query, ‘LIKE’