Viewing 15 posts - 1 through 15 (of 32 total)
Will do...thanks alot...it's been a while since I've been on the site.
September 12, 2007 at 1:27 pm
the split function worked well...thanks alot
August 21, 2006 at 2:05 pm
I wish I could wish dynamic sql...but it is frowned on at my work. Any other ideas?
August 21, 2006 at 11:56 am
You're right it's not the simplest case
In response to Ray's question the NameID is just a reference to actual ID number of the...
March 2, 2006 at 12:07 pm
Makes sense and works good. I don't know why when i first try to get the min & max i didn't seem to work. May have been an issue w/...
March 2, 2006 at 5:56 am
Thanks alot, I could have sworn that I ran that statement and didn't get back the max!
So now i guess that I can't...
February 27, 2006 at 6:04 pm
ALL:
Thanks alot for the advice. The method of creating and querying a table worked best.
Thanks again.
Galahad
February 27, 2006 at 7:56 am
Thanks, I'll check out the link that might be just what I need...
August 25, 2005 at 4:37 pm
Thanks for your response. The issue that I'm having is described below:
In the second join, I use the column ADRStatusCode in the select and the group. By doing this I...
August 25, 2005 at 4:07 pm
Hi,
I ended up moving the code in to a new view that references the main one. This code is below:
CREATE VIEW dbo.VP_KSS_HoursRollup
AS
SELECT
Normal.PERSONFULLNAME,Normal.PERSONNUM,
Normal.ApplyDate,Normal.LABORLEV6NM,Normal.HomeLaborAcc,Normal.Status,Normal.FTPT,Normal.EMPLOYEEID,Normal.Department,Normal.Unit,
Normal.CURRPAYPERIODSTART,Normal.CURRPAYPERIODEND,Normal.PREVPAYPERIODSTART,Normal.PREVPAYPERIODEND,Normal.NEXTPAYPERIODSTART,
Normal.NEXTPAYPERIODEND,Normal.HOMESTARTDATE,Normal.HOMEENDDATE,
TotalReg,TotalOT,TotalDBL,cast(TotalReg + TotalOT + TotalDBL AS INTEGER(9))as TotalsRollup
FROM
(
SELECT...
August 24, 2005 at 1:04 pm
Ok, my mental block is gone. I keep forgetting about using derived tables which is so helpfull...
The sql ran well so i'll just incorporate the additional hours columns (overtime, double)...
August 12, 2005 at 6:51 am
Yes your correct. I know it sounds a bit strange but it's sql for a crystal report that needs to be tweaked.
I'm thinking that I need an extra column for...
August 11, 2005 at 2:53 pm
I think where the problem was occuring was that I have to select more than column. i.e:
select PERSONFULLNAME,PERSONNUM,Unit,Department,ApplyDate,SUM(Regular) Total from VP_KSS_Overtime
where --ApplyDate >= HomeStartDate
ApplyDate between CURRPAYPERIODSTART and CURRPAYPERIODEND
--AND DateDiff(day,ApplyDate,CurrPayPeriodEnd)...
August 11, 2005 at 2:34 pm
Thanks for the help. I combined your code in my existing sproc which the final version is shown below. I've really learned alot from your advice.
CREATE PROCEDURE [dbo].[spLoadPunchTrends]
@InitLoad...
August 3, 2005 at 8:39 am
I've been trying to see how to get this into a stored proc. Basically I think I would need to repeat the select statement for each one of the entry...
August 2, 2005 at 11:54 am
Viewing 15 posts - 1 through 15 (of 32 total)