Forum Replies Created

Viewing 15 posts - 106 through 120 (of 1,419 total)

  • Reply To: Summarize the proportions stored in the table

    us26 wrote:

    according to the rules of school mathematics, we bring to a common denominator

    How to calculate the product of all of the denominators for each group?  Why doesn't...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Sum Nested Join Help

    beantownace wrote:

    The larger query I have has many fields with converts etc. so I am trying not to add the CustomerId to the nested query to get the sum somehow...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Split fields sql 2017

    Assuming the parts to be split are: 1) the sentence on the left, and 2) the single string on the right.  It appears after the initial 50 character split of...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Getting Your DBA Teams Scripts into Git

    In Visual Studio working with git (and GitHub, Gitlab, etc.) seems more streamlined and user friendly.  SSMS clunky.  For almost everything SQL Server related I use VS but still have...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Flexable/Effective means to join the Nth record

    Maybe you could try OFFSET and FETCH NEXT on the righthand side of OUTER APPLY

    declare
    @nth_from_top int=2,
    @nth_from_bot ...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Parse Double Quoted comma separated data with comma

    Jeffrey Williams wrote:

    The problem in Steve's solution is that is doesn't account for possible CR/LF data in the last field.  In your data - there is a CR\LF after the comma...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Parse Double Quoted comma separated data with comma

    Bump for visibility

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Parse Double Quoted comma separated data with comma

    Here's the code I'm running and the results I'm seeing.  The @string value was copy/pasted.  Thanks btw to Jeff for the splitter code.

    drop FUNCTION if exists [dbo].[DelimitedSplitN4K];
    go
    CREATE...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Parse Double Quoted comma separated data with comma

    Budd wrote:

    I did originally post this question under my personal account and this is from my work account.

    I did think about using a second replace statement but could not devise...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Parse Double Quoted comma separated data with comma

    One way could be to use the same replacement technique as with the line breaks.  Replace the "," and ", and ," with |.  Then replace any remaining double quotes...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: JSON escape characters

    Phil Parkin wrote:

    Interestingly, the desired output is however considered valid JSON, at least according to https://jsonlint.com/

    In the JSON Standards docs they call the forward slash symbol a 'solidus' and a...

    • This reply was modified 2 years, 3 months ago by Steve Collins. Reason: Removed mistake

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: JSON escape characters

    Phil Parkin wrote:

    It seems that the T-SQL JSON functions deem any string containing a single / character as invalid and escape it accordingly.

    Yes removing the escape characters would invalidate the JSON...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Adapt the query to 2012

    Is this really SQL Server 2012?  Extended support for SQL Server 2012 ended last year.  Why are the AMOUNT and PRICE of data type FLOAT?  Generally, columns with those names...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Calculating moving moving averages for different ranges in one query

    Sezam wrote:

    ... or should I post the rest of my code, on how to inlcude this in there?

    The code posted seems to have issues imo.  Can't be certain tho. ...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Are the posted questions getting worse?

    Steve Jones - SSC Editor wrote:

    We're not just a forum, though. This is a whole publishing engine that gets article submissions, runs them through a queue, publishes, scheduled, generates a newsletter, has the daily...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

Viewing 15 posts - 106 through 120 (of 1,419 total)