Viewing 15 posts - 3,691 through 3,705 (of 15,381 total)
cbrammer1219 (10/6/2014)
Yes I did, and the example you provided did not help, but thanks for your attempt.
Cool. Glad that you figured out a solution. You could simplify your query to...
October 6, 2014 at 2:35 pm
cbrammer1219 (10/6/2014)
select distinct
extension
from tblEmpData
where LEN(extension) > 3 and extension not like '6%' and DEPARTMENT like 'Service%'
union all
select distinct
case
when agent_id is not null...
October 6, 2014 at 2:24 pm
cbrammer1219 (10/6/2014)
October 6, 2014 at 1:56 pm
jvkondapalli (10/6/2014)
We have Identical hardware on two servers. Also, Index fragmentation and statistics are same. But, Execution plan is different for the same query.
Server 1 was generating bad plan....
October 6, 2014 at 1:18 pm
Something like this if I understand what you are after.
SELECT AGENT_ID
FROM [AA_Helper].[dbo].[tblEmpData]
where AGENT_ID is not null
group by AGENT_ID
union all
SELECT agent_id2
FROM [AA_Helper].[dbo].[tblEmpData]
where agent_id2 is not null
group by agent_id2
Now unless you include...
October 6, 2014 at 12:14 pm
cbrammer1219 (10/6/2014)
;with
csServiceExtAgentID(Extension) as
(SELECT DISTINCT
CASE WHEN [AGENT_ID] is not null then AGENT_ID end as extension
FROM...
October 6, 2014 at 12:10 pm
LittleDuck (10/6/2014)
I'm trying to create some SQL to then run a Cognos report. This is what I have so far but I am finding that every few runs...
October 6, 2014 at 12:05 pm
Here is a hilarious video. Anybody involved in Scouting should appreciate this. I am sure there are others involved with scouting besides Grant and myself. http://www.youtube.com/watch?feature=player_embedded&v=mgmbwRgfVhc
October 3, 2014 at 8:21 am
Ed Wagner (10/2/2014)
Sean Lange (10/2/2014)
Ed Wagner (10/2/2014)
Sean Lange (10/2/2014)
Ed Wagner (10/2/2014)
BWFC (10/2/2014)
Sean Lange (10/2/2014)
Ed Wagner (10/2/2014)
whereisSQL? (10/2/2014)
SQLRNNR (10/2/2014)
Ed Wagner (10/2/2014)
djj (10/2/2014)
Ed Wagner (10/2/2014)
SQLRNNR (10/2/2014)
sinewTendon
Bone
Bad
Sheep
Wool
Warm
Fuzzies
Sofa (from 1970 ;-))
Divan
Velour (ack)
Corduroy (more ack)
Jeans...
October 2, 2014 at 2:03 pm
Ed Wagner (10/2/2014)
Sean Lange (10/2/2014)
Ed Wagner (10/2/2014)
BWFC (10/2/2014)
Sean Lange (10/2/2014)
Ed Wagner (10/2/2014)
whereisSQL? (10/2/2014)
SQLRNNR (10/2/2014)
Ed Wagner (10/2/2014)
djj (10/2/2014)
Ed Wagner (10/2/2014)
SQLRNNR (10/2/2014)
sinewTendon
Bone
Bad
Sheep
Wool
Warm
Fuzzies
Sofa (from 1970 ;-))
Divan
Velour (ack)
Corduroy (more ack)
October 2, 2014 at 1:55 pm
Ed Wagner (10/2/2014)
BWFC (10/2/2014)
Sean Lange (10/2/2014)
Ed Wagner (10/2/2014)
whereisSQL? (10/2/2014)
SQLRNNR (10/2/2014)
Ed Wagner (10/2/2014)
djj (10/2/2014)
Ed Wagner (10/2/2014)
SQLRNNR (10/2/2014)
sinewTendon
Bone
Bad
Sheep
Wool
Warm
Fuzzies
Sofa (from 1970 ;-))
Divan
October 2, 2014 at 1:40 pm
This is one of those rare times when you can get away without defining the scale of a varchar. When you use varchar you should ALWAYS specify the scale.
October 2, 2014 at 1:39 pm
Ed Wagner (10/2/2014)
whereisSQL? (10/2/2014)
SQLRNNR (10/2/2014)
Ed Wagner (10/2/2014)
djj (10/2/2014)
Ed Wagner (10/2/2014)
SQLRNNR (10/2/2014)
sinewTendon
Bone
Bad
Sheep
Wool
Warm
Fuzzies
October 2, 2014 at 1:21 pm
Koen Verbeeck (10/2/2014)
Sean Lange (9/29/2014)
Koen Verbeeck (9/29/2014)
Sean Lange (9/29/2014)
October 2, 2014 at 9:57 am
Viewing 15 posts - 3,691 through 3,705 (of 15,381 total)