Forum Replies Created

Viewing 15 posts - 1 through 15 (of 66 total)

  • Reply To: Either/ Or Query

    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...

  • Reply To: Transpose Rows

    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...

  • Reply To: Transpose Rows

    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...

  • Reply To: Running Total

    Thanks, I'll have a play and report back on how it goes over the weekend.

  • Reply To: Running Total

    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...

  • RE: Finding Duplicates Across Columns

    Thanks: every day is a school day!

  • RE: Finding Duplicates Across Columns

    Hi,

    Yes, that works thanks. I think I need to find out why though: I haven't used CROSS APPLY before.

  • RE: Grouping On Different Fields

    That's exactly what I wanted to do. Very clever (I hadn't come across Grouping Sets before).

    Thank you.

  • RE: Aggregate Query Help Required

    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,...

  • RE: Aggregate Query Help Required

    That looks like exactly what I want to do. I'll give it a go and come back to you.

    Thanks for the help.

  • RE: Amount Of Admin Required

    Thanks Lynn

  • RE: Amount Of Admin Required

    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:-))

  • RE: Amount Of Admin Required

    SQLKnowItAll (4/11/2012)


    That really depends on SO many things... I would say that database administration "could be" minimal if the application uses SQL Server correctly. You say you are proficient in...

  • RE: Contacenating Rows Into 1 Column

    Spot on guys.

    Great help and thanks again!

  • RE: Contacenating Rows Into 1 Column

    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...

Viewing 15 posts - 1 through 15 (of 66 total)