Leave a Reply

Your email address will not be published. Required fields are marked *

2 Comments

  • I need to solve this query:

    List all orders by customer and the time difference from:
    “Received” to “Keyed” as [TurnTime1]
    “Keyed” to “Printed” as [TurnTime2]
    “Printed” to “Delivered” as [TurnTime3]
    “Received” to “Delivered” as [TurnTime4]
    Show all time differences in minutes
    Return CustomerName, OrderTypeName, LoanNumber, TurnTime1, TurnTime2, TurnTime3, TurnTime4

    The TurnTime* values come from rows in the OrderActivity table and the date information is from the ActivityDate column.

    What approach to use? Nested sub query or Temp tables?

    Thanks
    Mike