Introduction to Query Part 3. Query Topics Report Breaks Totals and subtotals Forms of Output ...
-
Upload
willa-hancock -
Category
Documents
-
view
215 -
download
0
Transcript of Introduction to Query Part 3. Query Topics Report Breaks Totals and subtotals Forms of Output ...
![Page 1: Introduction to Query Part 3. Query Topics Report Breaks Totals and subtotals Forms of Output Detail verses summary Output Types Data base file.](https://reader036.fdocuments.in/reader036/viewer/2022082613/5697bff81a28abf838cbf576/html5/thumbnails/1.jpg)
Introduction to QueryPart 3
![Page 2: Introduction to Query Part 3. Query Topics Report Breaks Totals and subtotals Forms of Output Detail verses summary Output Types Data base file.](https://reader036.fdocuments.in/reader036/viewer/2022082613/5697bff81a28abf838cbf576/html5/thumbnails/2.jpg)
Query Topics Report Breaks
Totals and subtotals
Forms of Output Detail verses summary
Output Types Data base file
![Page 3: Introduction to Query Part 3. Query Topics Report Breaks Totals and subtotals Forms of Output Detail verses summary Output Types Data base file.](https://reader036.fdocuments.in/reader036/viewer/2022082613/5697bff81a28abf838cbf576/html5/thumbnails/3.jpg)
Report Breaks
Totals and Subtotals
0 – Final Total
1 – 6 Total Levels
![Page 4: Introduction to Query Part 3. Query Topics Report Breaks Totals and subtotals Forms of Output Detail verses summary Output Types Data base file.](https://reader036.fdocuments.in/reader036/viewer/2022082613/5697bff81a28abf838cbf576/html5/thumbnails/4.jpg)
Report Breaks 1100 John Smith $ Amount Purchased
Pig Feed 1290 BreakPig Feed 300
Total 1590 Level 2
Chemicals 2000Chemicals 2750
Total 4750 Level 2
Customer Total 6340 Level 1
1300 Jimmy JonesPig Feed 505Pig Feed 900
Total 1405 Level 2
Chemicals 900Total 900 Level 2
Customer Total 2305 Level 1
Final Totals 8645 Level 0
![Page 5: Introduction to Query Part 3. Query Topics Report Breaks Totals and subtotals Forms of Output Detail verses summary Output Types Data base file.](https://reader036.fdocuments.in/reader036/viewer/2022082613/5697bff81a28abf838cbf576/html5/thumbnails/5.jpg)
Report Breaks
Define Report Breaks Type break level (1-6) for up to 9 field names, press Enter. (Use as many fields as needed for each break level.) Break Sort Level Prty Field Text Len Dec 1 10 T02.TDCNO Customer Number 7 0 T03.CSLKNM Customer Lookup Name 25 2 20 T02.TDITEM Item Number 14 T02.TDDESC Description 35 T02.TDQTY Quantity 9/4 11 4 TOTAL tdamt*-1 9 2 Bottom F3=Exit F5=Report F10=Process/previous F11=Display names only F12=Cancel F13=Layout F18=Files F23=Long comment
![Page 6: Introduction to Query Part 3. Query Topics Report Breaks Totals and subtotals Forms of Output Detail verses summary Output Types Data base file.](https://reader036.fdocuments.in/reader036/viewer/2022082613/5697bff81a28abf838cbf576/html5/thumbnails/6.jpg)
Report Breaks
Format Report Break Break level . . . . . . . : 0 Type choices, press Enter. (Type &field in text to have break values inserted.) Suppress summaries . . . . N Y=Yes, N=No Break text . . . . . . . . FINAL TOTALS Level Field 1 T02.TDCNO 2 T02.TDITEM F3=Exit F5=Report F10=Process/previous F12=Cancel F13=Layout F18=Files F23=Long comment
![Page 7: Introduction to Query Part 3. Query Topics Report Breaks Totals and subtotals Forms of Output Detail verses summary Output Types Data base file.](https://reader036.fdocuments.in/reader036/viewer/2022082613/5697bff81a28abf838cbf576/html5/thumbnails/7.jpg)
Report Breaks
Format Report Break Break level . . . . . . . : 1 Type choices, press Enter. (Type &field in text to have break values inserted.) Skip to new page . . . . . N Y=Yes, N=No Suppress summaries . . . . N Y=Yes, N=No Break text . . . . . . . . &t02.tdcno Level Field 1 T02.TDCNO 2 T02.TDITEM F3=Exit F5=Report F10=Process/previous F12=Cancel F13=Layout F18=Files F23=Long comment
![Page 8: Introduction to Query Part 3. Query Topics Report Breaks Totals and subtotals Forms of Output Detail verses summary Output Types Data base file.](https://reader036.fdocuments.in/reader036/viewer/2022082613/5697bff81a28abf838cbf576/html5/thumbnails/8.jpg)
Report Breaks
Format Report Break Break level . . . . . . . : 2 Type choices, press Enter. (Type &field in text to have break values inserted.) Skip to new page . . . . . N Y=Yes, N=No Suppress summaries . . . . N Y=Yes, N=No Break text . . . . . . . . &t02.tditem Level Field 1 T02.TDCNO 2 T02.TDITEM F3=Exit F5=Report F10=Process/previous F12=Cancel F13=Layout F18=Files F23=Long comment
![Page 9: Introduction to Query Part 3. Query Topics Report Breaks Totals and subtotals Forms of Output Detail verses summary Output Types Data base file.](https://reader036.fdocuments.in/reader036/viewer/2022082613/5697bff81a28abf838cbf576/html5/thumbnails/9.jpg)
Report BreaksTips
Break levels will normally match the sort fields
Suppress summaries – N Will print totals
Suppress summaries – Y Will NOT print totals
![Page 10: Introduction to Query Part 3. Query Topics Report Breaks Totals and subtotals Forms of Output Detail verses summary Output Types Data base file.](https://reader036.fdocuments.in/reader036/viewer/2022082613/5697bff81a28abf838cbf576/html5/thumbnails/10.jpg)
Forms of Output
Detail Prints all detail lines
Summary Summarizes and prints ONLY fields with a break
level or fields that are totaled using the report summary functions.
![Page 11: Introduction to Query Part 3. Query Topics Report Breaks Totals and subtotals Forms of Output Detail verses summary Output Types Data base file.](https://reader036.fdocuments.in/reader036/viewer/2022082613/5697bff81a28abf838cbf576/html5/thumbnails/11.jpg)
Forms of Output
Select Output Type and Output Form Type choices, press Enter. Output type . . . . . . . . . . . 2 1=Display 2=Printer 3=Database file Form of output . . . . . . . . . . 2 1=Detail 2=Summary only Line wrapping . . . . . . . . . . N Y=Yes, N=No Wrapping width . . . . . . . . . Blank, 1-378 Record on one page . . . . . . . N Y=Yes, N=No F3=Exit F5=Report F10=Process/previous F12=Cancel F13=Layout F18=Files
![Page 12: Introduction to Query Part 3. Query Topics Report Breaks Totals and subtotals Forms of Output Detail verses summary Output Types Data base file.](https://reader036.fdocuments.in/reader036/viewer/2022082613/5697bff81a28abf838cbf576/html5/thumbnails/12.jpg)
Forms of Output
1100 John Smith $ Amount Purchased
Total Feed 1590 Level 2
Total Chemicals 4750 Level 2
Customer Total 6340 Level 1
1300 Jimmy Jones
Total Feed 1405 Level 2
Total Chemicals 900 Level 2
Customer Total 2305 Level 1
Final Totals 8645 Level 0
![Page 13: Introduction to Query Part 3. Query Topics Report Breaks Totals and subtotals Forms of Output Detail verses summary Output Types Data base file.](https://reader036.fdocuments.in/reader036/viewer/2022082613/5697bff81a28abf838cbf576/html5/thumbnails/13.jpg)
Forms of Output
Define Report Breaks Type break level (1-6) for up to 9 field names, press Enter. (Use as many fields as needed for each break level.) Break Sort Level Prty Field Text Len Dec 1 10 T02.TDCNO Customer Number 7 0 T03.CSLKNM Customer Lookup Name 25 2 20 T02.TDITEM Item Number 14 T02.TDDESC Description 35 T02.TDQTY Quantity 9/4 11 4 TOTAL tdamt*-1 9 2 Bottom F3=Exit F5=Report F10=Process/previous F11=Display names only F12=Cancel F13=Layout F18=Files F23=Long comment
![Page 14: Introduction to Query Part 3. Query Topics Report Breaks Totals and subtotals Forms of Output Detail verses summary Output Types Data base file.](https://reader036.fdocuments.in/reader036/viewer/2022082613/5697bff81a28abf838cbf576/html5/thumbnails/14.jpg)
Forms of Output2-Summary Tips
Fields that are totaled with the summary function will automatically print Quantities and Dollar Amounts
Use the break levels to print other fields Ex. if the item no needs to print on the report then
select it as a break level
![Page 15: Introduction to Query Part 3. Query Topics Report Breaks Totals and subtotals Forms of Output Detail verses summary Output Types Data base file.](https://reader036.fdocuments.in/reader036/viewer/2022082613/5697bff81a28abf838cbf576/html5/thumbnails/15.jpg)
Output Types
Select Output Type and Output Form Type choices, press Enter. Output type . . . . . . . . . . . 3 1=Display 2=Printer 3=Database file Form of output . . . . . . . . . . 1 1=Detail 2=Summary only Line wrapping . . . . . . . . . . N Y=Yes, N=No Wrapping width . . . . . . . . . Blank, 1-378 Record on one page . . . . . . . N Y=Yes, N=No F3=Exit F5=Report F10=Process/previous F12=Cancel F13=Layout F18=Files
![Page 16: Introduction to Query Part 3. Query Topics Report Breaks Totals and subtotals Forms of Output Detail verses summary Output Types Data base file.](https://reader036.fdocuments.in/reader036/viewer/2022082613/5697bff81a28abf838cbf576/html5/thumbnails/16.jpg)
Output Types
Define Database File Output Type choices, press Enter. (The printed definition shows the output file record layout.) File . . . . . . . . . mthlysales Name, F4 for list Library . . . . . . karenqry Name, F4 for list Member . . . . . . . . *FILE Name, *FIRST, *FILE, F4 for list Data in file . . . . . 1 1=New file, 2=Replace file 3=New member, 4=Replace member 5=Add to member For a new file: Authority . . . . . *LIBCRTAUT *LIBCRTAUT, authorization list name, *CHANGE, *ALL, *EXCLUDE, *USE Text . . . . . . . . Print definition . . . N Y=Yes, N=No F3=Exit F4=Prompt F5=Report F10=Process/previous F12=Cancel F13=Layout F18=Files
![Page 17: Introduction to Query Part 3. Query Topics Report Breaks Totals and subtotals Forms of Output Detail verses summary Output Types Data base file.](https://reader036.fdocuments.in/reader036/viewer/2022082613/5697bff81a28abf838cbf576/html5/thumbnails/17.jpg)
Output TypesTips
Never save the data file to your AgVantage data library COxDATA
Create the query using option 1 – New file
then change query to use option 2 – Replace File
![Page 18: Introduction to Query Part 3. Query Topics Report Breaks Totals and subtotals Forms of Output Detail verses summary Output Types Data base file.](https://reader036.fdocuments.in/reader036/viewer/2022082613/5697bff81a28abf838cbf576/html5/thumbnails/18.jpg)
Exercises 4 & 5 & 6
See Handouts
![Page 19: Introduction to Query Part 3. Query Topics Report Breaks Totals and subtotals Forms of Output Detail verses summary Output Types Data base file.](https://reader036.fdocuments.in/reader036/viewer/2022082613/5697bff81a28abf838cbf576/html5/thumbnails/19.jpg)
Thank You for attending!