15,744,607 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View Javascript questions
View C++ questions
View Python questions
View Java questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Inderjeet Kaur (Top 4 by date)
Inderjeet Kaur
30-Aug-12 7:17am
View
I should resize picture while saving to folder or while retrieving it?
Inderjeet Kaur
30-Aug-12 6:50am
View
How to set size of image while saving the path to database?
Inderjeet Kaur
3-Oct-11 7:15am
View
I have rectified the query and the error is
"Incorrect syntax near the keyword 'GROUP'."
SELECT 'Total' AS Total, SUM([Coding]), SUM([Unit Testing]),
SUM([User Manual]), SUM([Meetings]), SUM([Testing])
FROM (SELECT
Name,
[Coding],[Unit Testing],[User Manual],[Meetings],[Testing],
TaskDate,
COALESCE([Coding],0) + COALESCE([Unit Testing],0) +
COALESCE([User Manual],0) + COALESCE([Meetings],0) +
COALESCE([Testing],0) AS Total
FROM (SELECT
TaskTitle As Title,
Hours,
Employee_Name AS Name,
TaskDate
FROM TimeSheet TS,
employee E,
Timesheetdetails TSD,
Task T
WHERE
TS.EmployeeID = E.Employee_EmpID AND
TSD.TaskID = T.TaskID AND
TS.TImeSheetID = TSD.TimeSheetID AND
T.Status='A' AND
TS.ProjectID = 43 AND
TSD.TaskDate >='09/26/2011' AND
TSD.TaskDate<='10/02/2011'
) up
PIVOT (SUM(Hours) FOR Title IN ([Coding], [Unit Testing],
[User Manual],
[Meetings],[Testing])) AS pvt
)
GROUP BY SUM([Coding]), SUM([Unit Testing]), SUM([User Manual]),
SUM([Meetings]), SUM([Testing])
Inderjeet Kaur
28-Sep-11 8:04am
View
I have 50 employees how will i bring them to header and assign their hours to them downunder