Question: Here is the site for plug-in T8: http://www.uvm.edu/~dnovak/141/2010_Technology_PlugIn_T 8.pdf Multi-table Query/Report creation Overview: Using the database file you created in the previous Tutorial Assignment you
Here is the site for plug-in T8: http://www.uvm.edu/~dnovak/141/2010_Technology_PlugIn_T 8.pdf Multi-table Query/Report creation Overview: Using the database file you created in the previous Tutorial Assignment you will create a multi-table query and report. Part 1: Create a query that spans both tables. Eliminate redundant fields. Part 2: Modify the Query to select only those Customers that had service dates in October and November 2006. Part 3: Create a report that display the results of your query. This report should list customer information, and under each customer record should list all related customer service records. To complete part 3, you will need to: (a) Read plug-in T8 (b) Use the Report Wizard (c) Select an appropriate field for the Grouping parameter in the Report wizard. (This is probably the most challenging part of this assignment). As a final step, once you have completed your report, please switch to Design View and then type in you name (first name and last name) into the report's page header. The query in Listing 2 modifies the way the date data from Listing 1 is displayed. To convert data of DATE datatype to a specific date format model, TO_CHAR takes one required parameter and one optional parameter. The required parameter is data of DATE datatype from a column, expression, or literal. The optional parameter is a textual format-mask representation of the date to be displayed. In Listing 2, the default format mask of DD-MON-RR is changed to display as YYYY-MM-DD. Code Listing 2: Display date data in a different format by using TO_CHAR with a format mask SQL> select first_name, last_name, TO_CHAR(hire_date, 'YYYYMMDD') hire_date 2 from employee 3 order by hire_date desc, last_name, first_name; FIRST_NAME LAST_NAME HIRE_DATE Thomas Jeffrey 20100227 Theresa Wong 20100227 mark leblanc 20090306 michael peterson 20081103 Roger Friedli 20070516 Betsy James 20070516 Matthew Michaels 20070516 Donald Newton 20060924 Frances Newton 20050914 Emily Eckhardt 20040707 10 rows selected. Listing 3 demonstrates that the second parameter for TO_CHAR is optional. If it is left off, the format mask of the date data returned will simply be the default format mask. Note also that the datatype of the date returned is VARCHAR2. The output from Listing 3 is sorted by HIRE_DATE in descending order, but in character, not date, descending order. So, be aware that when you apply the TO_CHAR conversion function, your data is returned as character strings; you should plan and sort accordingly
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
