Viewing 15 posts - 1 through 15 (of 15 total)
I figured it out, I figured it out, I FIGURED IT OUT!!!!!
select
supertable.Date
, supertable.[Lname, Fname]
, supertable.Last
, supertable.First
, supertable.File AS FileNum
, supertable.Title
, supertable.PayrollTitle
, supertable.Bank
, supertable.[Active Staff] AS Active
, supertable.Reason
, xxxAbsenceReasons.ReasonDesc
,...
June 4, 2013 at 2:00 pm
same syntax error...
select
supertable.Date
, supertable.[Lname, Fname]
, xxxSTAFF.Last
, xxxSTAFF.First
, xxxSTAFF.File AS FileNum
, xxxSTAFF.Title
, xxxSTAFF.PayrollTitle
, xxxSTAFF.Bank
, xxxSTAFF.[Active Staff] AS Active
, supertable.Reason
, xxxAbsenceReasons.ReasonDesc
, xxxAbsenceReasons.DOECode
, supertable.Substitute
, supertable.Comment
, supertable.OP198
, supertable.OP201
, supertable.EIS
, xxxBanks.Desc AS BankTitle
,...
June 4, 2013 at 10:56 am
As suggested, I revised the code (see below) but now I'm getting the error "Syntax error in JOIN expression". I can't seem to spot the issue...:unsure:
select
supertable.Date
,...
June 4, 2013 at 10:31 am
...I need to study this row number() thing. Will let you know how it goes when I straigten it out. Thanks for being so patient with my newbieness.
February 5, 2013 at 2:23 pm
:0( Now it says I'm missing the "GROUP BY" clause... (still working on it)...
February 5, 2013 at 2:11 pm
Lynn Pettis (2/5/2013)
momba (2/5/2013)
February 5, 2013 at 1:51 pm
RE: Lowell's post....results are still too high... when I try to follow your logic in the code I get lost in the syntax around "GROUP BY" so I started back...
February 5, 2013 at 12:43 pm
I'm trying to pull out the last record for each employee, i.e. if they appear in the table two or more times, I just want the record attached to the...
February 5, 2013 at 11:55 am
Lynn Pettis (1/25/2013)
Sean Lange (1/25/2013)
January 25, 2013 at 11:18 am
Sean Lange (1/25/2013)
momba (1/25/2013)
Sean Lange (1/25/2013)
January 25, 2013 at 11:13 am
Wow, before I even post my reply you've answered my question.
(you're like a real Jedi knight)
...I'm going to try your method now.
January 25, 2013 at 9:38 am
Sean Lange (1/25/2013)
January 25, 2013 at 9:33 am
... I came across one last issue. How can I make the " While @loopYrbeg < year ( getdate() )" statement conditional?
More specifically IF month ( getdate() ) <...
January 25, 2013 at 9:25 am
Ohhhhh (duh). That makes sense.
Thank you!!!! 😀
January 25, 2013 at 9:02 am
Yes, this is getting really close (thank you)... but how do I union the current table with all the archives?
i.e.
select * TableCurrent
WHERE BRANCHID='950' AND (DISC_DTE IS NULL OR...
January 25, 2013 at 8:34 am
Viewing 15 posts - 1 through 15 (of 15 total)