sql server - Is there a ternary operator in T-Sql? -


or alternatives implement next query:

select *   table   isexternal = @type = 2 ? 1 : 0` 

use case:

select * table isexternal = case @type when 2 1 else 0 end 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

java - How to create Table using Apache PDFBox -

mpi - Why is MPI_Bsend not returning error even when the buffer is insufficient to accommodate all the messages -