Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. paulstrovsky

    Locking table in trigger

    I apologize if I'm misinterpreting the situation (I am probably oversimplifying), but I think there is better way to deal with this situation... You could add an identity key to the history table. It would be easy to derive the sequence of events when querying this table- just sort by the...
  2. paulstrovsky

    Combine results sets for loop without using TempTable

    I think I understand what you're saying- I determine what day of the week (Monday, Tuesday, etc.) a given date is, from there I can figure out the date for the Sunday of that week as my WeekStarting date by simply subtracting from the current date. Then I just use group by on the weekstarting...
  3. paulstrovsky

    Combine results sets for loop without using TempTable

    I am summing timeclock hours by week with columns breaking down the daily amounts... For example: Name WeekStarting Monday Tuesday WeekTotal Joe Schmoe 1/1/01 8 9 48 Joe Schmoe 1/8/01 4 10 38 Bob Schmoe 1/1/01...
  4. paulstrovsky

    Combine results sets for loop without using TempTable

    Nevermind, I don't think this is possible... But please pipe up if you know a way of doing this without a temp table!
  5. paulstrovsky

    Combine results sets for loop without using TempTable

    Hi all, I have a query that loops through weeks in order to sum up hours worked by employees. Everything works fine, except I get multiple result sets if I do this query without using a temp table. I figure there must be some way to work the UNION operator in at the beginning of the loop so...

Part and Inventory Search

Back
Top