Forum Replies Created

Viewing 15 posts - 4,756 through 4,770 (of 15,381 total)

  • RE: get difference between data in two tables

    alhakimi (5/27/2014)


    Dear friend

    Thank you for your quick response, i tried that , but two points still need your assistant with is those two tables are from two different databases...

  • RE: COALESCE to replace multiple CASE statements

    nimalatissa (5/27/2014)


    Thanks for the reply. it looks to me there is no point in trying to squeeze COALESCE here. Do you see any other way to rewrite this in much...

  • RE: Deleting default indexes in CRM 2011 database - 2008 R2 Standard Edition SP1-x64

    SQL_ME_RICH (5/27/2014)


    Hello -

    I am in the midst of some database tuning for a CRM 2011 database, and part of that effort is in attempting to get rid of what...

  • RE: get difference between data in two tables

    You could also use EXCEPT for this.

    select *

    from table2

    EXCEPT

    select *

    from table1

  • RE: get difference between data in two tables

    Excellent job posting ddl and sample data. Your description is good too. Thanks!!! This makes it a lot easier to work on your issue.

    Your description of desired output and the...

  • RE: Today's Random Word!

    Ed Wagner (5/27/2014)


    Sean Lange (5/27/2014)


    eccentricDBA (5/27/2014)


    Ed Wagner (5/27/2014)


    SQLRNNR (5/27/2014)


    Ed Wagner (5/27/2014)


    crookj (5/27/2014)


    BWFC (5/27/2014)


    TomThomson (5/24/2014)


    SQLRNNR (5/23/2014)


    whereisSQL? (5/23/2014)


    TomThomson (5/23/2014)


    Revenant (5/23/2014)


    Ed Wagner (5/23/2014)


    SQLRNNR (5/23/2014)


    Ed Wagner (5/23/2014)


    crookj (5/23/2014)


    Ed Wagner (5/23/2014)


    BWFC (5/23/2014)


    Ring

    Rule

    Decree

    Dictate

    PotatoHead

    Toy

    Story

    Board

    Chalk

    ongle

    scratch

    Fever

    stranglehold

    Tango

    &Cash

    FUBAR 😀

    Fugazi

    SNFU

    Specifications

    nonexistent

  • RE: Today's Random Word!

    eccentricDBA (5/27/2014)


    Ed Wagner (5/27/2014)


    SQLRNNR (5/27/2014)


    Ed Wagner (5/27/2014)


    crookj (5/27/2014)


    BWFC (5/27/2014)


    TomThomson (5/24/2014)


    SQLRNNR (5/23/2014)


    whereisSQL? (5/23/2014)


    TomThomson (5/23/2014)


    Revenant (5/23/2014)


    Ed Wagner (5/23/2014)


    SQLRNNR (5/23/2014)


    Ed Wagner (5/23/2014)


    crookj (5/23/2014)


    Ed Wagner (5/23/2014)


    BWFC (5/23/2014)


    Ring

    Rule

    Decree

    Dictate

    PotatoHead

    Toy

    Story

    Board

    Chalk

    ongle

    scratch

    Fever

    stranglehold

    Tango

    &Cash

    FUBAR 😀

    Fugazi

    SNFU

  • RE: Ranking using 2 columns in T-SQL 2012

    chrismic999 (5/27/2014)


    This seems to work

    SELECT accountname,invoice_date, ROW_NUMBER()

    OVER(PARTITION BY AccountName Order by INVOICE_DATE) as RankOrder from dbo.sagesales

    where AccountName is not null

    Insert help from above

    But now I want to update...

  • RE: Ranking using 2 columns in T-SQL 2012

    chrismic999 (5/27/2014)


    I have a table where basically I want to identify the first Invoice placed by an account.

    In the file I have 2 columns AccountName and Invoice_Date which I order...

  • RE: Create a temp table but got an error

    adonetok (5/27/2014)


    This a part of one sp in which there are about 20 select statements.

    Of all select statement, they need @headerid and @Providerid value.

    If using

    SELECT HEADERID, PROVIDERID INTO #HEADER...

  • RE: need to merge two tables

    In order to help we will need a few things:

    1. Sample DDL in the form of CREATE TABLE statements

    2. Sample data in the form of INSERT INTO statements

    3. Expected results...

  • RE: Create a temp table but got an error

    adonetok (5/27/2014)


    I try to modify a code to create a temp table but got an error.

    How to fix it?

    ------------------------------

    Declare @headerid Int

    Declare @Providerid Int

    BELOW CODE IS WORKING:

    ------------------------------

    SELECT @headerid=HEADERID,@Providerid=PROVIDERID

    FROM CLAIM WITH(NOLOCK)...

  • RE: Trying to find the difference between two sub-totals (sales - credits)

    david.dartnell (5/25/2014)


    Thanks everyone for your time, and wonderful responses, I have learned a great deal, and am now getting the results I desired.

    Which one of the solutions was the one...

  • RE: Link more than one item for one selling operation ...

    StarterProgrammer (5/23/2014)


    It seems it works but it asked about the time which is CURRENT_TIMESTAMP , it supposed to get the current time of the system automatically ,right!

    I think was...

Viewing 15 posts - 4,756 through 4,770 (of 15,381 total)