Member
| This is the error mesage I get from reportcaster: ______________________________________ Schedule ID: S0vkpqep7a01, Job Description: Radiation Installation Reports Completed with errors/warnings Task error:THE ON FIELD IS NOT THE FIRST BY FIELD _______________________________________________
It should be bursting on the first column in the select and the column specified in the order by clause.
Here is the code for the report:
_____________________________________ SQL SQLORA SET SERVER ceh1;
-*
SQL SQLORA
SELECT radinst.ri_facility.cnty_id , TO_CHAR(radinst.ri_inspection.insp_date,'MM/DD/YYYY') AS Inspect_Date, radinst.ri_facility.ri_register_id Register_ID, radinst.ri_facility.type_id, radinst.ri_facility.business_name, radinst.ri_facility.contact_name, radinst.ri_facility.city, radinst.ri_facility.zipcode, '('||SUBSTR(radinst.ri_facility.phone,1,3)||') '||SUBSTR(radinst.ri_facility.phone,4,3)||'-'||SUBSTR(radinst.ri_facility.phone,5,4) AS PHONE, radinst.ri_surveyor.surv_first_name || ' ' || radinst.ri_surveyor.surv_last_name AS SURVEYOR
FROM radinst.ri_inspection, radinst.ri_facility, radinst.ri_county, radinst.ri_surveyor
WHERE // a big where clause //
order by radinst.ri_facility.cnty_id ASC
;
TABLE HEADING "NYS Department of Health" "Bureau of Environmenatl Radiation Protection" "Non-Compliance Periodic County Inspections Lacking a Compliance Follow-up" " " "Report Date <+0>&DATEtrMDYY <+0> " ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE SET ONLINE-FMT HTML ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * UNITS=IN, PAGESIZE='SCREEN', LEFTMARGIN=0.000000, RIGHTMARGIN=0.000000, TOPMARGIN=0.000000, BOTTOMMARGIN=0.000000, SQUEEZE=ON, ORIENTATION=PORTRAIT, $ TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=9, COLOR='BLACK', BACKCOLOR='NONE', STYLE=NORMAL, RIGHTGAP=0.125000, TOPGAP=0.013889, BOTTOMGAP=0.027778, $ TYPE=DATA, BACKCOLOR=RGB(210 210 210), $ TYPE=DATA, COLUMN=ROWTOTAL(*), STYLE=BOLD, $ TYPE=TITLE, SIZE=9, COLOR='WHITE', BACKCOLOR=RGB(0 128 255), STYLE=BOLD, $ TYPE=TABHEADING, SIZE=14, COLOR='NAVY', STYLE=BOLD, $ TYPE=TABFOOTING, SIZE=14, COLOR='NAVY', STYLE=BOLD, $ TYPE=HEADING, SIZE=10, COLOR='NAVY', STYLE=BOLD, $ TYPE=HEADING, LINE=1, OBJECT=TEXT, ITEM=1, SIZE=10, $ TYPE=HEADING, LINE=2, OBJECT=TEXT, ITEM=1, SIZE=10, $ TYPE=HEADING, LINE=3, OBJECT=TEXT, ITEM=1, SIZE=10, $ TYPE=FOOTING, SIZE=14, COLOR='NAVY', STYLE=BOLD, $
ENDSTYLE END |