Viewing 15 posts - 1 through 15 (of 20 total)
In this situation, I am the system designer/administrator/payroll person. so it falls to me.
Any thoughts on the other items?
Thanks,
Bill
March 8, 2008 at 4:56 pm
Is the DB Normalized? I believe so. I’ve set up tables for Customer, Jobs and Clients (the workers) basic info along with new tables with related info,...
March 8, 2008 at 10:03 am
Jeff,
I only dropped the left @'s. The ones inside the coalesce are still there.
Thanks for the follow up.
Bill
March 5, 2008 at 3:51 pm
G Squared,
Thanks. I dropped the @'s in the SET and it worked. It sure is great to have another set of knowlegable eyes to look at stuff.
Jeff,
I don't understand the...
March 5, 2008 at 2:53 pm
When I use the following, it still doesn’t work
BEGIN TRY
IF EXISTS(
SELECT *
FROM
tbl_TimeSheetEntry
WHERE
@BatchNumber = tbl_TimeSheetEntry.BatchNumber
AND
@LocationNumber = tbl_TimeSheetEntry.LocationNumber
AND
@WorkDate = tbl_TimeSheetEntry.WorkDate
AND
@Client_PK_ID = tbl_TimeSheetEntry.Client_PK_ID
AND
@StepNumber_PK_ID = tbl_TimeSheetEntry.StepNumber_PK_ID
)
BEGIN
BEGIN TRANSACTION
UPDATE tbl_TimeSheetEntry
SET HoursWorked = coalesce(@HoursWorked, HoursWorked),
Units...
February 29, 2008 at 4:58 pm
Adam/PW,
I had declared the @Client_PK_ID, I just wasn't putting it to use.
You guys are awesome! I'm going to print out this and other posts for reference. Hopefully it will begin...
February 21, 2008 at 1:55 pm
Just changed
tbl_Clients_ClientBasicInformation.Client_PK_ID =
Client_PK_ID
to
tbl_Clients_ClientBasicInformation.ClientNumber =
@ClientNumber
and Wha-La! It (appears) to work!
Thanks,
Bill
February 21, 2008 at 10:33 am
The way the code is currently written below, if the desired/selected ClientNumber does NOT exist in the BasicInformation table, then the “SET @Message = 'Does Not Exist' happens, as...
February 21, 2008 at 10:21 am
Thanks guys.
I'm gonna take a break and eat some dinner. Maybe my sub-conscious will work on it for a while.
I'll get there.
Thanks,
Bill
February 20, 2008 at 3:36 pm
If I take out the WHERE, then how will I be able to select the desired client to make a change in their WageRate record?
BEGIN TRY
BEGIN TRANSACTION
UPDATE tbl_Clients_ClientWageRates
SET
AverageWage = coalesce(@AverageWage,...
February 20, 2008 at 1:59 pm
Scott, thanks. With your help, I got it to work.
Bill
BEGIN
UPDATE tbl_EmployeeWageRates
SET
AverageWage = coalesce(@AverageWage, AverageWage),
FringeWage = coalesce(@FringeWage, FringeWage),
SpecialWage = coalesce(@SpecialWage, SpecialWage),
GuaranteedWage = coalesce(@GuaranteedWage, GuaranteedWage),
FutureUseField1 = coalesce(@FutureUseField1, FutureUseField1),
WageChangeDate = coalesce(@WageChangeDate, WageChangeDate)
WHERE
Employee_PK_ID =
(
Select...
February 19, 2008 at 8:08 pm
That's the kind of direction I was hoping for. Thanks everyone.
Bill
February 19, 2008 at 5:24 pm
K,
Thanks for the input. Being a rookie at this, I must pat myself on the back. I saw that I needed the ()'s while working on the other part.
Thanks,
Bill
February 18, 2008 at 2:21 pm
Adam, I think we... excuse me...you, got it! I made a few very minor changes for my understanding and readability, but you got the logic. Thanks for your patience...
February 17, 2008 at 12:02 pm
Viewing 15 posts - 1 through 15 (of 20 total)