Viewing 15 posts - 1,321 through 1,335 (of 5,502 total)
What are you trying to do?
It seems like you're looking for a join. Maybe something like this?
--UPDATE dbo.MasterStage
--SET Client =
...
July 6, 2011 at 2:02 pm
aaron.reese (7/6/2011)
The data gets extracted like this from the source systems in flat file format and loaded to the DW like...
July 6, 2011 at 10:46 am
duplicate post. no replies please.
Discussion already started here
July 6, 2011 at 5:36 am
jasonwi1202 (7/5/2011)
July 6, 2011 at 1:13 am
Please have a look at the CrossTab article referenced in my signature for a different way to do it.
If you need additional help, please post table def and sample data...
July 5, 2011 at 12:31 pm
I second Johns alternatives and would prefer option 2.
To be a little more specific regarding the splitter function: search for DelimitedSplit8K.
The basic concept: shred the comma delimited list into a...
July 5, 2011 at 11:33 am
pwalter83 (7/4/2011)
Thanks, Lutz, I tried but could not work out how to use a calendar date and then storing the same. Do you know if there's another way to do...
July 5, 2011 at 10:25 am
Just check the definitions (straight from BOL):
ISO_WEEK datepart : ...Each week is associated with the year in which Thursday occurs. ...
and for DATEPART(week):
...When datepart is week (wk, ww) or weekday...
July 5, 2011 at 8:39 am
Here's a slightly different approach:
select
col1,
col2,
stuff(
(select ',' + col3
from @data d2
where d2.col1=d1.col1 and d2.col2=d1.col2 and d2.col4=d1.col4
order by col3
for xml path('')
),1,1,'') col3,
col4
from...
July 5, 2011 at 1:07 am
May I kindly ask to stop the discussion at that point?
I don't see any new (question related) information added since several posts.
Let's just agree to disagree and move on.
July 5, 2011 at 12:38 am
Are you aware the year 2009 did not have a February 29th?
July 4, 2011 at 5:41 pm
It seems like you're trying to compare a varchar and a datetime data type.
Since the datetime data type has a higher precedence than varchar, the varchar value needs to be...
July 4, 2011 at 4:25 pm
An even more efficient solution might be to replace the c.u.r.s.o.r. *cough* with a set based solution. But we would need much more detailed information to help any further.
July 4, 2011 at 10:53 am
duplicate post.
original post including a number of replies.
@bhargava
Please don't cross post. Instead of open yet another thread with the very same question it would have been better to provide the...
July 4, 2011 at 10:50 am
Viewing 15 posts - 1,321 through 1,335 (of 5,502 total)