Quantcast
Channel: SQL query help pls
Browsing latest articles
Browse All 8 View Live

SQL query help pls

Thanks a Lot all for help

View Article


SQL query help pls

Try this. createtable #temp1(patno int, hospno int, roomcode bit)createtable #temp2(patno int, hospno int, proc_code int)createtable #temp3(proc_code int, department int)insertinto #temp1select 1, 123,...

View Article


SQL query help pls

update    t1 set    roomcode = 1 from    #temp1 t1 inner join #temp2 t2 on (t1.patno = t2.patno and t1.hospno = t2.hospno) inner join #temp3 t3 on (t3.proc_code = t2.proc_code)

View Article

SQL query help pls

Using the data supplied by venku009, my idea can be transformed this way:createtable #temp1(patno int, hospno int, roomcode bit)createtable #temp2(patno int, hospno int, proc_code int)createtable...

View Article

SQL query help pls

thnks a lot, cud you pls help with the update query if possible. its a bit confusing for me

View Article


SQL query help pls

create table #temp1(patno int, hospno int, roomcode bit) create table #temp2(patno int, hospno int, proc_code int) create table #temp3(proc_code int, department int) insert into #temp1 select 1, 123,...

View Article

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

View Article

SQL query help pls

i have the follwoing data patno hospno Roomcode1   1231   124 i have another table patno hospno  proc_code 1     123      2561     123       2581     123       3001  124      500i have  another table...

View Article

Browsing latest articles
Browse All 8 View Live


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