Viewing 15 posts - 31 through 45 (of 276 total)
Props to Drew. Was hoping I had kicked ass on this one, but not quite. Damn.
I'm feeling really heartbroken by the new site. This is one of the most sacred places on the Internet to me, and this feels like a significant loss. The new...
GAWD the new formatting on this site is AWFUL. Can someone please change it back? It's practically unreadable. 🙁
-- Drop target scratch table if it already exists:
IF OBJECT_ID('tempdb..#OPCantBeBothered') IS NOT NULL
DROP TABLE #OPCantBeBothered
;
-- Create scratch table:
CREATE TABLE #OPCantBeBothered
(
AccountNo INT,
VersionNo INT,
Amount INT,
StatusDate DATE
)
;
INSERT...
Andy Warren - Thursday, March 14, 2019 9:32 AM
Thanks, I didn't find that with a quick google search,...
Are you saying there is literally a "CREATE OR ALTER" feature? Or are you just using that name informally? The code examples you gave in the screenshot below appear to...
I've never actually used the Time datatype before, which is what it looks like you are using for OrderLine.duration. Based on my testing, it seems like the following should work...
Seems like it might be worth considering dumping the filtered data into its own tables as part of a daily process or something. And then querying those tables.
Not sure this is 100% relevant to your issue or not, but you might also want to check out SUM...
https://docs.microsoft.com/en-us/sql/t-sql/functions/sum-transact-sql?view=sql-server-2017
Amen! Glad someone found a hack. I knew it was just a matter of time! 🙂 Now we just await the OP's coworkers' defensive and dismissive replies... lol
Viewing 15 posts - 31 through 45 (of 276 total)