Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
If you can't
login and post questions or you are having trouble viewing forum posts:
Click Here
|
Callback
Support |
If you live in USA, UK, Canada, Australia or New
Zealand, you can leave us details on your question and request us to call you back and discuss
them with you personally (charges apply). |
Click Here
|
Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
|
How do I run a Time by Name Report? |
Author |
Message |
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2007-02-16 10:00:32 |
The following interesting Time By Name Report was created in QuickBooks to show the number of hours/month for each employee:
With QODBC the same report can be generated using stored procedure reports like this:
sp_report TimeByName show Label, DurationHours_1 as Oct07, DurationHours_2 as Nov07, DurationHours_3 as Dec07, DurationHours_4 as Jan08, DurationHours_5 as Feb08, DurationHours_6 as Mar08, DurationHours_7 as Apr08, DurationHours_8 as May08, DurationHours_9 as Jun08, DurationHours_10 as Jul08, DurationHours_11 as Aug08, DurationHours_12 as Sep07, DurationHours_13 as TOTAL parameters DateMacro='ThisYear', SummarizeColumnsBy='Month' where Label like 'Total%'
It's not possible to get the hire and termination date within the one SQL statement above, but if you needed them you can extract them by running:
SELECT Name, SSN, HiredDate as "Hired Date", ReleasedDate as "Termination Date", IsActive as "Active" FROM Employee
|
|
|
|
Doug |
|
Group | : Members |
Posts | : 4 |
Joined | : 2009-01-06 |
|
Profile |
|
Posted : 2009-01-09 07:13:22 |
In your example, the qb report has the actual months as column headers and to get that in the qodbc report you use code 'DurationHours_X as XXXX'.
Is there a way to get the same column headers out as is in the qb report? I'm sorting by weeks and my query string would be massive if I have to qualify each header in the query. Also, I don't want to hard code the weeks since they start on different day from year to year.
I've used the 'Duration_Title' in the query, but it returns another 52 columns, and what I want is the column headers in the results to match the qb report.
Thanks.
|
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2009-01-09 09:03:13 |
You can't get the labels from the report to appear on top of the query, but you can get them next to the values like this:
sp_report TimeByName show ReportSubtitle, Label, Duration_1_Title, DurationHours_1, Duration_2_Title, DurationHours_2, Duration_3_Title, DurationHours_3, Duration_4_Title, DurationHours_4, Duration_5_Title, DurationHours_5, Duration_6_Title, DurationHours_6, Duration_7_Title, DurationHours_7, Duration_8_Title, DurationHours_8, Duration_9_Title, DurationHours_9, Duration_10_Title, DurationHours_10, Duration_11_Title, DurationHours_11, Duration_12_Title, DurationHours_12, Duration_13_Title, DurationHours_13 parameters DateMacro='ThisYear', SummarizeColumnsBy='Month' where Label like 'Total%'
|
|
|
|
|