Viewing 15 posts - 6,541 through 6,555 (of 8,753 total)
N_Muller (11/20/2014)
November 21, 2014 at 12:40 am
...
FROM
Table1 AS a
CROSS APPLY data.nodes('.../Node1') AS T1(F) -- part 1
LEFT JOIN Table1 AS b
CROSS APPLY data.nodes('.../Node2') AS T2(F) -- part 2
ON b.ID = a.ID
Quick thought, this doesn't look right...
November 20, 2014 at 10:28 pm
peacesells (11/20/2014)
Thanks Eririkur. This certainly gives me a good direction. What if there were multiple secures within a SecurEvent?
Multiple "Secure/SecureType" elements will multiply the outer/parent "SecureEvent" element, as this is...
November 20, 2014 at 9:57 pm
Koen Verbeeck (11/20/2014)
This means people have to vote for me (or other people, but preferable me):
http://www.mssqltips.com/MSSQLTipsAuthorVoting.asp
Note that you...
November 20, 2014 at 1:03 pm
N_Muller (11/20/2014)
November 20, 2014 at 8:58 am
Quick thought, if this type of queries are frequent, consider adding a geography column to the tables.
😎
Here is a far more efficient way of producing the same results
USE tempdb;
GO
SET NOCOUNT...
November 19, 2014 at 10:55 pm
jasona.work (11/19/2014)
Not even the end of November, and already we've got here in Detroit, Michigan, about 1/2"...
November 19, 2014 at 12:51 pm
Quick cross-tab suggestion
😎
USE tempdb;
GO
SET NOCOUNT ON;
;WITH SAMPLE_DATA (ColumnA,ColumnB) AS
(
SELECT 1 AS ColumnA,88 AS ColumnB UNION ALL
SELECT 2, 99 UNION ALL
...
November 19, 2014 at 8:16 am
Quick solution which uses a recursive CTE, should be enough to get you passed this hurdle
😎
USE tempdb;
GO
SET NOCOUNT ON;
DECLARE @TXML XML =
'<SecureEvent EDate="08/04/2011" ID="47854303" InternalSecureEventID="154472406">
<SecureEventDate>08/04/2011</SecureEventDate>
<TimestampCreate>08/04/2011...
November 18, 2014 at 7:36 pm
nikki123 (11/18/2014)
SELECT
HEADER.DATA.value('@CLM_ID', 'NVARCHAR(max)') AS CODE,
LINE.DATA.value('@CLM_ID','NVARCHAR(MAX)') AS CLM_IDLine,
DIAG.DATA.value('@DX_code','NVARCHAR(MAX)') as DX
FROM ...
November 18, 2014 at 7:35 am
serg-52 (11/18/2014)
kriskumark96 (11/17/2014)
The three queries is of the same tables with different where condition are used , so that we cannot have a join or cross join on it
Or
Is there...
November 18, 2014 at 3:33 am
Evil Kraig F (11/17/2014)
Eirikur Eiriksson (11/17/2014)
The namespace is implicitly created when the variable is declared, no way of telling the difference between user::var and usre::var when you call var.
Okay, you...
November 18, 2014 at 3:21 am
kriskumark96 (11/17/2014)
Hi,The three queries is of the same tables with different where condition are used , so that we cannot have a join or cross join on it
There is nothing...
November 18, 2014 at 1:57 am
Evil Kraig F (11/17/2014)
Ah, that. The chioces are User:: and System::. Why would I wan't to...
November 17, 2014 at 3:38 pm
nikki123 (11/17/2014)
Got an other issue how do i get to the node Line , use d a OUTERAPPLY but the data is showing null
SELECT
x.item.value('@CLM_ID', 'NVARCHAR(max)') AS CODE,
g.line.value('@CLM_ID','NVARCHAR(MAX)') as...
November 17, 2014 at 3:03 pm
Viewing 15 posts - 6,541 through 6,555 (of 8,753 total)