In PostgreSQL I can issue next query:
=> select 6 between 5 and 7;
?column?
----------
t
(1 row)
But if I run similar expression in Microsoft SQL server I get the error:
> select 6 between 5 and 7;
Server message number=156 severity=15 state=1 line=8 server=WIN-P5BDUH0CU0N text=Incorrect syntax near the keyword 'between'
How to select from expression in Microsoft SQL server?
1条答案
按热度按时间4xrmg8kj1#
Thank you to @ThomA and @Charlieface. Next expression works fine for me:
@Horaciux query is what I was looking for: