Viewing 15 posts - 106 through 120 (of 167 total)
I just did this..
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 then...
October 6, 2014 at 2:14 pm
Because there is also a extension field, sorry guys copied the wrong query. I am trying to put extension, agent_ID and agent_ID into extension, sometimes one extension will have more...
October 6, 2014 at 1:46 pm
Still didn't work...Not getting all of the agent_id2's
October 6, 2014 at 11:31 am
I created one cte, and then union all the select of agent_ID2..Like this
;with
csServiceExtAgentID(Extension) as
(SELECT DISTINCT
CASE WHEN [AGENT_ID] is not null then AGENT_ID end as extension
FROM [AA_Helper].[dbo].[tblEmpData]
...
October 6, 2014 at 9:28 am
No...that just concatenates the 2 I want it to create it as a second row
11111
22222
33333
October 6, 2014 at 9:18 am
Thank You, this explained just what I needed..
September 23, 2014 at 9:11 am
I need to be able to insert more than just one column, I have 6 staging tables that I have formatted the data to conform to these values...
I've created stored...
September 23, 2014 at 9:02 am
That did the trick, putting the single ticks around the number.
Thank You
August 12, 2014 at 12:06 pm
Check the permissions of the account executing the report, you are more than likely using your credentials to execute the report, you may have to give the report account access...
July 28, 2014 at 8:50 am
I created the master contacts table to eliminate the remote call, It does have dups, only if the Company Name or Contact name is spelled differently. I am however still...
July 10, 2014 at 2:38 pm
It ran in 31 seconds, WAY FASTER! Here's the data. I have not implemented the Master Contacts table.
July 7, 2014 at 12:15 pm
I did that and it worked I got a lot of dups, so I did a MAX(cStaging.ID), and grouped that query of course, to avoid error, but then I got...
July 7, 2014 at 9:15 am
When using your proc here I get this error???
Cannot insert the value NULL into column 'CompanyName', table 'tempdb.dbo.#contacts___________________________________________________________________________________________________________000000000173'; column does not allow nulls. INSERT fails.
July 7, 2014 at 8:23 am
wBob (7/3/2014)
July 7, 2014 at 8:12 am
Can a Index be on the Identity that is created on the insert?
July 2, 2014 at 10:58 am
Viewing 15 posts - 106 through 120 (of 167 total)