Quantcast
Viewing all articles
Browse latest Browse all 8

SQL query help pls

select T.*, casewhenexists (select 1 from ChargeMaster M 
innerjoin PatnoHospNo P on M.Proc_Code = P.Proc_Code where M.Department = 701 and P.PatNo = T.PatNo) then 1 else 0 endas Mark 
from myFirstTable T

 

You can use similar query for update.


For every expert, there is an equal and opposite expert. - Becker's Law


My blog


Viewing all articles
Browse latest Browse all 8

Trending Articles



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