Category: PIPER-Rx Reports (Free) Name: FOT001-11 Attribute Naming ReportDefFileName: .\FOT001-11 Attribute Naming.fr3 ===Begin Comments=== Copyright (C) 2009 G Piper This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. a copy of the GNU Affero General Public Licenses provided is part of the down load Terms and Conditions available on our site www.piper-rx.com or you can refere to www.gnu.org/licenses/gpl.html ===End Comments=== ===Begin SQL=== -- **************************************************** -- ** PIPER-RX - Free Reports -- ** -- ** Copyright (C) 2009 G.Piper -- ** -- ** Attribute Naming: "What standard do you use" ? -- ** -- ** ------------------------------------------------- -- ** Version 1.0 Feb-09 G.Piper Initial Creation -- ** Version 1.1 Aug-09 G.Piper Referenced GV$DATABASE -- **************************************************** SELECT report_headings.report_date, report_headings.sid_name, :SCHEMA_OWNER schema_owner, column_name, data_type, decode(data_type, 'NUMBER',data_precision||','||data_scale,data_length) attribute_length, count(*) occurances FROM dba_tab_columns, ( SELECT to_char(sysdate, 'DD-Mon-YY HH24:MI') report_date, vd.name sid_name FROM gv$database vd WHERE vd.inst_id = 1 ) report_headings WHERE owner = :SCHEMA_OWNER GROUP by report_headings.report_date, report_headings.sid_name, column_name, data_type, decode(data_type, 'NUMBER',data_precision||','||data_scale,data_length) ORDER by column_name ===End SQL=== ParamName: SCHEMA_OWNER ParamType: Schema ParamValue: ParamExp: 'PO' ===Begin Report Definition===