Forum Replies Created

Viewing 15 posts - 511 through 525 (of 1,419 total)

  • Reply To: Error - Invalid column value ltotal,BAmt,Td

    At a minimum it's missing a comma at the end of the first line.  Is it necessary to nest SELECT statements within the SELECT list as you've done?  It seems...

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

  • Reply To: concat + isnull

    Phil Parkin wrote:

    Yup, I was one of the 'most people' crowd, thanks for alerting me to that, Jeff. Always good to be aware of these extra possibilities. It was also only...

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

  • Reply To: concat + isnull

    Jeff Moden wrote:

    Now, if they'd just add a machine language sequence generator to replace fnTally, create a BULK EXPORT, and create a truly useful xp_Dir...

    The DIY way could be to...

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

  • Reply To: concat + isnull

    Concat_ws was originally in MySQL then the other db's borrowed it iirc.  The big news for me is .NET 6 which I'm really liking a lot because it nicely untangles...

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

  • Reply To: concat + isnull

    CONCAT_WS() "concat with separator" ignores the nulls

    select concat_ws(' | ', t.Col1, t.Col2, t.Col3) [output]
    from #t t;

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

  • Reply To: Using GetDate in HAVING clause

    The date could be converted without using string functions.  Also, the WHERE clause might be a more appropriate place to filter the rows.  Maybe something this

    declare @UPSBatchInvNot...

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

  • Reply To: Are there are any way to get partc without make join by Verification Hash?

    Why would you want to avoid JOIN?  Maybe use IN but there's no benefit afaik and it might actually be slower

    select partc
    from #partsc
    where VerificationHash in(select VerificationHash
    ...

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

  • Reply To: SQL Insert/Update using Merge for multiple scenarios

    What is the primary key of the target table?  With Scenario4 you're inserting a new row which would duplicate (or more?) the TaskId.  Once the TaskId is non-unique then further...

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

  • Reply To: A Strange AI Achievement

    Steve Jones - SSC Editor wrote:

    Steve Collins wrote:

    So a billion flies cannot be wrong?  Imo attempting to derive wisdom from overdefined equations could turn out to be counterproductive

    Not sure what you mean here. If you're...

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

  • Reply To: A Strange AI Achievement

    So a billion flies cannot be wrong?  Imo attempting to derive wisdom from overdefined equations could turn out to be counterproductive

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

  • Reply To: Splitting one wide column into serveral different ones

    ktflash wrote:

    The "solution" is the following:

    i had another talk with the user, we discussed the relevancy of the individual columns

    • C was the most important out of a,b,c
    • C, as...

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

  • Reply To: How to capture particular text from standard column to populate computed column

    From a design perspective why does the table need to know all the information about how characters are extracted from another column?  It seems like whatever is inserting the row...

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

  • Reply To: multiple queries

    drop table if exists Report_Es;
    go
    create table Report_Es(
    ola1 int,
    ola2 int,
    ola3 ...

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

  • Reply To: Tally OH! An Improved SQL 8K “CSV Splitter” Function

    This was new news to me.  We're using Azure SQL and I confirmed it works (tested at Compatibility Level 150).  Since the input argument "string is an expression of any...

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

  • Reply To: Splitting one wide column into serveral different ones

    The link for the splitter I think is in this article.  For id=7 and ItemNumber=3 the (split) Item equals 'ccc ccccc' which is maybe space delimited and needs further...

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

Viewing 15 posts - 511 through 525 (of 1,419 total)