Viewing 15 posts - 5,461 through 5,475 (of 8,731 total)
I'm leaving 3 possible options. Please don't cross post as it will only fragment the answers.
SELECT String,
STUFF( String, 1, CHARINDEX( ',', String), ''),
...
December 1, 2014 at 11:55 am
Read the following articles to know how to pivot data using cross tabs and how to make it dynamic.
http://www.sqlservercentral.com/articles/T-SQL/63681/
http://www.sqlservercentral.com/articles/Crosstab/65048/
Here's an incomplete example:
SELECT zakatDescrp,
SUM(CASE WHEN YEAR(paymentDte) =...
December 1, 2014 at 11:40 am
Read the article linked in my signature. You're not giving the complete picture and I'm certain that this isn't the first time you've been asked to do so.
December 1, 2014 at 10:14 am
Please post DDL, sample data and expected results based on that sample data.
December 1, 2014 at 9:45 am
djj (12/1/2014)
Could you not just have a "CASE WHEN Expct_Delv = '01/01/1753' THEN NULL ELSE Expct_Delv END"?
Why not use NULLIF() instead of the explicit CASE?
December 1, 2014 at 9:39 am
This is one way of doing it.
SELECT String,
CASE WHEN String LIKE '[0-9][0-9][0-9][0-9]/[a-zA-Z][a-zA-Z][a-zA-Z][a-zA-Z][a-zA-Z][a-zA-Z][a-zA-Z][a-zA-Z]'
THEN 'True' ELSE 'False' END
FROM( VALUES
...
December 1, 2014 at 9:37 am
What's the issue? Where's the select statement? Who has the crystal ball?
December 1, 2014 at 9:24 am
Steve Jones - SSC Editor (12/1/2014)
Ed Wagner (11/30/2014)
Koen Verbeeck (11/27/2014)
Most of the succesful forums/boards/whatever have this....
December 1, 2014 at 9:05 am
How about using the Quirky Update? This method has been mentioned as "unsupported" but that's just a special reason to understand and test correctly. Read the following article to fully...
December 1, 2014 at 8:26 am
Duplicate post. All answers in here: http://www.sqlservercentral.com/Forums/Topic1640241-392-1.aspx
December 1, 2014 at 6:58 am
Hi, could you post DDL and sample data to give you a complete solution?
The common way before 2012+ versions is to have a self join using row_number() over(partition by customer...
December 1, 2014 at 6:58 am
SQLRNNR (11/28/2014)
Koen Verbeeck (11/28/2014)
Luis Cazares (11/27/2014)
Koen Verbeeck (11/27/2014)
kaspencer (11/27/2014)
November 28, 2014 at 10:08 am
I don't know much about SSRS (other than spell it), but this could give you an idea.
=UCase(Left(Fields!Event_Type.Value)) & LCase(Right(Fields!Event_Type.Value, Len(Fields!Event_Type.Value) - 1))
November 28, 2014 at 10:04 am
Quick thoughts:
1. Change your splitter to the DelimitedSplit8K or DelimitedSplitN4K[/url]
2. Read Gail's article about catch-all queries. http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/
3. Instead of using (SELECT COUNT(*) FROM #TCut), use LEN(@Cut). Applies for every similar...
November 28, 2014 at 9:56 am
Jampandu,
Adding 2 letters means that I'll have to do additional testing and I have some urgent work to do. Try understanding the code and the solution should become evident.
Aaron,
I've never...
November 28, 2014 at 8:46 am
Viewing 15 posts - 5,461 through 5,475 (of 8,731 total)