Forum Replies Created

Viewing 15 posts - 841 through 855 (of 13,878 total)

  • Reply To: Can find the issue for join that does not work

    Does Jonathan's (excellent) response solve your problem?


  • Reply To: Converting file name MMDDYYYY.txt to a Date Field

    kaj wrote:

    Make the filename use the international ISO format YYYYMMDD instead of that quaint american date format and you'll have no trouble at all. 🙂

    +1, this has the added benefit...


  • Reply To: Converting file name MMDDYYYY.txt to a Date Field

    Put the date into YYYYMMDD format before casting and it should work.

    DECLARE @x VARCHAR(100) = '09142023';

    SELECT @x
    ,SomeDate = CAST (CONCAT (RIGHT(@x,...

  • Reply To: How do I keep the cost of an Azure SQL Database down?

    Here is a possible approach.

    1. Get the code for your DB into a VS database project and check that into a DevOps Git repo.
    2. Set the database project to target...

  • Reply To: Creating a subquery which conflicts with the where clause...

    If you would provide just 10 rows of sample data, in consumable format, it would help a lot.


  • Reply To: Can find the issue for join that does not work

    Presumably, your question is not this:

    "Why are no results returned when I join on two columns containing values which do not match?"

    What is your real question?


  • Reply To: Can find the issue for join that does not work

    yrstruly wrote:

    The issue is, all of these tables dont have primary/secondary keys, which i brought in with sl code.

    Because these keys dont correspond to one another it gives me these...


  • Reply To: Running Top 1 over groups of data , to yield 1 result per group

    Like this?

    WITH ordered
    AS (SELECT *
    ,rn = ROW_NUMBER () OVER (PARTITION BY adc.channelid ORDER BY adc.recordcount DESC)
    ...

  • Reply To: Can find the issue for join that does not work

    You seem to have a lot of Postgres problems ... why not find a Postgres forum?

    There is a button that says 'Code' in your icon bar. With >3,000 points, you...


  • Viewing 15 posts - 841 through 855 (of 13,878 total)