Forum Replies Created

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

  • RE: Help with a many to many query

    That look like that would work, and since the same criteria could be selected more than once, I can do distinct count on that temp table.

    Thanks

    for your help Max

  • RE: Help with a many to many query

    I apologize for the errors.

    This works but the number of criteria that could be selected could be a dozen or more. I won't know before hand. I was...

  • RE: Is there a way to do this?

    Thanks, I'll give that a shot.

    Allen

  • RE: Is there a way to do this?

    There are more, could be lots more over time.

    Allen

  • RE: Odd Behavior with Dates

    Yes, that works as well. I'll take a look at that explanation as well. It just seemed odd that it would round.

    I read the explanation, now it makes...

  • RE: DB Permissions

    After I change things back, how do I get the permissons for degging on my machine in Query Analyzer.  This is what started all this.

     

    Thanks

  • RE: Can this be done without a cursor?

    I (you) got it working guys, thanks for all your help.

    Allen

     

     

  • RE: Can this be done without a cursor?

    Thanks gova, I'll give it a shot and let you know how it works out.  Thanks for your input too Jason.

  • RE: Can this be done without a cursor?

    inv_id and partno are are what tie the two tables together.  In I_master table, the INV_ID is our internal part number and key for the table. The partno can be...

  • RE: Need help summarizing data

    Jason, I ended up using the above with a few tweaks because of some data issues I did't expect.  I will try incorporating your new changes in. 

    Thanks again for...

  • RE: Need help summarizing data

    I beleive I have it now. I added another select on the outside

     

    Select count(numberOfOrders),

    COUNT(CASE WHEN (on_time + nullship) = 0 THEN 1 END) AS nullShip

    from (

    existing SQL

    ) tblCount

    And this gives me...

  • RE: Need help summarizing data

    Jason,

    This almost gets what I want.  Where doing the most inner select, it shows on_time as 1 if that line item is late, which is good, but when summing up the...

  • RE: Need help summarizing data

    Thanks Jason for all your effort, I'll give this a try and let you know how it goes.

     

    Thanks

    Allen

  • RE: Need help summarizing data

    If any portion is late, the whole order is considered late.  As far as the invShip, it's not always populated, I'm trying to get a clarification on that myself.  It...

  • RE: Need help summarizing data

    Most of the datsa comes from views but I have the data types.  The key on all these tables are identity columns.

    TABLES:

    soInfo.soNo char 6

    soInfo.soKey char 6 + char 3 +...

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