Forum Replies Created

Viewing 15 posts - 4,741 through 4,755 (of 15,381 total)

  • RE: LTRIM and RTRIM not working

    GBeezy (5/28/2014)


    Gentleman,

    I have done this and some rows return a 32 and return a 49. I do apologize as I am not sure what this is telling me, if...

  • RE: Today's Random Word!

    crookj (5/28/2014)


    Ed Wagner (5/28/2014)


    BWFC (5/28/2014)


    Geese

    Hunting

    :Wabbitt!

    Duck!

  • RE: LTRIM and RTRIM not working

    GBeezy (5/28/2014)


    All,

    I have a field in AX that is NVARCHAR(30). Sometimes the value has 5 extra characters at the end and sometimes, it does not. I have...

  • RE: Today's Random Word!

    eccentricDBA (5/28/2014)


    SQLRNNR (5/28/2014)


    jcrawf02 (5/28/2014)


    Sean Lange (5/28/2014)


    SQLRNNR (5/28/2014)


    crookj (5/28/2014)


    WotD - swollen (wrist)

    allergic

    bee sting

    epinephrin

    Pen

    sword

    mighty

  • RE: combining two rows of data into 1

    ronan.healy (5/28/2014)


    anyone have ideas on how i can combibe data together.

    this is how my table is as of right now

    FundCodeACCOUNTPERIODClassNameNAVSharesOutstanding

    IL0131/12/2013Class A GBP23704633.79

    IL0131/12/2013Class A GBP20143018.57

    IL0131/12/2013Class I2 GBP252178460.2

    IL0131/12/2013Class I2 GBP210634139.7

    IL0131/12/2013Class I2 EUR...

  • RE: Joining two tables and dealing with null values

    mattech06 (5/28/2014)


    Hi, yes!

    SELECT

    b.TransDate, b.TransType, b.SortCode, b.AccNum, b.TransDesc,

    (ISNULL(b.Debit, 0) + ISNULL (b.Credit, 0)) as Amount,

    ISNULL(r.OrthoID, 999) as OrthoID

    ISNULL(t.PatientID, 0) as PatientID

    FROM

    EPSBankTransactions b...

  • RE: Joining two tables and dealing with null values

    mattech06 (5/28/2014)


    can you use those functions in the FROM section?

    This is the working vers, not my sample from above and includes a ref table as well and there's a bit...

  • RE: Storing result set as a variable in a procedure

    Hi and welcome to the forums. 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...

  • RE: COALESCE to replace multiple CASE statements

    nimalatissa (5/27/2014)


    I'm very confused. These tables are normalized to 3rd normal form. There shouldn't be anything to do with that. the column in this table have comma separated values...

  • RE: Today's Random Word!

    SQLRNNR (5/28/2014)


    crookj (5/28/2014)


    WotD - swollen (wrist)

    allergic

    bee sting

  • RE: Combine results of 2 queries into one query with 2 columns

    You could this without needing a join and windowing functions. Since you have two queries that are both just an aggregate a cross apply will make this a lot simpler.

    SELECT...

  • RE: Error when attempting to set variables value

    harsimranjeetsinghwasson (5/28/2014)


    declare @dteTo Date

    set @dteTo = CAST(GETDATE() AS DATE)

    TA DA

    DONE!! :w00t: 🙂

    Or even simpler.

    declare @dteTo Date

    set @dteTo = GETDATE()

  • RE: Need Help

    sachin.sakpal2009 26397 (5/28/2014)


    SET NOCOUNT ON

    CREATE TABLE #query (query NVARCHAR(MAX), id int)

    DECLARE @STR_IP NVARCHAR(MAX)

    DECLARE @T_NAME NVARCHAR(MAX)

    DECLARE @T_NAME1 NVARCHAR(MAX)

    DECLARE @C_NAME NVARCHAR(MAX)

    DECLARE @T_CATALOG NVARCHAR(MAX)

    DECLARE @T_SCHEMA NVARCHAR(MAX)

    DECLARE @a NVARCHAR(MAX)

    DECLARE @a_Copy NVARCHAR(MAX)

    DECLARE @Cnt Int

    DECLARE @Result...

  • RE: need to merge two tables

    Nice job posting ddl and consumable data. I just don't have a clue what you want to do with this. We have two tables of data (AppointmentForNextTwentyDays_InProcess and DoctorScheduleFortoday)....

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

    SQL_ME_RICH (5/27/2014)


    Hi Sean - Not sure what you mean by Vendor. As best I know it's Microsoft's product still, but do you perhaps mean reseller?

    We do not deal with...

Viewing 15 posts - 4,741 through 4,755 (of 15,381 total)