Presentation is loading. Please wait.

Presentation is loading. Please wait.

Possible Queries Queries For All User Access: –Query 1: The purpose of this query is to allow users to view all the package details for a given tracking.

Similar presentations


Presentation on theme: "Possible Queries Queries For All User Access: –Query 1: The purpose of this query is to allow users to view all the package details for a given tracking."— Presentation transcript:

1 Possible Queries Queries For All User Access: –Query 1: The purpose of this query is to allow users to view all the package details for a given tracking number. Details include: Package number, and arrival & departure times to/from each Distribution Centre. Required Parameter: tracking number (an integer value >=1)

2 Queries For Customer Access (Account Number required) Query 2: The purpose of this query is to allow customers to view all their shipment details between a given start and end date. Details include: Shipment ID, destination address, and shipment cost. In addition this query provides the total cost of all such shipments. Required Parameters: start date (ex: 2001-01-01) and end date (ex: 2003-01-01) Query 3: The purpose of this query is to allow customers to view the details of all their packages destined to arrive at a particular recipient. Details include: Package Number, package size and package weight. In addition this query can provide the total cost of all shipments sent by this customer to that recipient. Required Parameter: receiver's name

3 Queries For Company Manager Access (Employee ID required) -1 Query 4: The purpose of this query is to allow a company manager to view the details of a given package and all the packages in the same shipment. Details include: Package number, and departure times from all distribution centres the package left and arrival times to all distribution centres that it arrived to, as well as the corresponding carrier company that serviced the package's delivery between these two centres (ie. the centre it departed from and the centre it arrived to in a given delivery hop) Required Parameter: package number (ex: P21 (-package 1 in shipment 2)) Query 5: The purpose of this query is to allow a company manager to view a complete history of all the accounts. History includes a list of all the shipments, their source & destination addresses, total number of packages in each shipment, total weight of all packages in each shipment, and the cost of the shipment.

4 Queries For Company Manager Access (Employee ID required) -2 Query 6 The purpose of this query is to allow a company manager to view details of all packages serviced by the given distribution centre within the given period of time. Details include : account ID, shipment ID, arrival and departure times. Required parameters: Distribution centre name (ex: DC1), start date (ex : 2001-01-01), and end date (ex : 2003-01-01). Query 7 The purpose of this query is to allow a company manager to view the shipment details of all shipments which have at least one package that has passed through all distribution centres. Details include : Shipment number, and package code. OR, it allows the manager to view all the delivery companies which serviced all the distribution centres. The manager can pick only one of the above queries at one time.

5 Queries For Company Manager Access (Employee ID required) -3 Query 8 The purpose of this query is to allow a company manager to view the number of packages handled by each carrier company between two dates. Required parameters: start date (ex : 2001-01-01), and end date (ex: 2003-01-01) Query 9 The purpose of this query is to allow a company manager to find all customers whose total cost of shipments is the maximum during a given month. Required parameter: Month, Year (ex: August, 2002)

6 Queries for Company Worker (Employee ID required) Query 10 The purpose of this query is to allow a company worker to update the state of the database, by updating the arrival and departure information for packages. (example which carrier company is used to deliver the package to the next centre). Query 11 The purpose of this query is to allow the company worker to view all packages that are in a given distribution centre at the current time, i.e., those that have arrived but not yet departed. Required parameters : distribution centre name (ex: DC1) Query 12 The purpose of this query is to allow a company worker to find the carrier company that picked up the most packages from a particular centre, and took them to other centres. Required parameters: Distribution centre name (ex: DC1), and date (ex:. 2002-11-25)


Download ppt "Possible Queries Queries For All User Access: –Query 1: The purpose of this query is to allow users to view all the package details for a given tracking."

Similar presentations


Ads by Google