Is there a trend towards pure SQL lately? Not that i m complaining (quite the opposite but let me not jinx it), but it seems we might stop seeing a new ORM each week for a while.
> WHERE 0 > 1 and 0 are the most basic Boolean statements. This block guarantees that no rows will be returned. This doesn't work in SQL Server and it has always bothered me. But is it part of any SQL standard? The book also says this is an invalid where clause: > WHERE '%obert%' LIKE first_name > More than one wildcard is fine. But the pattern has to come after the LIKE operator. This one is probably a bug/mistake, but it's definitely not invalid in the SQL language.
Comments (112) 38 threads
Earlier commentsI used the MIT license for the interactive SQL tutorial I built ( https://www.sqlteaching.com/ )
> WHERE 0
> 1 and 0 are the most basic Boolean statements. This block guarantees that no rows will be returned.
This doesn't work in SQL Server and it has always bothered me. But is it part of any SQL standard?
The book also says this is an invalid where clause:
> WHERE '%obert%' LIKE first_name
> More than one wildcard is fine. But the pattern has to come after the LIKE operator.
This one is probably a bug/mistake, but it's definitely not invalid in the SQL language.
All comments shown.
Couldn't load more comments. Check your connection and try again.