0

I don't know why it doesn't work

Complete to extract information about the records that have an id different from 1 SELECT * FROM orders WHERE customer_id != 1

2nd Aug 2023, 3:07 AM
Akhmad Fajar
Akhmad Fajar - avatar
3 Answers
+ 4
Check the spellings of table name and column name again.. Put a semicolon after the statement. It not work then may be it's a bug so then report it by info@sololearn.com along with screen shots.
2nd Aug 2023, 4:02 AM
Jayakrishna 🇼🇳
+ 3
It may be that the brand of SQL does not accept != for not equal. Instead, use <>.
2nd Aug 2023, 6:24 AM
Brian
Brian - avatar
0
SELECT * FROM orders WHERE customer_id <> 1
3rd Aug 2023, 3:47 AM
Sam Attal
Sam Attal - avatar