Viewing 15 posts - 1 through 15 (of 117 total)
Thanks for the detailed answer Grant.
What I think is any organization mostly tends to use either SQL server or PostgreSQL (or in case of both, % will be very higher...
March 23, 2024 at 11:08 pm
Hi Steve, thanks but what you are providing here is calculating percentage. My ask is to get an average of 4 month percentage (or 5 or 6 month...
January 10, 2023 at 4:17 am
What's the new question?
I apologize if am not able to put my question in better way but i was looking to get average of percentages in one query.
December 1, 2022 at 5:39 pm
The original question is how to calculate average of percentages in most efficient way.
December 1, 2022 at 5:11 pm
Hi Steve, thanks but what you are providing here is calculating percentage. My ask is to get an average of 4 month percentage (or 5 or 6 month depending on...
December 1, 2022 at 3:37 pm
Is this for reporting? If you're using {SSAS Tabular, Excel, or PowerBI} then DAX is baked right in. "Use the force, Luke!"
The first book I read on DAX was...
September 5, 2022 at 12:36 am
Hello friends,
Made the new query. Here is the dim & fact tables:
Create table #dim1(attr1_id int, attr1_name varchar(100), createdate datetime default getdate())
Create table #dim2(attr2_id int, attr2_name varchar(100), createdate...
September 4, 2022 at 10:30 pm
Helo friends, hope everyone is doing good. I am working on a project where I have a big fact table having data for 8 years and has around...
August 26, 2022 at 6:22 pm
You have datetime columns - don't use between!
where businessdate between '2022-08-01' and '2022-08-31'
means return everything through '2022-08-31 00:00:00.000 (excludes that entire last day of...
August 26, 2022 at 6:07 pm
You have datetime columns - don't use between!
where businessdate between '2022-08-01' and '2022-08-31'
means return everything through '2022-08-31 00:00:00.000 (excludes that entire last day of the month...
August 25, 2022 at 10:29 pm
There's different school of thoughts over whether the identity column should be a candidate of clustered index or not (mostly in favour of having it as clustered index).
What's your generic...
June 21, 2022 at 11:03 pm
Thanks a lot Scott. That helped. There's one more query which is not showing any issues but i doubt in future when the table size increases, it will start giving...
May 29, 2022 at 12:40 am
I was out because of Covid. Could you please help me with the dynamic query ?
February 10, 2022 at 11:36 am
Use the test data you were kind enough to post (nicely done there), here's an answer that uses a CROSSTAB. If you actually DO want NULL to appear, just...
January 28, 2022 at 10:48 am
Viewing 15 posts - 1 through 15 (of 117 total)