Hi im new to Crystal reports v8. I have a few questions as I'm relativley new to this application. Sorry if my lingo is incorrect:
1. I have set up a report that uses 'Expert Select' on a particular column - to filter away any rows containing non-positive numbers in that particular column. The result is further grouped. So essentially I am doing a:
select * from matters
where matters.a > 0
group by matters.b
If i include all numbers, i.e. positive, negative and zero, then my query is:
select * from matters
group by matters.b
What i need to incorporate into the report is a percentage calculation for each grouping, namely the percentage of positive numbers to all numbers: count(matters.a > 0 in the group) / count (all matters.a in the group). How can i calculate a count of all positive, negative and zero numbers if i have applied an Expert Select to select only positive numbers?
2. How do you write an SQL "where date between '01/JAN/2005' and '31/JAN/2005'" in the Crystal Formula Editor when the date is a date-time field i.e. is it:
date in '01/JAN/2005 00:00:00am' and '31/JAN/2005 00:00:00am'?
date in '01/JAN/2005 00:00:01am' and '31/JAN/2005 11:59:59pm'?
I want all records with a date from the very first second of 01/JAN/2005 to the very last second of 31/JAN/2005
3. How do i produce a landscape report page setup? It's set on portrait.
Any help most appreciated!
Cheers, voirin
1. I have set up a report that uses 'Expert Select' on a particular column - to filter away any rows containing non-positive numbers in that particular column. The result is further grouped. So essentially I am doing a:
select * from matters
where matters.a > 0
group by matters.b
If i include all numbers, i.e. positive, negative and zero, then my query is:
select * from matters
group by matters.b
What i need to incorporate into the report is a percentage calculation for each grouping, namely the percentage of positive numbers to all numbers: count(matters.a > 0 in the group) / count (all matters.a in the group). How can i calculate a count of all positive, negative and zero numbers if i have applied an Expert Select to select only positive numbers?
2. How do you write an SQL "where date between '01/JAN/2005' and '31/JAN/2005'" in the Crystal Formula Editor when the date is a date-time field i.e. is it:
date in '01/JAN/2005 00:00:00am' and '31/JAN/2005 00:00:00am'?
date in '01/JAN/2005 00:00:01am' and '31/JAN/2005 11:59:59pm'?
I want all records with a date from the very first second of 01/JAN/2005 to the very last second of 31/JAN/2005
3. How do i produce a landscape report page setup? It's set on portrait.
Any help most appreciated!
Cheers, voirin