Forum Replies Created

Viewing 15 posts - 961 through 975 (of 3,500 total)

  • Reply To: Bulk Update From List

    Something like (make a backup of the table or wrap the update in a transaction so you can roll it back...)

    UPDATE EmployeeTable

    SET EMailAddress = otherTable.EMail

    WHERE EmployeeTable.FieldX = OtherTable.FieldY

    Basically, you do...

  • Reply To: SSRS Monthly Data Comparisons

    If you have only one value per month, then you can use LAG([Inventory],1) OVER (ORDER BY DateArchived) AS PrevValue

    and then compare. Maybe easier to do it in T-SQL.

  • Reply To: Pull data from a set of dates based on multiple criteria

    Use a Calendar table maybe?

  • Reply To: Using table for search and replace values

    Maybe this will help?

    You could use multiple REPLACE functions

    use tempdb;
    go
    CREATE TABLE TheReplacements(
            Search_Value VARCHAR(15) PRIMARY KEY
            , Replace_Value VARCHAR(15) NOT NULL
    );
    GO
    INSERT INTO TheReplacements (Search_Value, Replace_Value)
    VALUES ('Timothy','Tim'),('Kathleen','Kathy'),('Joseph','Joe'),('Michael','Mike');
    CREATE TABLE People (
     PersonID...
  • Viewing 15 posts - 961 through 975 (of 3,500 total)