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? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -