Forum Replies Created

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

  • RE: Grouping inside a loop

    Hi Andy, 
    Please do not bother, i've been able to resolve the issue by doing a sum(Base) and Partitioning by selection
    It was resolved in another post.
  • RE: Finding Percentages Based on Column Sum

    Jacob Wilkins - Friday, August 10, 2018 4:08 PM

    In that case, something like this should do the trick:

    SELECT *,
       ...

  • RE: Finding Percentages Based on Column Sum

    Jacob Wilkins - Friday, August 10, 2018 3:50 PM

    It's not entirely clear from your description, but from your expected results it looks...

  • RE: Grouping inside a loop

    Hi andy thanks a lot for your previous help, but i'm having another challenge with same code after some modifications
    I want to find percentages for the generated result, but...

  • RE: how to massively drill down a survey

    Hi Steve,
    Thanks for your reply, i actually used a string_split to handle the massive columns and did a pivot to handle each column and i got what i wanted.

  • RE: Grouping inside a loop

    andycadley - Wednesday, August 1, 2018 1:51 PM

    Yeah, string_split is a 2017 thing but should be easily replaceable with your favourite string...

  • RE: Grouping inside a loop

    Hi Andy,
    I've been able to resolve the string_split issue, but the computation of the second solution is giving me above the total base on each column
    Please help look...

  • RE: Grouping inside a loop

    andycadley - Tuesday, July 31, 2018 9:16 PM

    Are you trying to do something like this?

    Thanks Andy, that is what i want to...

  • RE: Grouping inside a loop

    Lynn Pettis - Tuesday, July 31, 2018 5:31 PM

    I have to write cursors at times but this is a little confusing. ...

  • RE: Pivoting Very Large Data

    Luis Cazares - Monday, July 30, 2018 2:29 PM

    I'm curious. Who would read a row like that? What is this good for?
    There's...

  • RE: Pivoting Very Large Data

    sgmunson - Monday, July 30, 2018 9:24 AM

    That wide a pivot is going to fail because SQL Server simply can not handle...

  • RE: Adding extra rows based on supplied integer

    Hi Steve,
    Thanks so much, you have saved me two days of babbling about.
    Thanks so much again, it works very fine.

    God bless you.
    Tim

  • RE: Resolve Data using Pivot

    DesNorton (9/30/2016)


    1 - You have not provided a key that groups all of the data for a specific person. Although, from your pivot code, it appears that Period may...

  • RE: Resolve Data using Pivot

    Thanks Thom for the reply and thanks for the advice.

    The kind of result i want is in this format:

    CREATE TABLE [dbo].[Testtable2](

    [Period] [nvarchar](50) NULL,

    [Name] [nvarchar](max) NULL,

    [CompanyName] [nvarchar](max) NULL,

    [CompanyAddress] [nvarchar](max) NULL,

    [Phone] [nvarchar](max)...

  • RE: Using Select Statement inside Case result

    Hi laurie-789651,

    Based on your suggestion, it got me thinking, eventually, i did some hard-coding to resolve it, i don't know if your answer can be more automatic, but this code...

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