Viewing 15 posts - 1 through 15 (of 66 total)
Hi,
Thanks for the replies. Both approaches work (Scott's & Jonathan's). I've never used EXISTS before so must have a play with it. I also didn't know you could use a...
December 8, 2022 at 9:37 am
Hi Mark,
I just noticed a small error in your code so I'll correct it on the off chance somebody ever needs something like this again!
This line should be the other...
October 9, 2020 at 4:32 pm
Hi, thanks for taking the time to reply. Yes, it works and is a lot more elegant (and probably more efficient!) than my way using a cursor. This was my...
October 7, 2020 at 4:03 pm
Thanks, I'll have a play and report back on how it goes over the weekend.
March 26, 2020 at 4:54 pm
Thanks Guys,
I think I can get it from that. My data isn't exact but I can get a good approximation from it (as weather data is anyway). I've made a...
March 20, 2020 at 11:57 am
Thanks: every day is a school day!
November 9, 2016 at 2:08 am
Hi,
Yes, that works thanks. I think I need to find out why though: I haven't used CROSS APPLY before.
November 8, 2016 at 3:48 pm
That's exactly what I wanted to do. Very clever (I hadn't come across Grouping Sets before).
Thank you.
February 17, 2016 at 10:34 am
Hi,
Got it to work. Here is the other table:
CREATE TABLE [dbo].[tbl_Calculation](
[CalcID] [int] IDENTITY(1,1) NOT NULL,
[CalcKPI_ID] [int] NOT NULL,
[FK_KPI_ID] [int] NOT NULL,
[KPI_Operation] [varchar](50) NOT NULL
)
Then:
WITH Separated_Info(Period,...
October 20, 2014 at 7:54 am
That looks like exactly what I want to do. I'll give it a go and come back to you.
Thanks for the help.
October 20, 2014 at 4:54 am
Don't ask me why but around a couple of hours a month was my gut feeling!
Any interest in doing this remotely?? (for a small fee of course:-))
April 11, 2012 at 4:52 pm
SQLKnowItAll (4/11/2012)
April 11, 2012 at 4:17 pm
Spot on guys.
Great help and thanks again!
March 14, 2012 at 11:17 am
Helps a lot. Thank you for going to the trouble of explaining it. And if you're up for one last question, teh last line of my previous solution containd the...
March 14, 2012 at 10:48 am
Viewing 15 posts - 1 through 15 (of 66 total)