Viewing 15 posts - 1 through 15 (of 107 total)
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
Again... if you post some sample data in a readily consumable format, we can help a whole lot more. See the first link in my signature line below for...
January 27, 2022 at 12:23 pm
I have gone through the two parts of Jeff's articles. But I still couldn't figure out the solution. here's my sample data:
businessday category itemno value
2022-01-01...
January 25, 2022 at 1:38 pm
I have gone through the two parts of Jeff's articles. But I still couldn't figure out the solution. here's my sample data:
businessday category itemno value
2022-01-01 xyz banana...
January 24, 2022 at 12:54 pm
Really that's good. And don't know why i couldn't think of except clause (maybe overthinking).
Apologies but i have another set of question. Query actually is little different as i am...
September 10, 2021 at 11:43 am
Lets say this is the second month data with some changes in hierarchy:
insert into dbo.EmpHierarchy
select '2021-09-01', 1, '1001', 'Jeff Moden', '-1', NULL, NULL, NULL, NULL, NULL, NULL,...
September 8, 2021 at 10:21 am
My bad Jeff. Apologies and i am making up for that mistake by making you CEO of the example. 🙂 Here is the code:
This is the hierarchy table:
September 7, 2021 at 5:43 pm
Both the processes fire update statement to change status from Y to N based on column1 values. Process 1 updates for column1 = "ABC" & Process 2 for column1 =...
March 1, 2021 at 6:37 pm
March 1, 2021 at 6:20 pm
Thanks for the link Steve. Though I love Pinal and often enjoy visiting his blogs whenever get free time, I didn't find this particular blog helpful (maybe my naive mind...
March 1, 2021 at 6:14 pm
Viewing 15 posts - 1 through 15 (of 107 total)