Version: XI
Database: SQL
Tables: ApartmentName <left outer join> ApartmentUnits <left outer join> PCalls
Total#Units (Which is not Joined--Just a sum of ApartmentName.#ofUnits
ApartmentName
Fields: Business#, BusinessName, #ofUnits
ApartmentUnits
Fields: Unit#, Business#, Address
PCalls
Fields: Call#, Case#, Address,CALL_ENTRY_DATE
Example of Output:
(REPORT Header Section)
Total CFS for this Bulletin: 350
Total Number of Apartment Complexes: 195
Total Number of Apartment Units: 19,365
Average Apartment Community Size: 99.16
City Wide Ratio: 0.3763
(End of Header Section)
ApartmentName Address #ofUnits CFS INC RATIO LEVEL RANK
London Bell 123 Main 100 10 3 0.10 -0.27 ?
Chase 1010 Jack 689 100 43 0.14 -0.23 ?
Grouping:
Group Header#1 <ApartmentName.BusinessName>
Group Header#2 <ApartmentUnits.Address>
Details: Suppressed
Call#, Report#, Address, @CountofCFS, @CountofINC
Formulas:
@CountofCFS --if {PCalls.CALL_ENTRY_DATE} in YearToDate then 1
@CountofINC --if ({PCalls.CALL_ENTRY_DATE}) in YearToDate and ({PCalls.REPORT_NO})<>" " then 1
@CityRatio --Sum ({@Count of CFS})/{TotalUnits.SumOf# of Units}
Formating:
CityRatio--NumberVar CITY
#ofUnits--NumberVar UNITS
CFS--NumberVar CFS
RATIO--NumberVar
WhilePrintingRecords;
NumberVar CFS;
NumberVar UNIT;
NumberVar Ratio:= (CFS/UNIT);
ToText((CFS/UNIT),4)
LEVEL--NumberVar
WhilePrintingRecords;
NumberVar CITY;
NumberVar RATIO;
ToText((RATIO - CITY),4)
RANK?????
What I want to do is RANK the Apartments by the LEVEL. Is this possible???
I hope this is enough information and detail...
Phil
Database: SQL
Tables: ApartmentName <left outer join> ApartmentUnits <left outer join> PCalls
Total#Units (Which is not Joined--Just a sum of ApartmentName.#ofUnits
ApartmentName
Fields: Business#, BusinessName, #ofUnits
ApartmentUnits
Fields: Unit#, Business#, Address
PCalls
Fields: Call#, Case#, Address,CALL_ENTRY_DATE
Example of Output:
(REPORT Header Section)
Total CFS for this Bulletin: 350
Total Number of Apartment Complexes: 195
Total Number of Apartment Units: 19,365
Average Apartment Community Size: 99.16
City Wide Ratio: 0.3763
(End of Header Section)
ApartmentName Address #ofUnits CFS INC RATIO LEVEL RANK
London Bell 123 Main 100 10 3 0.10 -0.27 ?
Chase 1010 Jack 689 100 43 0.14 -0.23 ?
Grouping:
Group Header#1 <ApartmentName.BusinessName>
Group Header#2 <ApartmentUnits.Address>
Details: Suppressed
Call#, Report#, Address, @CountofCFS, @CountofINC
Formulas:
@CountofCFS --if {PCalls.CALL_ENTRY_DATE} in YearToDate then 1
@CountofINC --if ({PCalls.CALL_ENTRY_DATE}) in YearToDate and ({PCalls.REPORT_NO})<>" " then 1
@CityRatio --Sum ({@Count of CFS})/{TotalUnits.SumOf# of Units}
Formating:
CityRatio--NumberVar CITY
#ofUnits--NumberVar UNITS
CFS--NumberVar CFS
RATIO--NumberVar
WhilePrintingRecords;
NumberVar CFS;
NumberVar UNIT;
NumberVar Ratio:= (CFS/UNIT);
ToText((CFS/UNIT),4)
LEVEL--NumberVar
WhilePrintingRecords;
NumberVar CITY;
NumberVar RATIO;
ToText((RATIO - CITY),4)
RANK?????
What I want to do is RANK the Apartments by the LEVEL. Is this possible???
I hope this is enough information and detail...
Phil