Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Case Statement using LIKE and LIKE

$
0
0

Hi 

Can you use the LIKE twice within a CASE statement and if so, how is it written please?

case when factory LIKE '%QT' AND factory LIKE '%TT' THEN 1 ELSE 0 END AS FACTORY_NEW


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>