15,891,529 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 C++ questions
View Javascript questions
View Visual Basic questions
View Python 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 jamuro77 (Top 7 by date)
jamuro77
14-Dec-16 2:41am
View
I don't understand well your results. What is obtained date in tour first point? The minimum date? And with regard to second point, is "date difference" set with origin in "initial date"?
jamuro77
9-Dec-16 3:21am
View
I know it. For this reason, you have several solutions:
1) Use your first query to load a new variable table and then apply UNPIVOTING as described above.
2) Use a Common table expression to encapsulate your first query and then apply UNPIVOTING over it.
You will get the desired results.
jamuro77
9-Dec-16 1:46am
View
It would be necessary to know more about, at least two issues:
1) Which is the correct result set you are looking for?
2) Further information about data in tables
jamuro77
1-Dec-16 6:13am
View
You can't group two times by the same fields. There's no sense. You can obtain "count" or "sum" separately but not together. I think that you need a field not grouping by EmployeeID and UserID. Expected results would be necessary to elaborate a solution...
jamuro77
30-Nov-16 3:11am
View
Could you add the tables structure related to your query? If not, It's diffcult to know...
jamuro77
27-Nov-16 4:24am
View
Happy the code has been useful for you!
If you want to know a little more about this you can have a look and rate an article that I wrote some days ago, "Using PIVOT with SQL Server"
jamuro77
26-Nov-16 16:14pm
View
Indexes can be "unique" or "not unique". If you want to have unique values in one field (or field combinations), you have to create a "unique" index on those fields. In addition to this, you can also create "unique" restrictions on columns.
Show More