Viewing 15 posts - 2,146 through 2,160 (of 4,087 total)
Remove the GROUP BY. You're getting totals for every status when you only want the grand total.
Drew
November 28, 2016 at 11:40 am
Have you tried adding a ROOT directive? That seems to remove most of the xmlns prefixes, but it may not give you the structure that you need.
Drew
November 25, 2016 at 11:07 am
The xlmns is being included because you've specified the XSINIL directive. If you don't want it included, you'll have to get rid of the XSINIL directive.
Drew
November 25, 2016 at 7:48 am
RonMexico (11/23/2016)
The example I provided is code for a report we are taking over from another group. The first goal is to convert it to ANSI-92 style joins...
November 23, 2016 at 12:38 pm
As a quick test, I decided to compare doing a direct T-SQL CAST versus using XML to do the CAST. Also, the XML is essentially doing a double cast:...
November 23, 2016 at 11:42 am
I have to ask WHY are you doing your conversions through XML?
The problem is that column Y is in scientific notation, and the xml does not recognize scientific notation as...
November 23, 2016 at 11:08 am
ETL is a process, not a tool. You'll need to let us know what tool you are using for your ETL process.
SELECT *
INTO TableName
FROM SourceTable
uses the same data types...
November 22, 2016 at 3:49 pm
sharonmtowler (11/21/2016)
THIS WORKED LIKE A CHARM !!
It may have "worked" but it is likely to perform horribly. You should compare it to LEAD/LAG before settling on that as the...
November 21, 2016 at 12:31 pm
CELKO (11/21/2016)
Also the code you posted implies that you have bit flags in SQL. That was assembly language and has no place in this language.
This language is T-SQL, not...
November 21, 2016 at 11:30 am
There are three issues that I see immediately.
1) In your CTE, you do not provide an alias for the ROW_NUMBER() expression.
2) You should be using LEAD/LAG instead of ROW_NUMBER() with...
November 21, 2016 at 8:54 am
He didn't like the answers he got on his original thread, so he started another thread. I pointed out repeatedly that he already had the answer he was seeking...
November 17, 2016 at 4:29 pm
The following two expressions are essentially equivalent.
COALESCE (ISNULL(k.Application, ''), ISNULL(n.Application, ''))
ISNULL(k.Application, '')
COALESCE evaluates the expressions in order until it finds one that is not null or it runs out of...
November 17, 2016 at 2:40 pm
Viewing 15 posts - 2,146 through 2,160 (of 4,087 total)