Viewing 15 posts - 2,161 through 2,175 (of 3,738 total)
eric.lyons (11/7/2011)
alter table company
add [account number] as left(companyname,6)
2) Then create the index for it.
3) Change your sql to...
November 7, 2011 at 12:20 pm
J Livingston SQL (11/7/2011)
is this part of the code correct?...not sure this is what you want.
No that was wrong, I found and corrected it after I made the post.
Thank goodness...
November 7, 2011 at 10:08 am
Yes, I had errors in my CASE Statement and I corrected them.
I noticed after making the post.
Sorry, i should have edited my post sooner.
I appreciate the help
November 7, 2011 at 9:17 am
ChrisM@Work (11/7/2011)
November 7, 2011 at 9:15 am
Edited: I spoke too soon, the problem is with my CASE Statements.
This is unfortunate but when I ran the SQL that included the Temp Table I thought that I was...
November 7, 2011 at 8:21 am
It works perfectly, thanks!
November 7, 2011 at 7:07 am
ChrisM@Work (11/7/2011)
1.Change FROM #TXActivityTemp to FROM () d
2.Copy...
November 7, 2011 at 7:04 am
kramaswamy (11/7/2011)
WITH cte AS
(
SELECT Comp.CompanyName, LEFT(Comp.CompanyNumber, 6) AS [Account Number], Quote.QuoteID,
MIN(Comp.PhoneNumber) AS Phone, MIN(CoTyp.AgencyTypeDescription) AS Affinity,
MIN(MktTer.MarketingTerritoryID) AS Territory, MIN(Co.CountyName) AS County,
...
November 7, 2011 at 6:31 am
ChrisM@home (11/6/2011)
SELECT CompanyName, [Account Number], MIN(Phone) AS Phone,
MIN( Affinity) AS Affinity,MIN(Territory) AS Territory,
MIN(County) AS County,SUM(PriorYear)AS PriorYear, SUM(CurrentYear)AS CurrentYear,
...
November 7, 2011 at 5:46 am
ChrisM@home (11/6/2011)
What's wrong with a derived table?
Chris,
I had tried that earlier but I made a silly error.
Thanks!:cool:
November 7, 2011 at 5:10 am
John Esraelo-498130 (11/6/2011)
November 6, 2011 at 12:39 pm
kramaswamy (11/4/2011)
November 5, 2011 at 3:29 pm
kramaswamy (11/4/2011)
November 5, 2011 at 3:29 pm
Jack Corbett (11/4/2011)
Here's a post by Jamie Thompson about it, http://consultingblogs.emc.com/jamiethomson/archive/2006/11/19/SSIS_3A00_-Using-temporary-tables.aspx
Thanks Jack.
That is an excellent article 😎
November 4, 2011 at 4:08 pm
Jack Corbett (11/4/2011)
Can't you just use the SQL Statement in the...
November 4, 2011 at 2:54 pm
Viewing 15 posts - 2,161 through 2,175 (of 3,738 total)