Viewing 15 posts - 316 through 330 (of 444 total)
KoldCoffee (11/22/2014)
Serg, I am fine with the lowered accuracy given I am not querying for locations at either north or south pole but I can't get that sample query to...
November 24, 2014 at 1:53 am
Try
----Sample data
-- timeclock machines log
declare @TIME_LOG table (SNO int, nUserID int, readerid nvarchar(20), dtdatetime Datetime);
insert @TIME_LOG
select 113645, 320417,'in_a', '2014-11-2 8:21:00'
union select 113648, 320417,'out_b', '2014-11-2 9:21:00'
union select 113649, 320417,'in_a',...
November 24, 2014 at 1:43 am
ChrisM@Work (11/21/2014)
...
FROM
Table1 AS a
LEFT JOIN Table1 AS b
ON b.ID = a.ID
CROSS APPLY a.data.nodes('.../Node1') AS T1(F) -- part 1
CROSS APPLY a.data.nodes('.../Node2') AS T2(F) -- part 2
And fails with...
November 21, 2014 at 6:32 am
btio_3000 (11/20/2014)
November 21, 2014 at 4:09 am
tamer.h (11/20/2014)
sorry i didn't understand what do you mean by:
"Not certain on 'L' ,'0' logic.
For a given month"
and would you please explain what...
November 21, 2014 at 2:20 am
Sean Lange (11/20/2014)
serg-52 (11/20/2014)
You posted code that contained a function ufn_Tally2 but you didn't post it. Do you really have a function that creates a tally table on the fly?...
November 21, 2014 at 2:10 am
KoldCoffee (11/20/2014)
November 21, 2014 at 1:43 am
ksatpute123 (11/20/2014)
I sure did a smart thing by adding the SQL SERVER 2008 R2 reference.
🙂
Being precise really cann't be bad thing.
November 20, 2014 at 7:26 am
Not certain on 'L' ,'0' logic.
For a given month
declare @TIME_LOG table (SNO int, nUserID int, dtdatetime Datetime)
insert @TIME_LOG
select 113645, 320417, '2014-11-2 8:21:00'
union select 113648, 320417, '2014-11-2 9:21:00'
union select...
November 20, 2014 at 7:15 am
Looks like JOIN .. ON introduces parenthesis
SELECT
CASE WHEN F1.value('...') IS NOT NULL THEN F1.value('...')
ELSE F2.value('...') END
FROM
...
November 20, 2014 at 3:43 am
You may wish to add
and geo.latitude between lll.lead_lat + 250*1610/110.0 and lll.lead_lat - 250*1610/110.0
see
http://en.wikipedia.org/wiki/Latitude#Length_of_a_degree_of_latitude
and create index on geo.latitude.
November 20, 2014 at 1:45 am
Koen Verbeeck (11/20/2014)
I'd argue ROWCOUNT_BIG is an odd one as well, as it is not calculated over the current result set, but over the results of a previous query.
+1
And...
November 20, 2014 at 12:55 am
Thanks, good question.
I was not sure but rather had an impression that sending parameter of the UDT declared in the current DB to the proc in the other DB must...
November 19, 2014 at 2:47 am
To calculate total cost of conponents for the item (not including cost of the item itself) try
- test data
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[ItemCost](
[ItemNo] [varchar](15)...
November 18, 2014 at 6:22 am
OK. Can that two rows contain 3 distinct codes and dates, i.e.
1 CID 01/03/2015 AH 01/25/2015
1 CIE 01/01/2015 NULL NULL
?
November 18, 2014 at 6:10 am
Viewing 15 posts - 316 through 330 (of 444 total)