sql query not equal to code example
Example 1: mysql not equal
SELECT book_name
FROM book_mast
WHERE pub_lang != "English";
Example 2: sql not equal
<> Not equal. Note: In some versions of SQL this operator may be written as !=
Example sql query:
1) Selecting groceries where price is not 20
SELECT * FROM Grocery WHERE Price <> 20;