Hello,
Your formatter is a annoying. Here is my sql script:
SELECT ppf.person_id
,ppf.full_name
,NVL(ppf.employee_number, ppf.attribute1) emp_num
,UPPER(SUBSTR(ppf.email_address,1,INSTR(ppf.email_address,'@')-1)) email_ID
FROM apps.per_all_assignments_f paa
,apps.per_person_types ppt
,apps.per_all_people_f ppf
,apps.per_assignment_status_types pst
WHERE ppf.person_id = paa.person_id
AND paa.primary_flag = 'Y'
AND ppf.person_type_id = ppt.person_type_id
AND ppt.system_person_type LIKE 'EMP%'
AND paa.assignment_status_type_id = pst.assignment_status_type_id
AND pst.per_system_status = 'ACTIVE_ASSIGN'
AND TRUNC(SYSDATE) BETWEEN paa.effective_start_date AND paa.effective_end_date
AND TRUNC(SYSDATE) BETWEEN ppf.effective_start_date AND ppf.effective_end_date
not like this:
SELECT ppf.person_id
,ppf.full_name
,NVL(ppf.employee_number, ppf.attribute1) emp_num
,UPPER(SUBSTR(ppf.email_address
,1
,INSTR(ppf.email_address, '@') - 1)) email_ID
FROM apps.per_all_assignments_f paa
,apps.per_person_types ppt
,apps.per_all_people_f ppf
,apps.per_assignment_status_types pst
WHERE ppf.person_id = paa.person_id
AND paa.primary_flag = 'Y'
AND ppf.person_type_id = ppt.person_type_id
AND ppt.system_person_type LIKE 'EMP%'
AND paa.assignment_status_type_id = pst.assignment_status_type_id
AND pst.per_system_status = 'ACTIVE_ASSIGN'
AND TRUNC(SYSDATE) BETWEEN paa.effective_start_date AND
paa.effective_end_date
AND TRUNC(SYSDATE) BETWEEN ppf.effective_start_date AND
ppf.effective_end_date
-----------------------------
Problem:
1.Item that contains functions or decode in select should be in one line if possible
Here is beautifier options that you should consider having:
Select/Insert/Update
Items without functions
One item per line
Items with functions
On one line if possible
2. In where clause between date1 and date2 should be in same line
3. Beautifier does not format the create table/index statements.
Your formatter is a annoying. Here is my sql script:
SELECT ppf.person_id
,ppf.full_name
,NVL(ppf.employee_number, ppf.attribute1) emp_num
,UPPER(SUBSTR(ppf.email_address,1,INSTR(ppf.email_address,'@')-1)) email_ID
FROM apps.per_all_assignments_f paa
,apps.per_person_types ppt
,apps.per_all_people_f ppf
,apps.per_assignment_status_types pst
WHERE ppf.person_id = paa.person_id
AND paa.primary_flag = 'Y'
AND ppf.person_type_id = ppt.person_type_id
AND ppt.system_person_type LIKE 'EMP%'
AND paa.assignment_status_type_id = pst.assignment_status_type_id
AND pst.per_system_status = 'ACTIVE_ASSIGN'
AND TRUNC(SYSDATE) BETWEEN paa.effective_start_date AND paa.effective_end_date
AND TRUNC(SYSDATE) BETWEEN ppf.effective_start_date AND ppf.effective_end_date
not like this:
SELECT ppf.person_id
,ppf.full_name
,NVL(ppf.employee_number, ppf.attribute1) emp_num
,UPPER(SUBSTR(ppf.email_address
,1
,INSTR(ppf.email_address, '@') - 1)) email_ID
FROM apps.per_all_assignments_f paa
,apps.per_person_types ppt
,apps.per_all_people_f ppf
,apps.per_assignment_status_types pst
WHERE ppf.person_id = paa.person_id
AND paa.primary_flag = 'Y'
AND ppf.person_type_id = ppt.person_type_id
AND ppt.system_person_type LIKE 'EMP%'
AND paa.assignment_status_type_id = pst.assignment_status_type_id
AND pst.per_system_status = 'ACTIVE_ASSIGN'
AND TRUNC(SYSDATE) BETWEEN paa.effective_start_date AND
paa.effective_end_date
AND TRUNC(SYSDATE) BETWEEN ppf.effective_start_date AND
ppf.effective_end_date
-----------------------------
Problem:
1.Item that contains functions or decode in select should be in one line if possible
Here is beautifier options that you should consider having:
Select/Insert/Update
Items without functions
One item per line
Items with functions
On one line if possible
2. In where clause between date1 and date2 should be in same line
3. Beautifier does not format the create table/index statements.