Forum Replies Created

Viewing 15 posts - 556 through 570 (of 1,229 total)

  • RE: traverse query

    This is a case where you can run into a infinite loop if you had something like

    PARENT CHILD

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

    1 ...

  • RE: programming within SELECT statement

    Going deeper with the CROSS APPLY suggestion :

    Consider something like this >

    SELECT SUM(someNumberColumn) / (SELECT SUM(someNumberColumn) FROM Table) AS westCoastSalesAsA%OfTotal

    FROM Table

    WHERE someFilterColumn= 'west coast'

    Could be done with...

  • RE: Mid result in ssrs

    From here what you should do is is create columns in the report (just to audit) that list the return values of these functions to see what actually got returned...

  • RE: Help creating a SP

    SELECT @ORDER_NUMBER = i.ORDER_NUMBER, @ID = i.ST_ID, @Name = i.FULL_NAME, @Timestamp = i.ORDER_DATE

    from inserted i

    This above will fail whenever the application inserted more than one row as part of...

  • RE: Mid result in ssrs

    elamranii (3/7/2016)


    I put this but still getting an error:

    CDBL(MID(Fields!PRE_LAB_VAL.Value,INSTR(Fields!PRE_LAB_VAL.Value,"=")+1,INSTRREV(Fields!PRE_LAB_VAL.Value,"=") - INSTR(Fields!PRE_LAB_VAL.Value,"=")+1))

    Thank you.

    First , just to explain >

    CDBL(

    MID(

    Fields!PRE_LAB_VAL.Value,/* column to look in */

    INSTR(Fields!PRE_LAB_VAL.Value,"=")+1,/* position in the string to begin at */

    INSTRREV(Fields!PRE_LAB_VAL.Value,"=")...

  • RE: TRY_CONVERT large numbers

    Hugo Kornelis (3/4/2016)


    MMartin1 (3/2/2016)


    Without the try_convert function built in, I just did a simple

    select convert(varchar(1), 234523); and got back the asterisk. What the meaning was when deciding to do...

  • RE: TRY_CONVERT large numbers

    Without the try_convert function built in, I just did a simple

    select convert(varchar(1), 234523); and got back the asterisk. What the meaning was when deciding to do this, I do...

  • RE: Update value in table if value exists more than specified

    This does make more sense. How do you handle situations when all professors are maxed out and can take no more assignments? Create a new professor? If you provide create...

  • RE: Update value in table if value exists more than specified

    I would still not mind knowing how this applies to a real world situation. Or are we just solving a fun programming problem? I read you that you want us...

  • RE: Update value in table if value exists more than specified

    Raxter (2/25/2016)


    This is dummy data. I can not post the actual production data. The idea is that if a certain value is in the table more than a certain number...

  • RE: LAst date's for past 3 months

    Jeff Moden (2/24/2016)


    MMartin1 (2/24/2016)


    sharonsql2013 (2/23/2016)


    How can I show last days for past 3 months say..

    Jan 2016 (2016-01-31 23:59:59.000)

    , Dec 2015

    and Nov. 2015

    Need to be dynamic as it...

  • RE: Scrubbing Data - Good idea or bad idea?

    TeraByteMe (2/24/2016)


    Thanks for all the advice. They all would work well if there was any form of procedure and accountability in the company I work with.

    I started the job almost...

  • RE: LAst date's for past 3 months

    sharonsql2013 (2/23/2016)


    How can I show last days for past 3 months say..

    Jan 2016 (2016-01-31 23:59:59.000)

    , Dec 2015

    and Nov. 2015

    Need to be dynamic as it will change with...

  • RE: Update value in table if value exists more than specified

    They both need to be listed in the database 5 times each based on the specified value of 'BreedListed' that is = 5

    Why not both be 7, or three? What...

  • RE: SSIS Ado.net connection Update SQL

    bwinchester (2/14/2016)


    I understand what you are saying and I agree. I'm my situation, I am updating product information on a remote sql server with data from a local sql...

Viewing 15 posts - 556 through 570 (of 1,229 total)