This document outlines a report that generates airline booking data for business customers in Philadelphia from two database tables, including each customer's ID, name, city, type, discount rate, and number of bookings. It retrieves customer data from the scustom table and matching booking data from the sbook table, calculates the number of bookings and discount rate statistics for each customer and in total.
Airline Booking Report for Philadelphia Business Customers
1. Purpose
To generate Airline Booking Report for Business Customers from Philadelphia,
USA. Report display customer’s id, name, city, customer type,the discount rate
and number of airline booking each customer receives.
Integration
N/a
Prerequisites
‘scustom’ and ‘sbook’ tables stored in database
Features
Use of Structure for database table scustom and sbook
Custom structure of user defined data types used in total, average discount
rate calculations created.
Use of appropriate system variables to output when the list was created (date
and time) and by whom
Selection
Main Select statement loop used to fetch customer’s id, name, city, customer
type and the discount rate from table: scustom.
Inner Select statement will retrieve the bookings from table: SBOOK for each
current customer fetch from table: scustom.
Standard Variants
N/a
Activities
Calculating number of airline bookings for individual business customer
Calculating Discount Rate Summary assuming only four discount levels (No
discount, 1% - 8%, 9% - 16%, 17% or higher).
Calculating Discount Rate Average for all Business customers listed in
report.
1