Viewing 15 posts - 2,506 through 2,520 (of 4,820 total)
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
June 26, 2017 at 1:18 pm
The sub-report is a statement, the...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
June 26, 2017 at 1:13 pm
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
June 26, 2017 at 1:10 pm
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
June 26, 2017 at 1:05 pm
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
June 26, 2017 at 12:57 pm
Jeff,
Thanks for the test rig. Yes, the triangular join isn't pretty. I chose to take a look at modifying it to have just a single character visitor so...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
June 26, 2017 at 12:28 pm
As Luis has pointed out, Oracle and SQL Server are rather different in how their cursors operate. In the "stateless" world of Dot Net, a cursor on SQL Server simply...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
June 26, 2017 at 11:45 am
A couple of thoughts:
1.) Data Type for the package variable @[User::ValidationFlag] - Boolean or Int32 ?
You might need to make that Boolean for best results, but just...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
June 23, 2017 at 2:12 pm
Okay, now that I've had some time to mess with it, here's a working solution:USE LOCAL_DB;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.DailyVisits', N'U') IS NOT NULL Steve (aka sgmunson) 🙂 🙂 🙂
BEGIN
Rent Servers for Income (picks and shovels strategy)
June 23, 2017 at 10:07 am
And for those willing to take a further look, here's a better formatted copy of the query:USE LOCAL_DB;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.DailyVisits', N'U') IS NOT...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
June 22, 2017 at 9:22 am
I don't know if the actual solution is even correct. If the comparison is from one day to the next, then it appears that the "Removed" column is not correct...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
June 22, 2017 at 9:21 am
Then why pivot in the first place? As to eliminating NULL values, any form of aggregation can do that, so the question is what data type does the NULL value...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
June 22, 2017 at 9:04 am
Just for gits and shiggles, I figured I'd try this on for size, and try another option based on Jeff Moden's DelimitedSplit8K function.
Here's the function with the delimiter...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
June 21, 2017 at 9:37 am
My previous post needed a few edits to the query to get the correct results. FYI, in case you saw it in a previous version.
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
June 21, 2017 at 7:00 am
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
June 21, 2017 at 6:46 am
Viewing 15 posts - 2,506 through 2,520 (of 4,820 total)