Forum Replies Created

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

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

  • Reply To: Multiple deadlocks occurring with contentious code

    Imo the issue with assigning value(s) to variable(s) and then using variable(s) to resolve flow of control is it can create race conditions.  Then database serialization is attempted to hold...

    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:

    Volumes are better, especially across time. Getting a consistent set of emails across time is good.

    Your posts here (forwarded) did get a meeting set and some movement on upgrading...

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

  • Reply To: Database design help and tips for a small app used to coach tennis players.

    It's tl;dr with the data.  The real questions are: 1) what is your data access pattern,  and 2) how are you handling identity and access management?

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

  • Reply To: Help on grouping to sets of rows in my sql data

    Maybe you're looking for rows WHERE the SkidStatus and the LEAD SkidStatus are unequal within a common row key partition.  In this case left(SKIDNUMBER, 10) effectively truncates the _NOTAPPLICABLE suffixes

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

  • Reply To: Help on grouping to sets of rows in my sql data

    The issue here is although there is an apparent pattern there are no constraints on uniqueness other than the surrogate key ID.   The query you're suggesting to write creates a...

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

  • Reply To: Multi row tally query with max value

    Also a few other potential issues.  If there are any gaps in the depth measurements this method won't fill them in.  Also if there are equal thicknesses this method will...

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

  • Reply To: Multi row tally query with max value

    To get the thickness calculation correct it needs to account for the boundary conditions.  Instead of expanding across the entire sequence and then joining (with inequalities) to the resultant intervals...

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

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