SQL | SOME Last Updated : 23 Jul, 2025 Comments Improve Suggest changes 18 Likes Like Report SQL | ALL and ANY SOME operator evaluates the condition between the outer and inner tables and evaluates to true if the final result returns any one row. If not, then it evaluates to false. The SOME and ANY comparison conditions are similar to each other and are completely interchangeable. SOME must match at least one row in the subquery and must be preceded by comparison operators. Syntax: SELECT column_name(s) FROM table_name WHERE expression comparison_operator SOME (subquery) Instructor Table: Name Department Salary Chandra Computational Biology 1 Visweswaran Electronics 1.5 Abraham Computer Science 1.3 John Electronics 1.2 Samantha Computer Science 2 Jyoti Electronics 1.2 Debarka Computer Science 2 Ganesh Computational Biology 0.9 Sample Queries and Outputs: select name from instructor where Salary > some(select Salary from instructor where dept='Computer Science'); Output: Visweswaran Samantha Debarka Explanation The instructors with salary > (salary of some instructor in the 'Computer Science' department) get returned. The salaries in the 'Computer Science' department are 1.3, 2 and 2. This implies any instructor with a salary greater than 1.3 can be included in the final result. Exercise: Try to write same query using ANY clause. Comment K kartik 18 Improve K kartik 18 Improve Article Tags : SQL SQL-Clauses-Operators Explore SQL Tutorial 6 min read BasicsWhat is SQL? 6 min read SQL Data Types 3 min read SQL Operators 4 min read SQL Commands | DDL, DQL, DML, DCL and TCL Commands 4 min read SQL Database Operations 3 min read SQL CREATE TABLE 3 min read Queries & OperationsSQL SELECT Query 2 min read SQL INSERT INTO Statement 4 min read SQL UPDATE Statement 3 min read SQL DELETE Statement 3 min read SQL - WHERE Clause 3 min read SQL | Aliases 3 min read SQL Joins & FunctionsSQL Joins (Inner, Left, Right and Full Join) 4 min read SQL CROSS JOIN 2 min read SQL | Date Functions 4 min read SQL | String functions 6 min read Data Constraints & Aggregate FunctionsSQL NOT NULL Constraint 2 min read SQL PRIMARY KEY Constraint 5 min read SQL Count() Function 7 min read SQL SUM() Function 5 min read SQL MAX() Function 4 min read AVG() Function in SQL 4 min read Advanced SQL TopicsSQL Subquery 4 min read Window Functions in SQL 6 min read SQL Stored Procedures 7 min read SQL Triggers 5 min read SQL Performance Tuning 6 min read SQL TRANSACTIONS 6 min read Database Design & SecurityIntroduction of ER Model 10 min read Introduction to Database Normalization 6 min read SQL Injection 11 min read SQL Data Encryption 5 min read SQL Backup 4 min read What is Object-Relational Mapping (ORM) in DBMS? 7 min read Like