A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
Hi @Emilee Weir ,
Welcome to microsoft TSQL Q&A forum!
Could you please share us your table structure (CREATE TABLE …) and some sample data(INSERT INTO …)
along with your expected result? So that we’ll get a right direction and make some test.You can provide a minimal example for our reference.
If the table vw_ALL_RECORDS is included after the from clause,maybe you can also try:
where (cast([STR_ENG1] as int) + cast([STR_ENG2] as int) +
cast([STR_ENG3] as int) +
...
cast([STR_WING_ROT] as int)= 1
Regards
Echo
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.