5 replies
by mclemorekr Accepted solution
by robo_dev Accepted solution
It might be helpful to post the query.
What data type have you specified in the query parameters?
by mclemorekr Accepted solution
by tony hopkinson Accepted solution
I suspect what's happening is
a row meets you criteria and provides you with up to another three dates which may not, anything that effectively takes the four dates in a row and turns them in to a column, is going to look wrong.
What you need to do is switch them before you select e.g.
Select ID, Date1, 1 as DateNumber Where Date1 Between ...
Union
SElect ID,Date2,2 where Date2 Between
Union
SElect ID,Date3,3 where Date3 Between
Union
SElect ID,Date4,4 where Date4 Between
Then you can bag them up into the sets you need to drive the various reports.
Or something like that anyway.
HtHs
by tony hopkinson Accepted solution
If the database had been normalised you'd have had something like
Jobs
JobID, Job Description...
JobStatus
JobStatusKey, JobID, JobStatusType,JobDate
So a report on jobs where there had been some change in April, (or no change in April even), would have been a quick join with a subreport to cope with jobs that changed status more than once in the time period.
So what you have to do is create a query that wll give you the equivalent of the JobStatus table above for your stuff.
After that reporting should be simple it expects and is designed for normalised data.
This discussion is closed to new replies.
Trending Software posts
Sort by Trending