340 likes | 456 Vues
Welcome To. ReportSmith & ADP PC/Payroll For Windows. Welcome To. Database Grouping CheckView Tables & SUM(DISTINCT ). Presented By. CharlesCook.com Specializing In ReportSmith Training & Consulting Charles@CharlesCook.com. Challenge. CheckView Tables
E N D
Welcome To... ReportSmith & ADP PC/Payroll For Windows
Welcome To... Database Grouping CheckView Tables & SUM(DISTINCT )
Presented By CharlesCook.com Specializing In ReportSmith Training & Consulting Charles@CharlesCook.com
Challenge • CheckView Tables • Many Records For Each Employee Check • One Code Per Record • Can Not Add Up Most Amounts
CheckView Tables • Architecture • One Record Per • Employee • Check • Code
CheckView Tables • Architecture • One Record Per • Employee • CompanyCode • File# • SocialSecurity# • Check • Code
CheckView Tables • Architecture • One Record Per • Employee • Check • CheckViewChkSeq# • CheckViewPayroll# • CheckViewWeek# • CheckViewYear# • Code
CheckView Tables • Architecture • One Record Per • Employee • Check • Code • CheckViewDedCode • CheckViewDedAmt
CheckView Tables • Vertical Data • Each Code And Amount Pair Is On A Separate Record
CheckView Tables • Vertical Data
CheckView Tables • Horizontal Data • All The Other Columns Have The Same Values On Each Record
CheckView Tables • Horizontal Data
Solution • Database Grouping • Records Are Compressed • Data is Extracted And/Or Summarized • Using Derived Fields And Summary Functions
Database Grouping • Records Are Compressed • Using Unique Values Of Fields • Include In Report • Value Only
Database Grouping • Always Include In Report • CompanyCode • File# • SocialSecurity# • CheckViewChkSeq# • CheckViewPayroll# • CheckViewWeek# • CheckViewYear#
Database Grouping • Always Include In Report • This Will Result In One Record Per • Employee • Check
Database Grouping • Always Include In Report • This Will Result In One Record Per • Employee • CompanyCode • File# • SocialSecurity# • Check
Database Grouping • Always Include In Report • This Will Result In One Record Per • Employee • Check • CheckViewChkSeq# • CheckViewPayroll# • CheckViewWeek# • CheckViewYear#
Database Grouping • Always Include In Report • Before Database Grouping
Database Grouping • Always Include In Report • After Database Grouping
Database Grouping • Code And Amount Must Be Query Only • Or The Values Will Change How The Records Are Compressed • Only Used In SQL Derived Fields
Database Grouping • All Other Amounts Should Be Query Only • Only Used In SQL Derived Fields
Database Grouping • Any Other Fields Can Be Include In Report Or Query Only • Each Record Will Have The Same Value And Will Not Effect The Database Grouping
Solution • Summarized Data • Using Derived Fields And Summary Functions • Add Up Compressed Vertical Data • Sum All Values SUM(Column Name)
Data is Summarized • Summarized Data • Add Up All Deduction Amounts SUM(CheckViewDedAmt)
Solution • Extracted Data • Using Derived Fields And Summary Functions • Extract One Occurrence Of The Duplicated Values • Sum Only Unique Values SUM(DISTINCT Column Name)
Data is Summarized • Extracted Data • Add Up Only Unique Gross Pay Amounts SUM(DISTINCT CheckViewGrossPayA)
Data is Summarized • Summary Functions
Conclusion • Use Database Grouping To Get One Record Per Check • Remember • What You Include In Your Report Will Be Used To Compress The Records
Conclusion • Always Include In Report • CompanyCode • File# • SocialSecurity# • CheckViewChkSeq# • CheckViewPayroll# • CheckViewWeek# • CheckViewYear#
Conclusion • Summarize Vertical Data • Use Sum() To Add Up Compressed Vertical Data
Conclusion • Extract Horizontal Data • Use Sum(DISTINCT ) To Extract One Occurrence Of The Duplicated Values
Presented By CharlesCook.com Specializing In ReportSmith Training & Consulting Charles@CharlesCook.com