Viewing 15 posts - 46 through 60 (of 6,037 total)
Looks like tempdb is mostly used for huge cache data sets of hash joins, Cartesian product joins, and sorting in tempdb.
Sorting usually happens in tempdb when there is no memory...
_____________
Code for TallyGenerator
August 30, 2021 at 9:16 am
The script is attached to the Part 2 of the article mentioned in my 1st reply here.
_____________
Code for TallyGenerator
August 30, 2021 at 7:29 am
The script is attached to the Part 2 of the article mentioned in my 1st reply here.
_____________
Code for TallyGenerator
August 30, 2021 at 7:29 am
The script is attached to the Part 2 of the article mentioned in my 1st reply here.
_____________
Code for TallyGenerator
August 30, 2021 at 7:24 am
The script is attached to the Part 2 of the article mentioned in my 1st reply here.
_____________
Code for TallyGenerator
August 30, 2021 at 7:23 am
The script is attached to the Part 2 of the article mentioned in my 1st reply here.
_____________
Code for TallyGenerator
August 30, 2021 at 7:23 am
Adelia, what are you're struggling with?
You've been given a function which gives you all the right numbers, all you need is to incorporate those numbers into a string of the...
_____________
Code for TallyGenerator
August 30, 2021 at 5:32 am
This seems to be awfully over-complicated.
This is much shorter:
SELECT CustomerID,
CASE WHEN SUM(Cost1 + Cost2 + Cost3 + NewCost4) > 0 THEN 'Y' ELSE 'N' END AS...
_____________
Code for TallyGenerator
August 30, 2021 at 4:39 am
Your multiple views use the same tables over and over again.
For example, table [Lease] is mentioned in your query plan 20 times, [User_area] - 21 times.
I did not bother counting...
_____________
Code for TallyGenerator
August 29, 2021 at 5:59 am
SELECT *,
CASE WHEN Days > 0 then convert(varchar(10), Days) + ' Days, ' ELSE '' END
+ CASE WHEN Hours > 0 then convert(varchar(10), Hours) + '...
_____________
Code for TallyGenerator
August 26, 2021 at 2:08 pm
August 26, 2021 at 12:20 pm
If my assumption is correct, then there is a solution.
1st - let's find the latest eff_dt for each customer which is not continuous with a previous subscription period:
_____________
Code for TallyGenerator
August 17, 2021 at 5:39 am
Thanks for providing consumable data.
1112, '01/01/2017', '05/31/2021', 'BBB' --this customer has no gaps on subscription period, but there is change in product. Should provide the product subscribed when terming...
_____________
Code for TallyGenerator
August 17, 2021 at 5:19 am
+1 for StackOverFlow! I don't think its perfect by any means but its an incredible resource. They could stand some improvement for updates to software for instance, sometimes you...
_____________
Code for TallyGenerator
August 17, 2021 at 3:35 am
....
As I said before I would prefer someone that participate in discussions, but of course this is not the only thing that I would check. Generally speaking most of...
_____________
Code for TallyGenerator
August 17, 2021 at 2:35 am
Viewing 15 posts - 46 through 60 (of 6,037 total)