db.music.find({deleted: {$ne: true}});
the above code is in mongo db
I want to know how to write the equivalent for this in sql
thank you
select * from music where deleted != true;
or, optimized:
select * from music where deleted == false;
Depending on the version of SQL, the false could be 'false', 0 or '0'
Assuming:
use my.db at the beginning of your script)deleted column is of type boolean or bit.