Viewing 15 posts - 16,021 through 16,035 (of 26,486 total)
Try this:
select distinct
pat.vst_ext_id,
pat.adm_ts
from
DTR.paragon_rpt.dbo.TPM300_PAT_VISIT pat
/*
left join HPFDATA.his.dbo.ENCOUNTERS ENC
on pat.vst_ext_id = ENC.ENCOUNTER
*/
where
pat.vst_sta_cd = '14795' and
...
April 13, 2010 at 12:31 pm
Please post your code, it will help. Also, which tables have which collation?
April 13, 2010 at 12:21 pm
COldCoffee (4/12/2010)
Lynn Pettis (4/12/2010)
Basiclly:-D, Lynnn, thats very basic , isnt it.. 😛 ... wonder how the OP missed filtering the rows directly by WHERE clause..
Thinking procedurely instead of in a...
April 12, 2010 at 11:59 pm
Basiclly, something like this:
update dbo.Employee set
Salary = Salary * 1.2 -- Increase Salary by 20%
where
DeptID = 3
and Salary...
April 12, 2010 at 11:47 pm
Maxer (4/12/2010)
So NULL = 0 and NOT NULL = 1, then at the end I will add all 6...
April 12, 2010 at 3:36 pm
Does this help?
create table #TestTab (
Col1 varchar(12)
);
insert into #TestTab
select '00123456' union all
select '0012345' union all
select '00234234' union all
select '0098765' union all
select '00012345';
select
right(Col1,...
April 12, 2010 at 2:57 pm
bteraberry (4/12/2010)
April 12, 2010 at 2:35 pm
Please take some time to read the first article I reference below in my signature block. If you follow the instructions in that article you will get much better...
April 12, 2010 at 2:32 pm
CirquedeSQLeil (4/12/2010)
I have to agree with the others in that thread - I don't see the relevance to a Masters Degree and I don't see why the person would...
April 12, 2010 at 2:22 pm
bteraberry (4/12/2010)
GSquared (4/12/2010)
bteraberry (4/12/2010)
If you have an aversion for case statements you could also do
select isnull(CAST(ceiling(coalesce(Col1,Col2,Col3,Col4,Col5,Col6)) as bit), 0)😛
I'm pretty sure, if one of the values is 0, that will...
April 12, 2010 at 2:20 pm
There is no way to turn off logging. Even in the SIMPLE recovery model updates, deletes, and inserts are still logged.
April 12, 2010 at 2:07 pm
CirquedeSQLeil (4/12/2010)
GSquared (4/12/2010)
Just had a guy today who posted a whole exam, which he says "a friend needs for his masters program".
Where is that one? I think it...
April 12, 2010 at 2:05 pm
Something like this:
create table #TestCols (
Col1 int null,
Col2 int null,
Col3 int null,
Col4 int null,
...
April 12, 2010 at 1:46 pm
TAMMYAUDETTE (4/12/2010)
Company sales are down, freeze on spending and I lost 3 team members to downsizing.
Bottom line, I'm trying to do it all myself. We still need to...
April 12, 2010 at 1:37 pm
Viewing 15 posts - 16,021 through 16,035 (of 26,486 total)