Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Stored Procedure Help Please

Author  Topic 

Jonny1409
Posting Yak Master

133 Posts

Posted - 2007-10-22 : 06:34:45
[Editing]

nr
SQLTeam MVY

12543 Posts

Posted - 2007-10-22 : 06:38:58
Firstly - probably
Secondly
something like

insert Holidays
select w.dte, w.HoursWorked
from BankHoliday BH
join DaysThetTheEmployeeWorked w
on BH.dte = w.dte

Might be easiest to make DaysThetTheEmployeeWorked a temp table and populate it from your routine.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -