Viewing 15 posts - 6,946 through 6,960 (of 8,753 total)
Good stuff!
Out of curiosity, what is the output of
select @@version
after the fix?
😎
September 25, 2014 at 9:41 am
waeva (9/25/2014)
yeah, i guess the answer was simple 🙂
Nicely put!
😎
September 25, 2014 at 9:38 am
Here is a simple solution using CTE to build the full month-account set first and then join the balance table to it.
😎
USE tempdb;
GO
SET NOCOUNT ON;
GO
;WITH ACCOUNT_LIST AS
(
...
September 24, 2014 at 11:45 pm
Quick question, is the database in SIMPLE recovery mode?
😎
September 24, 2014 at 10:55 pm
Quick thought to rule out some problems, have you checked the logs for error messages or the output of DBCC CHECKDB?
😎
September 24, 2014 at 9:55 pm
goldstone.david (9/24/2014)
SELECT * FROM...
September 24, 2014 at 3:23 pm
busraker (9/24/2014)
September 24, 2014 at 3:18 pm
goldstone.david (9/24/2014)
Wow, thank you. Would I need to enter all the data from the table, ie. 1m rows? or can I just reference the table?
Just replace the BASE_TABLE CTE with...
September 24, 2014 at 3:16 pm
There is a big difference in the results when doing the calculation on geometry or geography, look at this examples and results
😎
Geometry
USE tempdb;
GO
DECLARE @GEOM TABLE
(
GNAME...
September 24, 2014 at 2:31 pm
goldstone.david (9/24/2014)
September 24, 2014 at 1:54 pm
busraker (9/24/2014)
I'm dealing with ten of thousands of trips a year so every bit helps.Russ
Sounds a little like travelling salesman here:-)
This isn't too high of a volume, cannot say much...
September 24, 2014 at 12:11 pm
Jeff Moden (9/23/2014)
ramineni.suresh661 (9/23/2014)
Hi Jack ,Thank you very much for your response , your example solved my issue
Do you understand how it works so you can support it in the...
September 24, 2014 at 12:05 pm
Lynn Pettis (9/23/2014)
Eirikur Eiriksson (9/23/2014)
😎
USE tempdb;
GO
SET NOCOUNT ON;
;WITH SAMPLE_DATA ([ID number],DateOfArrival,DateOfDeparture)
AS (SELECT * FROM (VALUES
(2031,'2014-03-20','2014-03-26')
,(1056,'2014-04-29','2014-05-03')
...
September 24, 2014 at 11:58 am
Firstly, Using 8K limited functions will of course truncate larger values, does your production data exceed that limit? Secondly, please comply to Chris's request on DDL, sample and output.
😎
September 24, 2014 at 11:54 am
Viewing 15 posts - 6,946 through 6,960 (of 8,753 total)