Forum Replies Created

Viewing 15 posts - 1 through 15 (of 15 total)

  • RE: How do I avoid multiplied results when adding a subquery?

    Nevermind all...if found my issue.   my "on" conditions were not specific enough in the actual code.    once i fixed that, it worked like a charm!

  • RE: How to Automate the closing of a window?

    Jeff Moden - Wednesday, December 13, 2017 7:42 PM

    sqlnoob2015 - Tuesday, December 12, 2017 4:17 PM

    December 14, 2017 at 3:20 pm

    #1972226

  • RE: How to Automate the closing of a window?

    Mike Good - Wednesday, December 13, 2017 9:49 AM

    For many years I've been using a free utility called ClickOff, by Johannes...

  • RE: How to Automate the closing of a window?

    I'm pulling in sales numbers from a database that is updated every 15 minutes and displayed on a monitor for our salespeople.     The numbers are displayed in a graphical...

  • RE: How to Automate the closing of a window?

    Thanks Ed and Sue.  I guess i was thinking there was some type of windows macro (mouse more and click) that will clear out messages like the one I have. ...

  • RE: Automating Email Addresses

    Very cool!! Thank you for the link.  I'll study this and see what i can do to set this up. You're awesome!

  • RE: How Do I Combined These Two Select Statements?

    ^^ Good point. I thought about that for other operational reports but for GL reporting, it will work fine.

    Thanks

  • RE: How Do I Combined These Two Select Statements?

    This worked perfect! I didnt realize you can abbreviate the table names for ease of use later. That really helps!

    This got me exactly what i needed though!...

  • RE: Help with Script

    Luis Cazares (2/20/2015)


    Does this return any rows?

    select *

    from orders o

    JOIN stop first_stop on o.first_stop_id = first_stop.id

    JOIN sales s ON o.id = s.reference

    WHERE s.dis IN( 'a', 'b', 'c')

    AND o.status =...

  • RE: Help with Script

    discounts is basically coming back null.

  • RE: Help with Script

    Luis Cazares (2/19/2015)


    s is an alias for the resultset from the apply. It can be anything but I prefer it to be something that could be significant. On the ISNULL...

  • RE: Help with Script

    sqlnoob2015 (2/19/2015)


    Luis Cazares (2/19/2015)


    Do you have anything else in the code?

    Did you run the exact same code I posted?

    Note that I changed the JOIN to an APPLY and the column...

  • RE: Help with Script

    Luis Cazares (2/19/2015)


    Do you have anything else in the code?

    Did you run the exact same code I posted?

    Note that I changed the JOIN to an APPLY and the column expression...

  • RE: Help with Script

    Luis Cazares (2/19/2015)


    What about this?

    select

    first_stop.actual_departure 'Start'

    , last_stop.actual_departure 'End'

    , last_stop.city_name 'End city'

    , last_stop.state 'End state'

    , last_stop.zip_code 'End zip'

    , first_stop.city_name 'Start city'

    , first_stop.state 'Start state'

    , first_stop.zip_code 'Start zip'

    , datediff (day, last_stop.actual_departure,...

  • RE: Help with Script

    Sigerson (2/19/2015)


    Is sales.Dis ever NULL?

    Never Null.

Viewing 15 posts - 1 through 15 (of 15 total)