Viewing 15 posts - 10,591 through 10,605 (of 13,876 total)
ChrisM@Work (7/25/2012)
Don't forget that TOP is meaningless without ORDER BY, and...
July 25, 2012 at 5:35 am
Jeff Moden (7/24/2012)
SGT_squeequal (7/24/2012)
you could achieve your reslutls by using patindex
PATINDEX('%[0-9]%',col1)=0
if there is a value between 0 and...
July 24, 2012 at 5:30 pm
I agree with Jack.
But I can envisage a revolting non-programming option.
Create a derived column which is a massive nested replace - to replace any of 0, 1, 2, ...,...
July 24, 2012 at 10:43 am
Are SQL Server tables involved at any point in this process? Or is this a file-to-file job?
July 24, 2012 at 10:35 am
I think you meant:
"Stll nutin 2 wk wit 4 ddl n smpl dta"
July 24, 2012 at 7:36 am
I have, though not enough to pretend that I am particularly adept with them.
But what I meant is that XML files are so flexible in structure that the XML source...
July 24, 2012 at 7:05 am
We've done that. The Datepart solution works in pure SQL Server.
July 24, 2012 at 4:55 am
84gopi (7/24/2012)
My report is cross tab & uses relational modelling now tel me how can I get the required week numbers in my cross tab report based on the season...
July 24, 2012 at 4:46 am
Sorry - should have made my answer a bit clearer.
July 24, 2012 at 4:25 am
select datepart(week,getdate())
July 24, 2012 at 4:05 am
labri (7/24/2012)
Thank you for your answer. Unfortunately, it doesn't work for users that I have to replace both values.But thank you for your time.
With sample data and DDL someone...
July 24, 2012 at 3:25 am
Koen Verbeeck (7/23/2012)
Jeff Moden (7/23/2012)
July 24, 2012 at 2:36 am
Aha: XMLSQLNinja - just what the doctor ordered! 🙂
That's a cool solution - can you explain how it works?
And if you've got time, perhaps you could also have a go...
July 24, 2012 at 1:49 am
Beat me! And I missed the IsNull on ColC, oops.
July 24, 2012 at 1:42 am
You need a nested if...then construction along the lines of
IsNull(ColA)? (IsNull(ColB)? ColC: ColB) : ColA
July 24, 2012 at 1:41 am
Viewing 15 posts - 10,591 through 10,605 (of 13,876 total)