Presentation is loading. Please wait.

Presentation is loading. Please wait.

Session HR- 5400 Query Builder Basics. Presenters Tabitha Conwell Debbie Kilbane

Similar presentations


Presentation on theme: "Session HR- 5400 Query Builder Basics. Presenters Tabitha Conwell Debbie Kilbane"— Presentation transcript:

1 Session HR- 5400 Query Builder Basics

2 Presenters Tabitha Conwell tconwell@wooster.edu tconwell@wooster.edu Debbie Kilbane dkilbane@wooster.edu dkilbane@wooster.edu Natalie Richardson nrichardson@wooster.edunrichardson@wooster.edu The College of Wooster Wooster, Ohio Tabitha Conwell tconwell@wooster.edu tconwell@wooster.edu Debbie Kilbane dkilbane@wooster.edu dkilbane@wooster.edu Natalie Richardson nrichardson@wooster.edunrichardson@wooster.edu The College of Wooster Wooster, Ohio

3 Query Builder – What is it? Query Builder is a reporting tool that allows for access to the data without the colon prompt. For Datatel users, Query Builder works with Unidata. This will not work with SQL or Oracle.

4 Accessing Query Builder Access Query Builder from the Options menu.

5 Components of Query Builder Our focus will be on the Verb, File, Items, Sort, Output and Output To buttons.

6 File – RUEI & RUFI To use QB, you will need to know which file to use. If you aren’t sure in which File your Fields reside, use RUEI and RUFI.

7 Using RUEI On a Colleague screen, place the cursor in the field with the data, click on the Help (?) icon. We go to RUEI and enter POS.DEPT on the Lookup line. We placed the cursor in the Department field and clicked the ?. A window opens with the Field name – POS.DEPT. We find the File is POSITION.

8 Using RUFI If you know the name of the File and want to know the Fields within in it, use RUFI. The Fields for the POSITION File are listed.

9 Writing a query: File In the QB window, we enter our File name. We will use the HRPER file as it contains numerous data elements useful to HR and Payroll. Enter HRPER on the File: line, click the Items… button The Selection of Items window opens and lists the Fields for the HRPER File.

10 Writing a query: Items Now we select our criteria. We want to find the employees in the Applications Development department.

11 Writing a query: Items (cont.) Our Item is added. Click OK. We are returned to the main QB window.

12 Writing a query: Output Click on the Output: button. The Output Criteria window opens. Select the items you want and click Add after each or double click on the item.

13 Writing a query: Output (cont.) Our items are added. Click OK. We are returned to the main QB window.

14 Writing a query: Sort Click on the Sort… button. The Sort Criteria window opens. Select the items you want and click Add after each or double click on the item.

15 Writing a query: Sort (cont.) Our items are added. Click OK. We are returned to the main QB window. We are ready to run our first query. Click OK.

16 Output To: - Screen Our data is returned.

17 Output To: - PC/Process We want our data returned to Excel. Change the Verb: to Select. Under Output To: click the PC/Process button. The parameter window opens.

18 Output To: - PC/Process (cont.) Give your file a name and choose the location. Select Excel under Application:. Click OK on both windows.

19 Excel report generated The Excel file is generated.

20 Adding Items Now we are ready to add more selection criteriaWe enter a name for our file. We want the employees from the Campus Dining (HSSD) department with a start date prior to Jan. 1, 1999. We click OK to run the query.

21 Excel report generated Our Excel file is generated.

22 Saving a Query Return to the QB window and click Save…Click the Specify Location button. Click Browse… to find the folder where you want to save the query. Enter a File name: -the file type is “.wis” Click Save

23 Using a saved query Click on the Open… button. Move to the location where you saved your query. Click on the query. Click Open. Change the criteria in the query to pull new data.

24 Excel report generated The Excel file is generated.

25 Default QB screen This is the default QB screen: This is the default for PC/Process – Advanced… Verb: LIST Output To: Screen

26 Changing the Default If you find that you use settings that are different from the default, you can set these. Changes can also be made on the Advanced screen. Click OK and then Set Default.

27 Questions We have more great things to share about Query Builder, but we want to take a moment to answer questions.

28 More on FILES From the main QB window, you can click on the File… button (leaving the File: line blank) and a list of all of the data files available will appear.

29 More on FILES (cont.) From the list of Files, you can see what Fields reside within the File. Click on a File name and click the View Dict… button.

30 Formatting for output If the fields do not format in the columns correctly, you may need to change the settings on the Advanced screen. By changing Capture to Reformat, the Primary Position formats properly.

31 Refresh When returning to QB to run another query, the Fields may need to be refreshed. Click the Refresh button.

32 Error message – no file created When running a query and sending it to Excel, if you just ran a query into Excel and do not change the file name for this next query (and that Excel file is still open), you will get this error. Click OK. Return to QB. Go into PC… and enter a new file name for PC Filename: or close the Excel file that is already open with that name.

33 Error message – no items selected The following error will occur if there is no data to report.

34 Error message – output to the screen The following error will occur if there is no data to report.

35 Error message – Office 2007 At times, Query Builder may lock up when pulling the data to Excel. It does not happen consistently. It can occur when running several queries in a row. To correct: Restart the Colleague application. Close Excel files. Return data into a text file.

36 Multi-valued Fields Fields with multi-values can be pulled using QB. There are various ways for formatting the data. Reformat Explode Values (vertical data return) Reformat uncheck Explode Values (horizontal data return)

37 Output to File Click on PC… Under Application: choose None Under Show as: select Fixed Length

38 Typing out the query HRP.LFM.NAME HRP.CURRENT.STATUS HRP.EFFECT.EMPLOY.DATE HRP.PRI.DEPT HRP.PRI.POS

39 Typing out the query – example #2 HRP.LFM.NAME HRP.CURRENT.STATUS HRP.EFFECT.EMPLOY.DATE HRP.PRI.DEPT HRP.PRI.POS

40 Query Language Sentence Structure VerbFileSelectionsSorts Output FieldsOptions LIST Selectors:BY AVERAGE SORT WITHBY.DSND DET.SUP COUNT WITH EVERYBY.EXP PERCENT SUM WITH NOBY.EXP.DSND SAMPLE SELECT WHEN SAMPLED SSELECT WHEN ASD () SELECT.ONLY LISTDICT TOTAL LIST DICT Logical Connectors: COL.SUP AND COL.SPACES OR COUNT.SUP DBL.SUP Operators: HDR.SUP.= or GE ID.SUP <= or LE LPTR = or EQ MARGIN > or GT VERT < or LT EVAL # or NE CNV BETWEEN FMT COL.HDG Special Operators: NO.NULLS MATCHING NOPAGE NOT MATCHING NO.SPLIT LIKE HEADER UNLIKE Options: FOOTING Options: BREAK.ON Options: BREAK.SUP


Download ppt "Session HR- 5400 Query Builder Basics. Presenters Tabitha Conwell Debbie Kilbane"

Similar presentations


Ads by Google