web sales sql query

OK - you SQL scripting gurus.. I need to run a query that pulls all sales under mos 52 and 57, showing just date and amount. I am sure this is not difficult for those that know how to do this, but I'm not there yet in my SQL knowledge. Would anyone mind assisting me with this easy query?

Parents
  • Unknown said:

    OK - you SQL scripting gurus.. I need to run a query that pulls all sales under mos 52 and 57, showing just date and amount. I am sure this is not difficult for those that know how to do this, but I'm not there yet in my SQL knowledge. Would anyone mind assisting me with this easy query?

    Here some sample code. Is this what you had in mind?

    select order_dt,
        sum(tot_due_amt) "tot_due_sum"
    from t_order
    where mos in (52,57)
    group by order_dt
    order by order_dt

Reply
  • Unknown said:

    OK - you SQL scripting gurus.. I need to run a query that pulls all sales under mos 52 and 57, showing just date and amount. I am sure this is not difficult for those that know how to do this, but I'm not there yet in my SQL knowledge. Would anyone mind assisting me with this easy query?

    Here some sample code. Is this what you had in mind?

    select order_dt,
        sum(tot_due_amt) "tot_due_sum"
    from t_order
    where mos in (52,57)
    group by order_dt
    order by order_dt

Children