Forum Replies Created

Viewing 15 posts - 271 through 285 (of 2,610 total)

  • Reply To: Best way to handle incremental duplicate data in SQL Server?

    You could add an IsCurrent bit column and set it to 1 for the most recent row and update older rows to 0. So no need for copying old data...

  • Reply To: The Left Joins

    drew.allen wrote:

    Carlo Romagnano wrote:

    To select all rows from CustomerLeft change join precedence by parentheses:

    SELECT *
    FROM dbo.CustomerLeft AS cl
    LEFT JOIN (dbo.CustomerContact AS cc
    INNER JOIN dbo.EmailDomain...
  • Reply To: whats the advantage of SSIS tool over other ETL Tool

    ZZartin wrote:

    Sai Sarada wrote:

    Informatica ETL is highly recommended

    LOL this has to be an add bot.  Informatica hasn't had a major update in something like over a decade and doesn't support(or barely)...

  • Reply To: Altering a partition function

    Modifying a partition function in SQL Server is not quite as simple as altering a partition statement with the changed dates. Once a partition function is created and associated with...

  • Reply To: I have string data in a column and i need to strip out parts of it.

    DROP TABLE IF EXISTS #T
    GO
    CREATE TABLE #T (Col1 VARCHAR(100));

    INSERT INTO #T(Col1)
    VALUES ('UIMth: 07/01/23 UISeq: 444 Header Reviewer: DN'),
    ('UIMth: 07/01/23 UISeq:...
  • Reply To: Hash value in a primary key?

    You can change the collation of a column with an alter statement:

    ALTER TABLE MyTable
    ALTER COLUMN MyColumn VARCHAR(50) COLLATE SQL_Latin1_General_CP1_CS_AS

    You could add a computed column to your table...

  • Reply To: Hash value in a primary key?

    You can create a column on a database that is not case sensitive to be case sensitive

    CREATE TABLE MyTable
    (
    MyColumn VARCHAR(50) COLLATE SQL_Latin1_General_CP1_CS_AS
    )
  • Reply To: Using a comma seperated list in a where clause

    Jeff Moden wrote:

    p.s.  I seem to remember a way to do this directly with JSON and not have to do the STRING_SPLIT() and TRIM() things.  I'm looking for it. 

                

    July 19, 2023 at 5:52 pm

    #4239357

  • Reply To: Best Practice vs Best Performance of Splitting a Table

    Jeffrey Williams wrote:

    I am with Grant - I don't see any reason to be splitting a table.  No matter what - all development groups will still need access to the original...

  • Reply To: Best Practice vs Best Performance of Splitting a Table

    Because of the row size limitation in SQL Server, I had to split the columns of a data warehouse table. The combined size of the rows exceeded the permitted limit.

    To...

  • Reply To: QUERY HELP

    I've had to add an identity column (ID) so the table can be ordered by something:

    DECLARE @T table (ID int IDENTITY(1, 1),  A int )

    insert
    into...
  • Reply To: QUERY HELP

    There is nothing to order the table by. Maybe you should add an identity column to your table first.

  • Viewing 15 posts - 271 through 285 (of 2,610 total)