rodeomount
Programmer
How can I translate the following to its equivalent in TSQL?
Code:
IIF(CONVERT(age, int) < 18 AND ltrim(rtrim(age)) <> '', CONVERT(1, SQL_BIT), CONVERT(0, SQL_BIT)) AS IsJuvenile
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
IIF(CONVERT(age, int) < 18 AND ltrim(rtrim(age)) <> '', CONVERT(1, SQL_BIT), CONVERT(0, SQL_BIT)) AS IsJuvenile