Viewing 15 posts - 16 through 30 (of 72 total)
Sorry, just saw your way using cte...let me try this and I will get back to you.
Thanks again.
May 18, 2010 at 4:29 pm
Hi Lowell,
I see your point. As soon as I ran that query using a temp table instead, it ran like in 2 secs. But my problem is I would have...
May 18, 2010 at 4:28 pm
Thanks. I will issue a ticket then.
April 13, 2010 at 11:43 am
Just to be more specific about the sql server 2005 that I am using,
Product version - 9.00.4028.00
Product Level - SP3
Edition - Standard Edition
April 13, 2010 at 9:11 am
Thanks John! I found an article on codeproject which helped me a lot. But thanks for your help too.
http://www.codeproject.com/KB/database/Pivot2Columns.aspx
Sid
January 14, 2010 at 1:16 pm
I think I got to a point where I can display the result by date.
SELECT[1/7/2009],
[1/9/2009],
[1/11/2009],
[1/13/2009],
[1/15/2009]
FROM(SELECT[Date],
[Count],
MediaBuyer
FROM#t
) p PIVOT (SUM([Count])
FOR [Date]
IN ([1/7/2009], [1/9/2009], [1/11/2009], [1/13/2009], [1/15/2009])
) As pvt
I...
January 14, 2010 at 9:42 am
Now I get it. Thanks a lot for your help on this.
December 14, 2009 at 3:12 pm
Sorry to confuse you but I would need to update tableB with data from tableA thats not in tableB.
Since, in this case, a dealerid and ISCI fields make a row...
December 14, 2009 at 2:48 pm
I am sorry not to provide you enough samples. In most cases, multiple dealers have the same ISCI codes.
Your example:
DECLARE @tableA TABLE (DealerId varchar(10), ISCI varchar(10))
DECLARE @tableB TABLE (DealerId varchar(10),...
December 11, 2009 at 4:45 pm
Thanks GSquared. The only question is how would i handle for cases when a row has one zipcode. So it will be something like
ID ZipCode
1 51254
Would...
August 21, 2009 at 12:42 pm
Duh! I didn't look at the data closely after I changed the datatype to memo in access. All the zips are coming in now and I successfully imported that data...
August 19, 2009 at 10:19 am
I looked at this forum :
and did the same. First imported the data to access and then imported to Sql. This time it worked but still there is a...
August 19, 2009 at 10:09 am
Hi SilverFox,
Do I have to do that manually or is there a way to...
August 19, 2009 at 9:23 am
Hi Matt,
Thanks a bunch for the script. That worked like a charm. I tried the script and it worked great. Now,...
June 29, 2009 at 10:27 am
Viewing 15 posts - 16 through 30 (of 72 total)