Databases for Windows  /   Database Blog  /   Organizer Advantage, Handy Library, SQL Tutor  /   SQL Select   /  SQL Tutor, Select Where Clouse, Not Equal
28/05/2024

SQL SELECT, WHERE clause, <> operator


SQL SELECT, WHERE clause, <> operator

When you define the condition in the WHERE clause, you can use the <> operator.

Where condition, <> operator, syntax

SELECT * FROM books WHERE cost <> ‘value1’;

SELECT title, author FROM books WHERE author <> ‘value1’;

SELECT statement with WHERE, <> operator, examples

SELECT title, author FROM books WHERE cost <> ’20.25’;

Copyright © 2024 · All Rights Reserved · PrimaSoft PC