Viewing 14 posts - 91 through 104 (of 104 total)
I did and it ran for a LONG time. Over 20 minutes. I had to stop it. :-/
April 7, 2009 at 1:40 pm
GSquared (4/7/2009)
April 7, 2009 at 11:58 am
Chris Morris (4/7/2009)
Change this...---
d.loginTime,
---
d.loginTimeSeconds,
---
d.LogoutTime
---
to this...
---
MAX(d.loginTime) AS loginTime,
---
MAX(d.loginTimeSeconds) AS loginTimeSeconds,
---
MAX(d.LogoutTime) AS LogoutTime
---
19 minutes...
April 7, 2009 at 11:36 am
Chris Morris (4/7/2009)
Change this...---
d.loginTime,
---
d.loginTimeSeconds,
---
d.LogoutTime
---
to this...
---
MAX(d.loginTime) AS loginTime,
---
MAX(d.loginTimeSeconds) AS loginTimeSeconds,
---
MAX(d.LogoutTime) AS LogoutTime
---
So far,...
April 7, 2009 at 11:32 am
Chris Morris (4/7/2009)
DECLARE @Startdate DATETIME, @Enddate DATETIME
SELECT @Startdate = convert(datetime, '02-APR-09' + ' 03:00:00', 101),
@Enddate = convert(datetime, '02-APR-09' + ' 20:00:00', 101)
--
SELECT itl.user_id, au.notes, au.shift,
--
sum(update_qty...
April 7, 2009 at 11:11 am
I get: Column 'd.loginTime' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
April 7, 2009 at 11:07 am
donato1026 (4/7/2009)
I wish there was a tool out there that analyzed your queries and syntax and made suggestions on how to improve upon it.
Good point.
Anyone have any other ideas in...
April 7, 2009 at 11:05 am
I wish there was a tool out there that analyzed your queries and syntax and made suggestions on how to improve upon it.
April 7, 2009 at 10:59 am
Chris Morris (4/7/2009)
April 7, 2009 at 10:21 am
Chris Morris (4/7/2009)
April 7, 2009 at 10:18 am
I have made the CREATE TABLE scripts for now... I can post those and then get sample data over. Would that help?
April 7, 2009 at 9:58 am
Like I said... Being new at this, I am not sure what the best way is to do this. I just know it runs VERY slow. A little...
April 7, 2009 at 9:44 am
Thank you for you response.
This is code left over from the person I replaced. However, I am not an SQL person per se... So, that being said, I'm...
April 7, 2009 at 8:46 am
Viewing 14 posts - 91 through 104 (of 104 total)