Viewing 15 posts - 1 through 15 (of 33 total)
Thanks DesNorton, that works great!
Much appreciated!!
April 11, 2017 at 12:13 pm
Well now I just feel stupid. 🙂
Thanks for the help Matt.
October 16, 2014 at 10:19 am
Thanks for the response JonFox.
What does each row in @EmployeeVacation represent?
Each row represents the total number of vacation hours an employee is entitled to per year. For example, an...
December 18, 2011 at 6:44 pm
Actually I was able to get it to work using this.
But there has got to be a more elegant way...
;with Total AS
(SELECT EV.EmployeeId, EV.TotalVacation FROM @EmployeeVacation EV
WHERE ev.id in (SELECT...
December 16, 2011 at 11:09 pm
Thanks BrainDonor.
I did search before posting and was able to figure most of the issue out.
The part I am struggling with is determining how to ignore the year when the...
December 7, 2011 at 11:07 am
Thanks happycat, that worked great!
This leads me to another question now.
How can I update in a similar fashion:
UPDATE @ExampleTable SET
"SomeValue" = 100 - (SELECT SUM(CASE WHEN ET.SomeValue > 1 THEN...
December 6, 2011 at 9:54 pm
Thanks Burninator and Chrissy321, that did the trick.
November 22, 2011 at 9:14 am
Damnit, I messed another detail up...
The value in the RemainingVacationDays column was wrong. It should be 82, not 254.
254 was the RemainingVacationDays value on Jan 1, 2011. This is higher...
November 20, 2011 at 9:00 pm
Thanks for the help mister.magoo!!
The query works great for retrieving the remaining vacation to date.
However, the report allows the user to select a date range to query the remaining vacation.
For...
November 20, 2011 at 2:59 pm
Why do you work in hours for absence history and days for vacation?
The front end allows a user to enter a vacation entry by start/end date and then the length...
November 19, 2011 at 7:19 pm
Thanks for your help Craig.
Here is the schema/data.
Yes, I have just hardcoded some values in there for simplicity sake.
I am only using the last entry in the vacations table becuase...
November 17, 2011 at 6:46 pm
Thanks for the quick response Craig, it's greatly appreciated.
Yes you are correct the filtered hours should be 16, not 20 in this example.
I tried to simplify my post as much...
November 17, 2011 at 5:06 pm
Sorry, I am doing a really poor job of explaining the functionality.
Let me take another stab at it.
A Manager creates a performance review for an employee, this is the master...
November 4, 2011 at 2:02 pm
Hi toddasd,
Thanks for the response.
-"For the delete, make MasterReviewID on PeerReview reference MasterReview with a cascading delete."
Can you please provide an example?
-"But for the insert, I don't quite get it...what...
November 2, 2011 at 5:32 pm
Viewing 15 posts - 1 through 15 (of 33 total)