Getting Started
How can I access the schemas, tables, and data used in the practice problems? Use livesql.oracle.com. All schemas and tables utilized in the current practice problem sets are readily available without the headache of software installation. Simply create an account and let the SQL mastering begin! For a subset of the problems, a script is required to be executed to create and subsequently populate the table referenced within the problem. Simply copy and paste the corresponding script provided in the Tables Requiring Script Execution section of the SQL PRACTICE PROBLEMS page.
Schema and Table Information
Information on the schemas, corresponding tables, and data used in the example problems can be found within the SQL PRACTICE PROBLEMS page. I recommend opening another browser window with this page pulled up for quick reference.
Problem 1
For each department/warehouse location, retrieve the location ID, street address, postal code, city, state/province, and country name. Ensure your result set represents all locations even if the country ID for the location does not match an existing country ID in the countries table.
hr.locations
hr.countries
| LOCATION_ID | STREET_ADDRESS | POSTAL_CODE | CITY | STATE_PROVINCE | COUNTRY_NAME |
|---|---|---|---|---|---|
| 1000 | 1297 Via Cola di Rie | 00989 | Roma | – | Italy |
| 1100 | 93091 Calle della Testa | 10934 | Venice | – | Italy |
| 1200 | 2017 Shinjuku-ku | 1689 | Tokyo | Tokyo Prefecture | Japan |
| 1300 | 9450 Kamiya-cho | 6823 | Hiroshima | – | Japan |
| 1400 | 2014 Jabberwocky Rd | 26192 | Southlake | Texas | United States of America |
| 1500 | 2011 Interiors Blvd | 99236 | South San Francisco | California | United States of America |
| 1600 | 2007 Zagora St | 50090 | South Brunswick | New Jersey | United States of America |
| 1700 | 2004 Charade Rd | 98199 | Seattle | Washington | United States of America |
| 1800 | 147 Spadina Ave | M5V 2L7 | Toronto | Ontario | Canada |
| 1900 | 6092 Boxwood St | YSW 9T2 | Whitehorse | Yukon | Canada |
| 2000 | 40-5-12 Laogianggen | 190518 | Beijing | – | China |
| 2100 | 1298 Vileparle (E) | 490231 | Bombay | Maharashtra | India |
| 2200 | 12-98 Victoria Street | 2901 | Sydney | New South Wales | Australia |
| 2300 | 198 Clementi North | 540198 | Singapore | – | Singapore |
| 2400 | 8204 Arthur St | – | London | – | United Kingdom |
| 2500 | Magdalen Centre, The Oxford Science Park | OX9 9ZB | Oxford | Oxford | United Kingdom |
| 2600 | 9702 Chester Road | 09629850293 | Stretford | Manchester | United Kingdom |
| 2700 | Schwanthalerstr. 7031 | 80925 | Munich | Bavaria | Germany |
| 2800 | Rua Frei Caneca 1360 | 01307-002 | Sao Paulo | Sao Paulo | Brazil |
| 2900 | 20 Rue des Corps-Saints | 1730 | Geneva | Geneve | Switzerland |
| 3000 | Murtenstrasse 921 | 3095 | Bern | BE | Switzerland |
| 3100 | Pieter Breughelstraat 837 | 3029SK | Utrecht | Utrecht | Netherlands |
| 3200 | Mariano Escobedo 9991 | 11932 | Mexico City | Distrito Federal, | Mexico |
SELECT
hr.locations.location_id,
hr.locations.street_address,
hr.locations.postal_code,
hr.locations.city,
hr.locations.state_province,
hr.countries.country_name
FROM
hr.locations
LEFT JOIN
hr.countries
ON hr.locations.country_id = hr.countries.country_id;
Problem 2
For each country ID, retrieve the location IDs, street addresses, postal codes, cities, states/provinces, and country names for department(s)/warehouse(s) that are tied to the respective country ID. Include country name data even if a department/warehouse is not currently located in the country.
hr.locations
hr.countries
| LOCATION_ID | STREET_ADDRESS | POSTAL_CODE | CITY | STATE_PROVINCE | COUNTRY_NAME |
|---|---|---|---|---|---|
| 1000 | 1297 Via Cola di Rie | 00989 | Roma | – | Italy |
| 1100 | 93091 Calle della Testa | 10934 | Venice | – | Italy |
| 1200 | 2017 Shinjuku-ku | 1689 | Tokyo | Tokyo Prefecture | Japan |
| 1300 | 9450 Kamiya-cho | 6823 | Hiroshima | – | Japan |
| 1400 | 2014 Jabberwocky Rd | 26192 | Southlake | Texas | United States of America |
| 1500 | 2011 Interiors Blvd | 99236 | South San Francisco | California | United States of America |
| 1600 | 2007 Zagora St | 50090 | South Brunswick | New Jersey | United States of America |
| 1700 | 2004 Charade Rd | 98199 | Seattle | Washington | United States of America |
| 1800 | 147 Spadina Ave | M5V 2L7 | Toronto | Ontario | Canada |
| 1900 | 6092 Boxwood St | YSW 9T2 | Whitehorse | Yukon | Canada |
| 2000 | 40-5-12 Laogianggen | 190518 | Beijing | – | China |
| 2100 | 1298 Vileparle (E) | 490231 | Bombay | Maharashtra | India |
| 2200 | 12-98 Victoria Street | 2901 | Sydney | New South Wales | Australia |
| 2300 | 198 Clementi North | 540198 | Singapore | – | Singapore |
| 2400 | 8204 Arthur St | – | London | – | United Kingdom |
| 2500 | Magdalen Centre, The Oxford Science Park | OX9 9ZB | Oxford | Oxford | United Kingdom |
| 2600 | 9702 Chester Road | 09629850293 | Stretford | Manchester | United Kingdom |
| 2700 | Schwanthalerstr. 7031 | 80925 | Munich | Bavaria | Germany |
| 2800 | Rua Frei Caneca 1360 | 01307-002 | Sao Paulo | Sao Paulo | Brazil |
| 2900 | 20 Rue des Corps-Saints | 1730 | Geneva | Geneve | Switzerland |
| 3000 | Murtenstrasse 921 | 3095 | Bern | BE | Switzerland |
| 3100 | Pieter Breughelstraat 837 | 3029SK | Utrecht | Utrecht | Netherlands |
| 3200 | Mariano Escobedo 9991 | 11932 | Mexico City | Distrito Federal, | Mexico |
| – | – | – | – | – | Zambia |
| – | – | – | – | – | Argentina |
| – | – | – | – | – | Nigeria |
| – | – | – | – | – | Egypt |
| – | – | – | – | – | Malaysia |
| – | – | – | – | – | Denmark |
| – | – | – | – | – | France |
| – | – | – | – | – | Israel |
| – | – | – | – | – | Zimbabwe |
| – | – | – | – | – | Kuwait |
| – | – | – | – | – | Belgium |
SELECT
hr.locations.location_id,
hr.locations.street_address,
hr.locations.postal_code,
hr.locations.city,
hr.locations.state_province,
hr.countries.country_name
FROM
hr.locations
RIGHT JOIN
hr.countries
ON hr.locations.country_id = hr.countries.country_id;
Problem 3
For each department, retrieve the department ID, department name, first name and last name of the manager heading the department, and the manager’s email address. In addition, include the street address, city, state/province, and country name for which the department is located. Sort/order the result set by department ID, ascending.
hr.departments
hr.employees
hr.locations
hr.countries
| DEPARTMENT_ID | DEPARTMENT_NAME | MANAGER_ID | LOCATION_ID | EMPLOYEE_ID | FIRST_NAME | LAST_NAME | STREET_ADDRESS | CITY | STATE_PROVINCE | COUNTRY_ID | COUNTRY_NAME | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 10 | Administration | 200 | 1700 | 200 | Jennifer | Whalen | JWHALEN | 2004 Charade Rd | Seattle | Washington | US | United States of America |
| 20 | Marketing | 201 | 1800 | 201 | Michael | Hartstein | MHARTSTE | 147 Spadina Ave | Toronto | Ontario | CA | Canada |
| 30 | Purchasing | 114 | 1700 | 114 | Den | Raphaely | DRAPHEAL | 2004 Charade Rd | Seattle | Washington | US | United States of America |
| 40 | Human Resources | 203 | 2400 | 203 | Susan | Mavris | SMAVRIS | 8204 Arthur St | London | – | UK | United Kingdom |
| 50 | Shipping | 121 | 1500 | 121 | Adam | Fripp | AFRIPP | 2011 Interiors Blvd | South San Francisco | California | US | United States of America |
| 60 | IT | 103 | 1400 | 103 | Alexander | Hunold | AHUNOLD | 2014 Jabberwocky Rd | Southlake | Texas | US | United States of America |
| 70 | Public Relations | 204 | 2700 | 204 | Hermann | Baer | HBAER | Schwanthalerstr. 7031 | Munich | Bavaria | DE | Germany |
| 80 | Sales | 145 | 2500 | 145 | John | Russell | JRUSSEL | Magdalen Centre, The Oxford Science Park | Oxford | Oxford | UK | United Kingdom |
| 90 | Executive | 100 | 1700 | 100 | Steven | King | SKING | 2004 Charade Rd | Seattle | Washington | US | United States of America |
| 100 | Finance | 108 | 1700 | 108 | Nancy | Greenberg | NGREENBE | 2004 Charade Rd | Seattle | Washington | US | United States of America |
| 110 | Accounting | 205 | 1700 | 205 | Shelley | Higgins | SHIGGINS | 2004 Charade Rd | Seattle | Washington | US | United States of America |
SELECT
hr.departments.department_id,
hr.departments.department_name,
hr.departments.manager_id,
hr.departments.location_id,
hr.employees.employee_id,
hr.employees.first_name,
hr.employees.last_name,
hr.employees.email,
hr.locations.street_address,
hr.locations.city,
hr.locations.state_province,
hr.locations.country_id,
hr.countries.country_name
FROM
hr.departments
INNER JOIN
hr.employees
ON hr.departments.manager_id = hr.employees.employee_id
INNER JOIN
hr.locations
ON hr.departments.location_id = hr.locations.location_id
INNER JOIN
hr.countries
ON hr.locations.country_id = hr.countries.country_id
ORDER BY
hr.departments.department_id;
Problem 4
Retrieve the customer ID, customer first name, customer last name, order ID, order date, and order total for all orders. Only include customers that have made an order. Sort the result set by customer ID (ascending) and order date (ascending).
oe.customers
oe.orders
| CUSTOMER_ID | CUST_FIRST_NAME | CUST_LAST_NAME | ORDER_ID | ORDER_DATE | ORDER_TOTAL |
|---|---|---|---|---|---|
| 101 | Constantin | Welles | 2458 | 16-AUG-07 03.34.12.234359 PM | 78279.6 |
| 101 | Constantin | Welles | 2430 | 02-OCT-07 06.18.36.663332 AM | 29669.9 |
| 101 | Constantin | Welles | 2413 | 29-MAR-08 01.34.04.525934 PM | 48552 |
| 101 | Constantin | Welles | 2447 | 27-JUL-08 08.59.10.223344 AM | 33893.6 |
| 102 | Harrison | Pacino | 2431 | 14-SEP-06 07.03.04.763452 AM | 5610.6 |
| 102 | Harrison | Pacino | 2414 | 29-MAR-07 02.22.40.536996 PM | 10794.6 |
| 102 | Harrison | Pacino | 2432 | 14-SEP-07 09.53.40.223345 AM | 10523 |
| 102 | Harrison | Pacino | 2397 | 19-NOV-07 02.41.54.696211 PM | 42283.2 |
| 103 | Manisha | Taylor | 2415 | 29-MAR-06 01.34.50.545196 PM | 310 |
| 103 | Manisha | Taylor | 2437 | 01-SEP-06 08.59.15.826132 AM | 13550 |
| 103 | Manisha | Taylor | 2433 | 13-SEP-07 10.19.00.654279 AM | 78 |
| 103 | Manisha | Taylor | 2454 | 02-OCT-07 05.49.34.678340 PM | 6653.4 |
| 104 | Harrison | Sutherland | 2355 | 26-JAN-06 09.22.51.962632 AM | 94513.5 |
| 104 | Harrison | Sutherland | 2416 | 29-MAR-07 04.41.20.945676 PM | 384 |
| 104 | Harrison | Sutherland | 2438 | 01-SEP-07 09.53.26.934626 AM | 5451 |
| 104 | Harrison | Sutherland | 2354 | 14-JUL-08 06.18.23.234567 PM | 46257 |
| 105 | Matthias | MacGraw | 2417 | 20-MAR-07 05.49.10.974352 PM | 1926.6 |
| 105 | Matthias | MacGraw | 2439 | 31-AUG-07 10.19.37.811132 AM | 22150.1 |
| 105 | Matthias | MacGraw | 2358 | 08-JAN-08 05.03.12.654278 PM | 7826 |
| 105 | Matthias | MacGraw | 2356 | 26-JAN-08 09.22.41.934562 AM | 29473.8 |
| 106 | Matthias | Hannah | 2418 | 20-MAR-04 04.18.21.862632 PM | 5546.6 |
| 106 | Matthias | Hannah | 2359 | 08-JAN-06 09.34.13.112233 PM | 5543.1 |
| 106 | Matthias | Hannah | 2381 | 14-MAY-08 08.59.08.843679 PM | 23034.6 |
| 106 | Matthias | Hannah | 2441 | 01-AUG-08 11.22.48.734526 AM | 2075.2 |
| 107 | Matthias | Cruise | 2442 | 27-JUL-06 12.22.59.662632 PM | 52471.9 |
| 107 | Matthias | Cruise | 2419 | 20-MAR-07 07.03.32.764632 PM | 31574 |
| 107 | Matthias | Cruise | 2440 | 31-AUG-07 09.53.06.008765 PM | 70576.9 |
| 107 | Matthias | Cruise | 2360 | 14-NOV-07 12.22.31.223344 PM | 990.4 |
| 108 | Meenakshi | Mason | 2357 | 08-JAN-06 08.19.44.123456 PM | 59872.4 |
| 108 | Meenakshi | Mason | 2443 | 27-JUL-06 01.34.16.562632 PM | 3646 |
| 108 | Meenakshi | Mason | 2420 | 13-MAR-07 08.59.43.666320 PM | 29750 |
| 108 | Meenakshi | Mason | 2361 | 13-NOV-07 01.34.21.986210 PM | 120131.3 |
| 109 | Christian | Cage | 2421 | 12-MAR-07 09.53.54.562432 PM | 72836 |
| 109 | Christian | Cage | 2444 | 27-JUL-07 02.22.27.462632 PM | 77727.2 |
| 109 | Christian | Cage | 2362 | 13-NOV-07 02.41.10.619477 PM | 92829.4 |
| 109 | Christian | Cage | 2394 | 10-FEB-08 09.22.35.564789 PM | 21863 |
| 116 | Geraldine | Martin | 2369 | 26-JUN-07 11.22.54.009932 PM | 11097.4 |
| 116 | Geraldine | Martin | 2436 | 02-SEP-07 06.18.04.378034 AM | 6394.8 |
| 116 | Geraldine | Martin | 2453 | 04-OCT-07 09.53.34.362632 PM | 129 |
| 116 | Geraldine | Martin | 2428 | 10-NOV-07 02.41.34.463567 AM | 14685.8 |
| 117 | Guillaume | Edwards | 2456 | 07-NOV-06 07.53.25.989889 PM | 3878.4 |
| 117 | Guillaume | Edwards | 2446 | 27-JUL-07 07.03.08.302945 AM | 103679.3 |
| 117 | Guillaume | Edwards | 2429 | 10-NOV-07 03.49.25.526321 AM | 50125 |
| 117 | Guillaume | Edwards | 2370 | 27-JUN-08 12.22.11.647398 AM | 126 |
| 118 | Maurice | Mahoney | 2371 | 16-MAY-07 01.34.56.113356 AM | 79405.6 |
| 118 | Maurice | Mahoney | 2457 | 31-OCT-07 11.22.16.162632 PM | 21586.2 |
| 119 | Maurice | Hasan | 2372 | 27-FEB-07 12.22.33.356789 AM | 16447.2 |
| 120 | Diane | Higgins | 2373 | 27-FEB-08 01.34.51.220065 AM | 416 |
| 121 | Dianne | Sen | 2374 | 27-FEB-08 02.41.45.109654 AM | 4797 |
| 122 | Maurice | Daltrey | 2375 | 26-FEB-07 03.49.50.459233 AM | 103834.4 |
| 123 | Elizabeth | Brown | 2376 | 07-JUN-07 06.18.08.883310 AM | 11006.2 |
| 141 | Maximilian | Henner | 2377 | 07-JUN-07 07.03.01.001100 AM | 38017.8 |
| 142 | Sachin | Spielberg | 2378 | 24-MAY-07 08.59.10.010101 AM | 25691.3 |
| 143 | Sachin | Neeson | 2380 | 16-MAY-07 09.53.02.909090 AM | 27132.6 |
| 144 | Sivaji | Landis | 2445 | 27-JUL-06 03.34.38.362632 PM | 5537.8 |
| 144 | Sivaji | Landis | 2435 | 02-SEP-07 11.22.53.134567 PM | 62303 |
| 144 | Sivaji | Landis | 2363 | 23-OCT-07 05.49.56.346122 PM | 10082.3 |
| 144 | Sivaji | Landis | 2422 | 16-DEC-07 08.19.55.462332 PM | 11188.5 |
| 144 | Sivaji | Landis | 2382 | 14-MAY-08 10.19.03.828321 AM | 71173 |
| 145 | Mammutti | Pacino | 2448 | 18-JUN-07 04.41.49.262632 PM | 1388 |
| 145 | Mammutti | Pacino | 2364 | 28-AUG-07 06.18.45.942399 PM | 9500 |
| 145 | Mammutti | Pacino | 2455 | 20-SEP-07 11.34.11.456789 AM | 14087.5 |
| 145 | Mammutti | Pacino | 2423 | 21-NOV-07 10.22.33.362632 AM | 10367.7 |
| 145 | Mammutti | Pacino | 2383 | 12-MAY-08 11.22.30.545103 AM | 36374.7 |
| 146 | Elia | Fawcett | 2379 | 16-MAY-07 02.22.24.234567 AM | 17848.2 |
| 146 | Elia | Fawcett | 2449 | 13-JUN-07 05.49.07.162632 PM | 86 |
| 146 | Elia | Fawcett | 2365 | 28-AUG-07 07.03.34.003399 PM | 27455.3 |
| 146 | Elia | Fawcett | 2424 | 21-NOV-07 10.22.33.263332 AM | 13824 |
| 146 | Elia | Fawcett | 2384 | 12-MAY-08 12.22.34.525972 PM | 29249.1 |
| 147 | Ishwarya | Roberts | 2396 | 02-FEB-06 01.34.56.345678 AM | 34930 |
| 147 | Ishwarya | Roberts | 2425 | 16-NOV-06 11.34.22.162552 PM | 1500.8 |
| 147 | Ishwarya | Roberts | 2450 | 11-APR-07 06.18.10.362632 PM | 1636 |
| 147 | Ishwarya | Roberts | 2366 | 28-AUG-07 08.59.23.144778 PM | 37319.4 |
| 147 | Ishwarya | Roberts | 2385 | 08-DEC-07 11.34.11.331392 AM | 295892 |
| 148 | Gustav | Steenburgen | 2426 | 17-NOV-06 12.22.11.262552 AM | 7200 |
| 148 | Gustav | Steenburgen | 2406 | 29-JUN-07 04.41.20.098765 AM | 2854.2 |
| 148 | Gustav | Steenburgen | 2386 | 06-DEC-07 12.22.34.225609 PM | 21116.9 |
| 148 | Gustav | Steenburgen | 2451 | 17-DEC-07 05.03.52.562632 PM | 10474.6 |
| 148 | Gustav | Steenburgen | 2367 | 27-JUN-08 09.53.32.335522 PM | 144054.8 |
| 149 | Markus | Rampling | 2387 | 11-MAR-07 03.34.56.536966 PM | 52758.9 |
| 149 | Markus | Rampling | 2434 | 13-SEP-07 05.49.30.647893 AM | 268651.8 |
| 149 | Markus | Rampling | 2452 | 06-OCT-07 08.59.43.462632 PM | 12589 |
| 149 | Markus | Rampling | 2427 | 10-NOV-07 01.34.22.362124 AM | 9055 |
| 149 | Markus | Rampling | 2368 | 26-JUN-08 10.19.43.190089 PM | 60065 |
| 150 | Goldie | Slater | 2388 | 04-JUN-07 04.41.12.554435 PM | 282694.3 |
| 151 | Divine | Aykroyd | 2389 | 04-JUN-08 05.49.43.546954 PM | 17620 |
| 152 | Dieter | Matthau | 2390 | 18-NOV-07 04.18.50.546851 PM | 7616.8 |
| 153 | Divine | Sheen | 2391 | 27-FEB-06 05.03.03.828330 PM | 48070.6 |
| 154 | Frederic | Grodin | 2392 | 21-JUL-07 08.59.57.571057 PM | 26632 |
| 155 | Frederico | Romero | 2393 | 10-FEB-08 07.53.19.528202 PM | 23431.9 |
| 156 | Goldie | Montand | 2395 | 02-FEB-06 08.19.11.227550 PM | 68501 |
| 157 | Sidney | Capshaw | 2398 | 19-NOV-07 09.22.53.224175 PM | 7110.3 |
| 158 | Frederico | Lyon | 2399 | 19-NOV-07 10.22.38.340990 PM | 25270.3 |
| 159 | Eddie | Boyer | 2400 | 10-JUL-07 01.34.29.559387 AM | 69286.4 |
| 160 | Eddie | Stern | 2401 | 10-JUL-07 02.22.53.554822 AM | 969.2 |
| 161 | Ernest | Weaver | 2402 | 02-JUL-07 03.34.44.665170 AM | 600 |
| 162 | Ernest | George | 2403 | 01-JUL-07 04.49.13.615512 PM | 220 |
| 163 | Ernest | Chandar | 2404 | 01-JUL-07 04.49.13.664085 PM | 510 |
| 164 | Charlotte | Kazan | 2405 | 01-JUL-07 04.49.13.678123 PM | 1233 |
| 165 | Charlotte | Fonda | 2407 | 29-JUN-07 07.03.21.526005 AM | 2519 |
| 166 | Dheeraj | Alexander | 2408 | 29-JUN-07 08.59.31.333617 AM | 309 |
| 167 | Gerard | Hershey | 2409 | 29-JUN-07 09.53.41.984501 AM | 48 |
| 168 | Hema | Voight | 2410 | 24-MAY-08 10.19.51.985501 AM | 45175 |
| 169 | Dheeraj | Davis | 2411 | 24-MAY-07 11.22.10.548639 AM | 15760.5 |
| 170 | Harry Dean | Fonda | 2412 | 29-MAR-06 10.22.09.509801 AM | 66816 |
SELECT
oe.customers.customer_id,
oe.customers.cust_first_name,
oe.customers.cust_last_name,
oe.orders.order_id,
oe.orders.order_date,
oe.orders.order_total
FROM
oe.customers
INNER JOIN
oe.orders
ON oe.customers.customer_id = oe.orders.customer_id
ORDER BY
oe.customers.customer_id,
oe.orders.order_date;
Problem 5
Retrieve the customer ID, customer first name, customer last name for customers that have not made an order. Sort the result set by customer ID, ascending. Use a join in conjunction with a WHERE clause to achieve this. Do not use a subquery.
oe.customers
oe.orders
| CUSTOMER_ID | CUST_FIRST_NAME | CUST_LAST_NAME |
|---|---|---|
| 110 | Charlie | Sutherland |
| 111 | Charlie | Pacino |
| 112 | Guillaume | Jackson |
| 113 | Daniel | Costner |
| 114 | Dianne | Derek |
| 115 | Geraldine | Schneider |
| 124 | Diane | Mason |
| 125 | Dianne | Andrews |
| 126 | Charles | Field |
| 127 | Charles | Broderick |
| 128 | Isabella | Reed |
| 129 | Louis | Jackson |
| 130 | Louis | Edwards |
| 131 | Doris | Dutt |
| 132 | Doris | Spacek |
| 133 | Kristin | Malden |
| 134 | Sissy | Puri |
| 135 | Doris | Bel Geddes |
| 136 | Sissy | Warden |
| 137 | Elia | Brando |
| 138 | Mani | Fonda |
| 139 | Placido | Kubrick |
| 140 | Claudia | Kurosawa |
| 171 | Hema | Powell |
| 172 | Harry Mean | Peckinpah |
| 173 | Kathleen | Walken |
| 174 | Blake | Seignier |
| 175 | Claude | Powell |
| 176 | Faye | Glenn |
| 177 | Gerhard | Seignier |
| 178 | Grace | Belushi |
| 179 | Harry dean | Forrest |
| 180 | Harry dean | Cage |
| 181 | Lauren | Hershey |
| 182 | Lauren | Dench |
| 183 | Lauren | Altman |
| 184 | Mary Beth | Roberts |
| 185 | Matthew | Wright |
| 186 | Meena | Alexander |
| 187 | Grace | Dvrrie |
| 188 | Charlotte | Buckley |
| 189 | Gena | Harris |
| 190 | Gena | Curtis |
| 191 | Maureen | Sanders |
| 192 | Sean | Stockwell |
| 193 | Harry dean | Kinski |
| 194 | Kathleen | Garcia |
| 195 | Sean | Olin |
| 196 | Gerard | Dench |
| 197 | Gerard | Altman |
| 198 | Maureen | de Funes |
| 199 | Clint | Chapman |
| 200 | Clint | Gielgud |
| 201 | Eric | Prashant |
| 202 | Ingrid | Welles |
| 203 | Ingrid | Rampling |
| 204 | Cliff | Puri |
| 205 | Emily | Pollack |
| 206 | Fritz | Hackman |
| 207 | Cybill | Laughton |
| 208 | Cyndi | Griem |
| 209 | Cyndi | Collins |
| 210 | Cybill | Clapton |
| 211 | Luchino | Jordan |
| 212 | Luchino | Falk |
| 213 | Luchino | Bradford |
| 214 | Robin | Danson |
| 215 | Orson | Perkins |
| 216 | Orson | Koirala |
| 217 | Bryan | Huston |
| 218 | Bryan | Dvrrie |
| 219 | Ajay | Sen |
| 220 | Carol | Jordan |
| 221 | Carol | Bradford |
| 222 | Cary | Stockwell |
| 223 | Cary | Olin |
| 224 | Clara | Krige |
| 225 | Clara | Ganesan |
| 226 | Ajay | Andrews |
| 227 | Kathy | Prashant |
| 228 | Graham | Neeson |
| 229 | Ian | Chapman |
| 230 | Danny | Wright |
| 231 | Danny | Rourke |
| 232 | Donald | Hunter |
| 233 | Graham | Spielberg |
| 234 | Dan | Roberts |
| 235 | Edward | Oates |
| 236 | Edward | Julius |
| 237 | Farrah | Quinlan |
| 238 | Farrah | Lange |
| 239 | Hal | Stockwell |
| 240 | Malcolm | Kanth |
| 241 | Malcolm | Broderick |
| 242 | Mary | Lemmon |
| 243 | Mary | Collins |
| 244 | Matt | Gueney |
| 245 | Max | von Sydow |
| 246 | Max | Schell |
| 247 | Cynda | Whitcraft |
| 248 | Donald | Minnelli |
| 249 | Hannah | Broderick |
| 250 | Dan | Williams |
| 251 | Raul | Wilder |
| 252 | Shah Rukh | Field |
| 253 | Sally | Bogart |
| 254 | Bruce | Bates |
| 255 | Brooke | Shepherd |
| 256 | Ben | de Niro |
| 257 | Emmet | Walken |
| 258 | Ellen | Palin |
| 259 | Denholm | von Sydow |
| 260 | Ellen | Khan |
| 261 | Emmet | Garcia |
| 262 | Fred | Reynolds |
| 263 | Fred | Lithgow |
| 264 | George | Adjani |
| 265 | Irene | Laughton |
| 266 | Prem | Cardinale |
| 267 | Prem | Walken |
| 268 | Kyle | Schneider |
| 269 | Kyle | Martin |
| 270 | Meg | Derek |
| 271 | Shelley | Peckinpah |
| 272 | Prem | Garcia |
| 273 | Bo | Hitchcock |
| 274 | Bob | McCarthy |
| 275 | Dom | McQueen |
| 276 | Dom | Hoskins |
| 277 | Don | Siegel |
| 278 | Gvtz | Bradford |
| 279 | Holly | Kurosawa |
| 280 | Rob | MacLaine |
| 281 | Don | Barkin |
| 282 | Kurt | Danson |
| 283 | Kurt | Heard |
| 308 | Glenda | Dunaway |
| 309 | Glenda | Bates |
| 323 | Goetz | Falk |
| 326 | Hal | Olin |
| 327 | Hannah | Kanth |
| 328 | Hannah | Field |
| 333 | Margret | Powell |
| 334 | Harry Mean | Taylor |
| 335 | Margrit | Garner |
| 337 | Maria | Warden |
| 339 | Marilou | Landis |
| 341 | Keir | George |
| 342 | Marlon | Laughton |
| 343 | Keir | Chandar |
| 344 | Marlon | Godard |
| 345 | Keir | Weaver |
| 346 | Marlon | Clapton |
| 347 | Kelly | Quinlan |
| 348 | Kelly | Lange |
| 349 | Ken | Glenn |
| 350 | Ken | Chopra |
| 351 | Ken | Wenders |
| 352 | Kenneth | Redford |
| 360 | Helmut | Capshaw |
| 361 | Marilou | Chapman |
| 363 | Kathy | Lambert |
| 378 | Meg | Sen |
| 380 | Meryl | Holden |
| 447 | Richard | Coppola |
| 448 | Richard | Winters |
| 449 | Rick | Romero |
| 450 | Rick | Lyon |
| 451 | Ridley | Hackman |
| 452 | Ridley | Coyote |
| 453 | Ridley | Young |
| 454 | Rob | Russell |
| 458 | Robert | de Niro |
| 463 | Robin | Adjani |
| 466 | Rodolfo | Hershey |
| 467 | Rodolfo | Dench |
| 468 | Rodolfo | Altman |
| 470 | Roger | Mastroianni |
| 473 | Rolf | Ashby |
| 474 | Romy | Sharif |
| 475 | Romy | McCarthy |
| 476 | Rosanne | Hopkins |
| 477 | Rosanne | Douglas |
| 478 | Rosanne | Baldwin |
| 479 | Roxanne | Shepherd |
| 480 | Roxanne | Michalkow |
| 481 | Roy | Hulce |
| 482 | Roy | Dunaway |
| 483 | Roy | Bates |
| 487 | Rufus | Dvrrie |
| 488 | Rufus | Belushi |
| 492 | Sally | Edwards |
| 496 | Scott | Jordan |
| 605 | Shammi | Pacino |
| 606 | Sharmila | Kazan |
| 607 | Sharmila | Fonda |
| 609 | Shelley | Taylor |
| 615 | Shyam | Plummer |
| 621 | Silk | Kurosawa |
| 627 | Sivaji | Gielgud |
| 712 | M. Emmet | Stockwell |
| 713 | M. Emmet | Olin |
| 715 | Malcolm | Field |
| 717 | Mammutti | Sutherland |
| 719 | Mani | Kazan |
| 721 | Mani | Buckley |
| 727 | Margaret | Ustinov |
| 729 | Margaux | Krige |
| 731 | Margaux | Capshaw |
| 754 | Kevin | Goodman |
| 755 | Kevin | Cleveland |
| 756 | Kevin | Wilder |
| 757 | Kiefer | Reynolds |
| 766 | Klaus | Young |
| 767 | Klaus Maria | Russell |
| 768 | Klaus Maria | MacLaine |
| 769 | Kris | Harris |
| 770 | Kris | Curtis |
| 771 | Kris | de Niro |
| 772 | Kristin | Savage |
| 782 | Laurence | Seignier |
| 825 | Alain | Dreyfuss |
| 826 | Alain | Barkin |
| 827 | Alain | Siegel |
| 828 | Alan | Minnelli |
| 829 | Alan | Hunter |
| 830 | Albert | Dutt |
| 831 | Albert | Bel Geddes |
| 832 | Albert | Spacek |
| 833 | Alec | Moranis |
| 834 | Alec | Idle |
| 835 | Alexander | Eastwood |
| 836 | Alexander | Berenger |
| 837 | Alexander | Stanton |
| 838 | Alfred | Nicholson |
| 839 | Alfred | Johnson |
| 840 | Ali | Elliott |
| 841 | Ali | Boyer |
| 842 | Ali | Stern |
| 843 | Alice | Oates |
| 844 | Alice | Julius |
| 845 | Ally | Fawcett |
| 846 | Ally | Brando |
| 847 | Ally | Streep |
| 848 | Alonso | Olmos |
| 849 | Alonso | Kaurusmdki |
| 850 | Amanda | Finney |
| 851 | Amanda | Brown |
| 852 | Amanda | Tanner |
| 853 | Amrish | Palin |
| 905 | Billy | Hershey |
| 906 | Billy | Dench |
| 909 | Blake | Mastroianni |
| 911 | Bo | Dickinson |
| 912 | Bo | Ashby |
| 913 | Bob | Sharif |
| 916 | Brian | Douglas |
| 917 | Brian | Baldwin |
| 919 | Brooke | Michalkow |
| 920 | Bruce | Hulce |
| 921 | Bruce | Dunaway |
| 923 | Bruno | Slater |
| 924 | Bruno | Montand |
| 927 | Bryan | Belushi |
| 928 | Burt | Spielberg |
| 929 | Burt | Neeson |
| 930 | Buster | Jackson |
| 931 | Buster | Edwards |
| 932 | Buster | Bogart |
| 934 | C. Thomas | Nolte |
| 980 | Daniel | Loren |
| 981 | Daniel | Gueney |
SELECT
oe.customers.customer_id,
oe.customers.cust_first_name,
oe.customers.cust_last_name
FROM
oe.customers
LEFT JOIN
oe.orders
ON oe.customers.customer_id = oe.orders.customer_id
WHERE
oe.orders.order_id IS NULL
ORDER BY
oe.customers.customer_id;
Problem 6
For each order, retrieve the order ID, order date, and line-item IDs associated with the order ID. In addition, for each of the line-items associated with an order ID, include the unit price, quantity, and the sale amount (unit price * quantity) for the line item. Provide the derived sale amount column with an alias of “sale_amount.” Sort the result set by order date (ascending), order ID (ascending), and line-item ID (ascending).
oe.orders
oe.order_items
| ORDER_ID | ORDER_DATE | LINE_ITEM_ID | UNIT_PRICE | QUANTITY | SALE_AMOUNT |
|---|---|---|---|---|---|
| 2418 | 20-MAR-04 04.18.21.862632 PM | 1 | 75 | 15 | 1125 |
| 2418 | 20-MAR-04 04.18.21.862632 PM | 2 | 187 | 12 | 2244 |
| 2418 | 20-MAR-04 04.18.21.862632 PM | 3 | 2.2 | 13 | 28.6 |
| 2418 | 20-MAR-04 04.18.21.862632 PM | 4 | 45 | 20 | 900 |
| 2418 | 20-MAR-04 04.18.21.862632 PM | 5 | 20 | 31 | 620 |
| 2418 | 20-MAR-04 04.18.21.862632 PM | 6 | 17 | 37 | 629 |
| 2357 | 08-JAN-06 08.19.44.123456 PM | 1 | 3.3 | 140 | 462 |
| 2357 | 08-JAN-06 08.19.44.123456 PM | 2 | 462 | 26 | 12012 |
| 2357 | 08-JAN-06 08.19.44.123456 PM | 3 | 788.7 | 26 | 20506.2 |
| 2357 | 08-JAN-06 08.19.44.123456 PM | 4 | 371.8 | 29 | 10782.2 |
| 2357 | 08-JAN-06 08.19.44.123456 PM | 5 | 95 | 29 | 2755 |
| 2357 | 08-JAN-06 08.19.44.123456 PM | 6 | 75 | 32 | 2400 |
| 2357 | 08-JAN-06 08.19.44.123456 PM | 7 | 236.5 | 38 | 8987 |
| 2357 | 08-JAN-06 08.19.44.123456 PM | 8 | 48 | 41 | 1968 |
| 2359 | 08-JAN-06 09.34.13.112233 PM | 1 | 270.6 | 1 | 270.6 |
| 2359 | 08-JAN-06 09.34.13.112233 PM | 2 | 249 | 1 | 249 |
| 2359 | 08-JAN-06 09.34.13.112233 PM | 3 | 91 | 17 | 1547 |
| 2359 | 08-JAN-06 09.34.13.112233 PM | 4 | 6 | 17 | 102 |
| 2359 | 08-JAN-06 09.34.13.112233 PM | 5 | 96 | 17 | 1632 |
| 2359 | 08-JAN-06 09.34.13.112233 PM | 6 | 5.5 | 17 | 93.5 |
| 2359 | 08-JAN-06 09.34.13.112233 PM | 7 | 97 | 17 | 1649 |
| 2355 | 26-JAN-06 09.22.51.962632 AM | 1 | 46 | 200 | 9200 |
| 2355 | 26-JAN-06 09.22.51.962632 AM | 2 | 57 | 185 | 10545 |
| 2355 | 26-JAN-06 09.22.51.962632 AM | 3 | 86.9 | 188 | 16337.2 |
| 2355 | 26-JAN-06 09.22.51.962632 AM | 4 | 19 | 188 | 3572 |
| 2355 | 26-JAN-06 09.22.51.962632 AM | 5 | 17 | 190 | 3230 |
| 2355 | 26-JAN-06 09.22.51.962632 AM | 6 | 1.1 | 192 | 211.2 |
| 2355 | 26-JAN-06 09.22.51.962632 AM | 7 | 1.1 | 197 | 216.7 |
| 2355 | 26-JAN-06 09.22.51.962632 AM | 8 | 25 | 199 | 4975 |
| 2355 | 26-JAN-06 09.22.51.962632 AM | 9 | 226.6 | 204 | 46226.4 |
| 2396 | 02-FEB-06 01.34.56.345678 AM | 1 | 44 | 150 | 6600 |
| 2396 | 02-FEB-06 01.34.56.345678 AM | 2 | 76 | 75 | 5700 |
| 2396 | 02-FEB-06 01.34.56.345678 AM | 3 | 44 | 79 | 3476 |
| 2396 | 02-FEB-06 01.34.56.345678 AM | 4 | 100 | 83 | 8300 |
| 2396 | 02-FEB-06 01.34.56.345678 AM | 5 | 19 | 93 | 1767 |
| 2396 | 02-FEB-06 01.34.56.345678 AM | 6 | 17 | 93 | 1581 |
| 2396 | 02-FEB-06 01.34.56.345678 AM | 7 | 47 | 98 | 4606 |
| 2396 | 02-FEB-06 01.34.56.345678 AM | 8 | 29 | 100 | 2900 |
| 2395 | 02-FEB-06 08.19.11.227550 PM | 1 | 3.3 | 110 | 363 |
| 2395 | 02-FEB-06 08.19.11.227550 PM | 2 | 332.2 | 27 | 8969.4 |
| 2395 | 02-FEB-06 08.19.11.227550 PM | 3 | 788.7 | 30 | 23661 |
| 2395 | 02-FEB-06 08.19.11.227550 PM | 4 | 690.8 | 34 | 23487.2 |
| 2395 | 02-FEB-06 08.19.11.227550 PM | 5 | 199.1 | 34 | 6769.4 |
| 2395 | 02-FEB-06 08.19.11.227550 PM | 6 | 71 | 37 | 2627 |
| 2395 | 02-FEB-06 08.19.11.227550 PM | 7 | 64 | 41 | 2624 |
| 2391 | 27-FEB-06 05.03.03.828330 PM | 1 | 101 | 5 | 505 |
| 2391 | 27-FEB-06 05.03.03.828330 PM | 2 | 262.9 | 3 | 788.7 |
| 2391 | 27-FEB-06 05.03.03.828330 PM | 3 | 348 | 7 | 2436 |
| 2391 | 27-FEB-06 05.03.03.828330 PM | 4 | 961.4 | 10 | 9614 |
| 2391 | 27-FEB-06 05.03.03.828330 PM | 5 | 55 | 15 | 825 |
| 2391 | 27-FEB-06 05.03.03.828330 PM | 6 | 52 | 18 | 936 |
| 2391 | 27-FEB-06 05.03.03.828330 PM | 7 | 1433.3 | 23 | 32965.9 |
| 2412 | 29-MAR-06 10.22.09.509801 AM | 1 | 46 | 170 | 7820 |
| 2412 | 29-MAR-06 10.22.09.509801 AM | 2 | 98 | 68 | 6664 |
| 2412 | 29-MAR-06 10.22.09.509801 AM | 3 | 71.5 | 68 | 4862 |
| 2412 | 29-MAR-06 10.22.09.509801 AM | 4 | 492 | 72 | 35424 |
| 2412 | 29-MAR-06 10.22.09.509801 AM | 5 | 18 | 75 | 1350 |
| 2412 | 29-MAR-06 10.22.09.509801 AM | 6 | 20 | 79 | 1580 |
| 2412 | 29-MAR-06 10.22.09.509801 AM | 7 | 16 | 80 | 1280 |
| 2412 | 29-MAR-06 10.22.09.509801 AM | 8 | 30 | 92 | 2760 |
| 2412 | 29-MAR-06 10.22.09.509801 AM | 9 | 54 | 94 | 5076 |
| 2415 | 29-MAR-06 01.34.50.545196 PM | 1 | 62 | 5 | 310 |
| 2442 | 27-JUL-06 12.22.59.662632 PM | 1 | 127 | 26 | 3302 |
| 2442 | 27-JUL-06 12.22.59.662632 PM | 2 | 350.9 | 21 | 7368.9 |
| 2442 | 27-JUL-06 12.22.59.662632 PM | 3 | 60 | 23 | 1380 |
| 2442 | 27-JUL-06 12.22.59.662632 PM | 4 | 144 | 25 | 3600 |
| 2442 | 27-JUL-06 12.22.59.662632 PM | 5 | 173 | 28 | 4844 |
| 2442 | 27-JUL-06 12.22.59.662632 PM | 6 | 115.5 | 30 | 3465 |
| 2442 | 27-JUL-06 12.22.59.662632 PM | 7 | 624.8 | 40 | 24992 |
| 2442 | 27-JUL-06 12.22.59.662632 PM | 8 | 80 | 44 | 3520 |
| 2443 | 27-JUL-06 01.34.16.562632 PM | 1 | 44 | 3 | 132 |
| 2443 | 27-JUL-06 01.34.16.562632 PM | 2 | 101 | 2 | 202 |
| 2443 | 27-JUL-06 01.34.16.562632 PM | 3 | 82 | 6 | 492 |
| 2443 | 27-JUL-06 01.34.16.562632 PM | 4 | 20 | 12 | 240 |
| 2443 | 27-JUL-06 01.34.16.562632 PM | 5 | 15 | 17 | 255 |
| 2443 | 27-JUL-06 01.34.16.562632 PM | 6 | 18 | 17 | 306 |
| 2443 | 27-JUL-06 01.34.16.562632 PM | 7 | 43 | 21 | 903 |
| 2443 | 27-JUL-06 01.34.16.562632 PM | 8 | 36 | 31 | 1116 |
| 2445 | 27-JUL-06 03.34.38.362632 PM | 1 | 66 | 5 | 330 |
| 2445 | 27-JUL-06 03.34.38.362632 PM | 2 | 49 | 3 | 147 |
| 2445 | 27-JUL-06 03.34.38.362632 PM | 3 | 97 | 11 | 1067 |
| 2445 | 27-JUL-06 03.34.38.362632 PM | 4 | 72 | 14 | 1008 |
| 2445 | 27-JUL-06 03.34.38.362632 PM | 5 | 95 | 24 | 2280 |
| 2445 | 27-JUL-06 03.34.38.362632 PM | 6 | 25 | 27 | 675 |
| 2445 | 27-JUL-06 03.34.38.362632 PM | 7 | 1.1 | 28 | 30.8 |
| 2437 | 01-SEP-06 08.59.15.826132 AM | 1 | 83 | 8 | 664 |
| 2437 | 01-SEP-06 08.59.15.826132 AM | 2 | 157.3 | 4 | 629.2 |
| 2437 | 01-SEP-06 08.59.15.826132 AM | 3 | 4.4 | 17 | 74.8 |
| 2437 | 01-SEP-06 08.59.15.826132 AM | 4 | 76 | 19 | 1444 |
| 2437 | 01-SEP-06 08.59.15.826132 AM | 5 | 64 | 21 | 1344 |
| 2437 | 01-SEP-06 08.59.15.826132 AM | 6 | 268.4 | 35 | 9394 |
| 2431 | 14-SEP-06 07.03.04.763452 AM | 1 | 2.2 | 3 | 6.6 |
| 2431 | 14-SEP-06 07.03.04.763452 AM | 2 | 48 | 1 | 48 |
| 2431 | 14-SEP-06 07.03.04.763452 AM | 3 | 101 | 3 | 303 |
| 2431 | 14-SEP-06 07.03.04.763452 AM | 4 | 41 | 7 | 287 |
| 2431 | 14-SEP-06 07.03.04.763452 AM | 5 | 498 | 9 | 4482 |
| 2431 | 14-SEP-06 07.03.04.763452 AM | 6 | 44 | 11 | 484 |
| 2456 | 07-NOV-06 07.53.25.989889 PM | 1 | 40 | 5 | 200 |
| 2456 | 07-NOV-06 07.53.25.989889 PM | 2 | 193.6 | 19 | 3678.4 |
| 2425 | 16-NOV-06 11.34.22.162552 PM | 1 | 492.8 | 3 | 1478.4 |
| 2425 | 16-NOV-06 11.34.22.162552 PM | 2 | 9 | 2 | 18 |
| 2425 | 16-NOV-06 11.34.22.162552 PM | 3 | 1.1 | 4 | 4.4 |
| 2426 | 17-NOV-06 12.22.11.262552 AM | 1 | 2.2 | 6 | 13.2 |
| 2426 | 17-NOV-06 12.22.11.262552 AM | 2 | 30 | 11 | 330 |
| 2426 | 17-NOV-06 12.22.11.262552 AM | 3 | 34 | 18 | 612 |
| 2426 | 17-NOV-06 12.22.11.262552 AM | 4 | 212.3 | 26 | 5519.8 |
| 2426 | 17-NOV-06 12.22.11.262552 AM | 5 | 25 | 29 | 725 |
| 2375 | 26-FEB-07 03.49.50.459233 AM | 1 | 42 | 140 | 5880 |
| 2375 | 26-FEB-07 03.49.50.459233 AM | 2 | 71 | 84 | 5964 |
| 2375 | 26-FEB-07 03.49.50.459233 AM | 3 | 38 | 85 | 3230 |
| 2375 | 26-FEB-07 03.49.50.459233 AM | 4 | 488.4 | 86 | 42002.4 |
| 2375 | 26-FEB-07 03.49.50.459233 AM | 5 | 45 | 88 | 3960 |
| 2375 | 26-FEB-07 03.49.50.459233 AM | 6 | 17 | 90 | 1530 |
| 2375 | 26-FEB-07 03.49.50.459233 AM | 7 | 15 | 93 | 1395 |
| 2375 | 26-FEB-07 03.49.50.459233 AM | 8 | 17 | 93 | 1581 |
| 2375 | 26-FEB-07 03.49.50.459233 AM | 9 | 45 | 98 | 4410 |
| 2375 | 26-FEB-07 03.49.50.459233 AM | 10 | 30 | 99 | 2970 |
| 2375 | 26-FEB-07 03.49.50.459233 AM | 11 | 36 | 103 | 3708 |
| 2375 | 26-FEB-07 03.49.50.459233 AM | 12 | 132 | 107 | 14124 |
| 2375 | 26-FEB-07 03.49.50.459233 AM | 13 | 120 | 109 | 13080 |
| 2372 | 27-FEB-07 12.22.33.356789 AM | 1 | 48 | 6 | 288 |
| 2372 | 27-FEB-07 12.22.33.356789 AM | 2 | 74 | 2 | 148 |
| 2372 | 27-FEB-07 12.22.33.356789 AM | 3 | 42 | 7 | 294 |
| 2372 | 27-FEB-07 12.22.33.356789 AM | 4 | 81 | 10 | 810 |
| 2372 | 27-FEB-07 12.22.33.356789 AM | 5 | 496 | 13 | 6448 |
| 2372 | 27-FEB-07 12.22.33.356789 AM | 6 | 17 | 17 | 289 |
| 2372 | 27-FEB-07 12.22.33.356789 AM | 7 | 15 | 21 | 315 |
| 2372 | 27-FEB-07 12.22.33.356789 AM | 8 | 30 | 30 | 900 |
| 2372 | 27-FEB-07 12.22.33.356789 AM | 9 | 54 | 32 | 1728 |
| 2372 | 27-FEB-07 12.22.33.356789 AM | 10 | 145.2 | 36 | 5227.2 |
| 2387 | 11-MAR-07 03.34.56.536966 PM | 1 | 3.3 | 52 | 171.6 |
| 2387 | 11-MAR-07 03.34.56.536966 PM | 2 | 332.2 | 20 | 6644 |
| 2387 | 11-MAR-07 03.34.56.536966 PM | 3 | 462 | 22 | 10164 |
| 2387 | 11-MAR-07 03.34.56.536966 PM | 4 | 788.7 | 27 | 21294.9 |
| 2387 | 11-MAR-07 03.34.56.536966 PM | 5 | 354.2 | 32 | 11334.4 |
| 2387 | 11-MAR-07 03.34.56.536966 PM | 6 | 75 | 42 | 3150 |
| 2421 | 12-MAR-07 09.53.54.562432 PM | 1 | 46 | 160 | 7360 |
| 2421 | 12-MAR-07 09.53.54.562432 PM | 2 | 78 | 160 | 12480 |
| 2421 | 12-MAR-07 09.53.54.562432 PM | 3 | 72 | 164 | 11808 |
| 2421 | 12-MAR-07 09.53.54.562432 PM | 4 | 41 | 165 | 6765 |
| 2421 | 12-MAR-07 09.53.54.562432 PM | 5 | 80 | 168 | 13440 |
| 2421 | 12-MAR-07 09.53.54.562432 PM | 6 | 43 | 172 | 7396 |
| 2421 | 12-MAR-07 09.53.54.562432 PM | 7 | 15 | 176 | 2640 |
| 2421 | 12-MAR-07 09.53.54.562432 PM | 8 | 17 | 176 | 2992 |
| 2421 | 12-MAR-07 09.53.54.562432 PM | 9 | 43 | 185 | 7955 |
| 2420 | 13-MAR-07 08.59.43.666320 PM | 1 | 46 | 110 | 5060 |
| 2420 | 13-MAR-07 08.59.43.666320 PM | 2 | 46 | 11 | 506 |
| 2420 | 13-MAR-07 08.59.43.666320 PM | 3 | 101 | 15 | 1515 |
| 2420 | 13-MAR-07 08.59.43.666320 PM | 4 | 79 | 20 | 1580 |
| 2420 | 13-MAR-07 08.59.43.666320 PM | 5 | 496 | 22 | 10912 |
| 2420 | 13-MAR-07 08.59.43.666320 PM | 6 | 48 | 29 | 1392 |
| 2420 | 13-MAR-07 08.59.43.666320 PM | 7 | 19 | 34 | 646 |
| 2420 | 13-MAR-07 08.59.43.666320 PM | 8 | 15 | 39 | 585 |
| 2420 | 13-MAR-07 08.59.43.666320 PM | 9 | 30 | 45 | 1350 |
| 2420 | 13-MAR-07 08.59.43.666320 PM | 10 | 132 | 47 | 6204 |
| 2417 | 20-MAR-07 05.49.10.974352 PM | 1 | 4.4 | 9 | 39.6 |
| 2417 | 20-MAR-07 05.49.10.974352 PM | 2 | 51 | 37 | 1887 |
| 2419 | 20-MAR-07 07.03.32.764632 PM | 1 | 46 | 150 | 6900 |
| 2419 | 20-MAR-07 07.03.32.764632 PM | 2 | 99 | 45 | 4455 |
| 2419 | 20-MAR-07 07.03.32.764632 PM | 3 | 71.5 | 48 | 3432 |
| 2419 | 20-MAR-07 07.03.32.764632 PM | 4 | 43 | 57 | 2451 |
| 2419 | 20-MAR-07 07.03.32.764632 PM | 5 | 45 | 61 | 2745 |
| 2419 | 20-MAR-07 07.03.32.764632 PM | 6 | 17 | 69 | 1173 |
| 2419 | 20-MAR-07 07.03.32.764632 PM | 7 | 47 | 72 | 3384 |
| 2419 | 20-MAR-07 07.03.32.764632 PM | 8 | 35 | 76 | 2660 |
| 2419 | 20-MAR-07 07.03.32.764632 PM | 9 | 54 | 81 | 4374 |
| 2414 | 29-MAR-07 02.22.40.536996 PM | 1 | 1.1 | 8 | 8.8 |
| 2414 | 29-MAR-07 02.22.40.536996 PM | 2 | 30 | 7 | 210 |
| 2414 | 29-MAR-07 02.22.40.536996 PM | 3 | 41 | 9 | 369 |
| 2414 | 29-MAR-07 02.22.40.536996 PM | 4 | 39 | 11 | 429 |
| 2414 | 29-MAR-07 02.22.40.536996 PM | 5 | 212.3 | 18 | 3821.4 |
| 2414 | 29-MAR-07 02.22.40.536996 PM | 6 | 206.8 | 23 | 4756.4 |
| 2414 | 29-MAR-07 02.22.40.536996 PM | 7 | 50 | 24 | 1200 |
| 2416 | 29-MAR-07 04.41.20.945676 PM | 1 | 4.4 | 10 | 44 |
| 2416 | 29-MAR-07 04.41.20.945676 PM | 2 | 340 | 1 | 340 |
| 2450 | 11-APR-07 06.18.10.362632 PM | 1 | 1.1 | 4 | 4.4 |
| 2450 | 11-APR-07 06.18.10.362632 PM | 2 | 2.2 | 3 | 6.6 |
| 2450 | 11-APR-07 06.18.10.362632 PM | 3 | 44 | 5 | 220 |
| 2450 | 11-APR-07 06.18.10.362632 PM | 4 | 29 | 11 | 319 |
| 2450 | 11-APR-07 06.18.10.362632 PM | 5 | 41 | 14 | 574 |
| 2450 | 11-APR-07 06.18.10.362632 PM | 6 | 32 | 16 | 512 |
| 2371 | 16-MAY-07 01.34.56.113356 AM | 1 | 157 | 6 | 942 |
| 2371 | 16-MAY-07 01.34.56.113356 AM | 2 | 96 | 8 | 768 |
| 2371 | 16-MAY-07 01.34.56.113356 AM | 3 | 73 | 15 | 1095 |
| 2371 | 16-MAY-07 01.34.56.113356 AM | 4 | 21 | 21 | 441 |
| 2371 | 16-MAY-07 01.34.56.113356 AM | 5 | 17 | 24 | 408 |
| 2371 | 16-MAY-07 01.34.56.113356 AM | 6 | 3.3 | 26 | 85.8 |
| 2371 | 16-MAY-07 01.34.56.113356 AM | 7 | 25 | 29 | 725 |
| 2371 | 16-MAY-07 01.34.56.113356 AM | 8 | 2341.9 | 32 | 74940.8 |
| 2379 | 16-MAY-07 02.22.24.234567 AM | 1 | 42 | 92 | 3864 |
| 2379 | 16-MAY-07 02.22.24.234567 AM | 2 | 98 | 14 | 1372 |
| 2379 | 16-MAY-07 02.22.24.234567 AM | 3 | 488.4 | 23 | 11233.2 |
| 2379 | 16-MAY-07 02.22.24.234567 AM | 4 | 21 | 34 | 714 |
| 2379 | 16-MAY-07 02.22.24.234567 AM | 5 | 19 | 35 | 665 |
| 2380 | 16-MAY-07 09.53.02.909090 AM | 1 | 42 | 26 | 1092 |
| 2380 | 16-MAY-07 09.53.02.909090 AM | 2 | 75 | 18 | 1350 |
| 2380 | 16-MAY-07 09.53.02.909090 AM | 3 | 38 | 23 | 874 |
| 2380 | 16-MAY-07 09.53.02.909090 AM | 4 | 488.4 | 24 | 11721.6 |
| 2380 | 16-MAY-07 09.53.02.909090 AM | 5 | 46 | 28 | 1288 |
| 2380 | 16-MAY-07 09.53.02.909090 AM | 6 | 20 | 30 | 600 |
| 2380 | 16-MAY-07 09.53.02.909090 AM | 7 | 15 | 31 | 465 |
| 2380 | 16-MAY-07 09.53.02.909090 AM | 8 | 17 | 33 | 561 |
| 2380 | 16-MAY-07 09.53.02.909090 AM | 9 | 45 | 33 | 1485 |
| 2380 | 16-MAY-07 09.53.02.909090 AM | 10 | 32 | 36 | 1152 |
| 2380 | 16-MAY-07 09.53.02.909090 AM | 11 | 52 | 37 | 1924 |
| 2380 | 16-MAY-07 09.53.02.909090 AM | 12 | 113.3 | 40 | 4532 |
| 2380 | 16-MAY-07 09.53.02.909090 AM | 13 | 2.2 | 40 | 88 |
| 2378 | 24-MAY-07 08.59.10.010101 AM | 1 | 113.3 | 20 | 2266 |
| 2378 | 24-MAY-07 08.59.10.010101 AM | 2 | 95 | 2 | 190 |
| 2378 | 24-MAY-07 08.59.10.010101 AM | 3 | 438.9 | 7 | 3072.3 |
| 2378 | 24-MAY-07 08.59.10.010101 AM | 4 | 27 | 11 | 297 |
| 2378 | 24-MAY-07 08.59.10.010101 AM | 5 | 79 | 11 | 869 |
| 2378 | 24-MAY-07 08.59.10.010101 AM | 6 | 217.8 | 15 | 3267 |
| 2378 | 24-MAY-07 08.59.10.010101 AM | 7 | 4.4 | 25 | 110 |
| 2378 | 24-MAY-07 08.59.10.010101 AM | 8 | 624.8 | 25 | 15620 |
| 2411 | 24-MAY-07 11.22.10.548639 AM | 1 | 81 | 2 | 162 |
| 2411 | 24-MAY-07 11.22.10.548639 AM | 2 | 208 | 2 | 416 |
| 2411 | 24-MAY-07 11.22.10.548639 AM | 3 | 2.2 | 6 | 13.2 |
| 2411 | 24-MAY-07 11.22.10.548639 AM | 4 | 3.3 | 7 | 23.1 |
| 2411 | 24-MAY-07 11.22.10.548639 AM | 5 | 73 | 8 | 584 |
| 2411 | 24-MAY-07 11.22.10.548639 AM | 6 | 45 | 11 | 495 |
| 2411 | 24-MAY-07 11.22.10.548639 AM | 7 | 72 | 17 | 1224 |
| 2411 | 24-MAY-07 11.22.10.548639 AM | 8 | 75 | 17 | 1275 |
| 2411 | 24-MAY-07 11.22.10.548639 AM | 9 | 84 | 17 | 1428 |
| 2411 | 24-MAY-07 11.22.10.548639 AM | 10 | 488.4 | 18 | 8791.2 |
| 2411 | 24-MAY-07 11.22.10.548639 AM | 11 | 43 | 23 | 989 |
| 2411 | 24-MAY-07 11.22.10.548639 AM | 12 | 15 | 24 | 360 |
| 2388 | 04-JUN-07 04.41.12.554435 PM | 1 | 43 | 150 | 6450 |
| 2388 | 04-JUN-07 04.41.12.554435 PM | 2 | 94 | 90 | 8460 |
| 2388 | 04-JUN-07 04.41.12.554435 PM | 3 | 56 | 96 | 5376 |
| 2388 | 04-JUN-07 04.41.12.554435 PM | 4 | 1.1 | 105 | 115.5 |
| 2388 | 04-JUN-07 04.41.12.554435 PM | 5 | 2341.9 | 112 | 262292.8 |
| 2376 | 07-JUN-07 06.18.08.883310 AM | 1 | 60 | 14 | 840 |
| 2376 | 07-JUN-07 06.18.08.883310 AM | 2 | 236.5 | 4 | 946 |
| 2376 | 07-JUN-07 06.18.08.883310 AM | 3 | 99 | 13 | 1287 |
| 2376 | 07-JUN-07 06.18.08.883310 AM | 4 | 73 | 17 | 1241 |
| 2376 | 07-JUN-07 06.18.08.883310 AM | 5 | 133.1 | 21 | 2795.1 |
| 2376 | 07-JUN-07 06.18.08.883310 AM | 6 | 95 | 25 | 2375 |
| 2376 | 07-JUN-07 06.18.08.883310 AM | 7 | 21 | 27 | 567 |
| 2376 | 07-JUN-07 06.18.08.883310 AM | 8 | 25 | 32 | 800 |
| 2376 | 07-JUN-07 06.18.08.883310 AM | 9 | 1.1 | 33 | 36.3 |
| 2376 | 07-JUN-07 06.18.08.883310 AM | 10 | 3.3 | 36 | 118.8 |
| 2377 | 07-JUN-07 07.03.01.001100 AM | 1 | 42 | 130 | 5460 |
| 2377 | 07-JUN-07 07.03.01.001100 AM | 2 | 147 | 119 | 17493 |
| 2377 | 07-JUN-07 07.03.01.001100 AM | 3 | 95 | 121 | 11495 |
| 2377 | 07-JUN-07 07.03.01.001100 AM | 4 | 25 | 131 | 3275 |
| 2377 | 07-JUN-07 07.03.01.001100 AM | 5 | 1.1 | 132 | 145.2 |
| 2377 | 07-JUN-07 07.03.01.001100 AM | 6 | 1.1 | 136 | 149.6 |
| 2449 | 13-JUN-07 05.49.07.162632 PM | 1 | 43 | 2 | 86 |
| 2448 | 18-JUN-07 04.41.49.262632 PM | 1 | 44 | 3 | 132 |
| 2448 | 18-JUN-07 04.41.49.262632 PM | 2 | 99 | 0 | 0 |
| 2448 | 18-JUN-07 04.41.49.262632 PM | 3 | 42 | 11 | 462 |
| 2448 | 18-JUN-07 04.41.49.262632 PM | 4 | 17 | 14 | 238 |
| 2448 | 18-JUN-07 04.41.49.262632 PM | 5 | 20 | 15 | 300 |
| 2448 | 18-JUN-07 04.41.49.262632 PM | 6 | 16 | 16 | 256 |
| 2369 | 26-JUN-07 11.22.54.009932 PM | 1 | 18 | 3 | 54 |
| 2369 | 26-JUN-07 11.22.54.009932 PM | 2 | 43 | 1 | 43 |
| 2369 | 26-JUN-07 11.22.54.009932 PM | 3 | 32 | 5 | 160 |
| 2369 | 26-JUN-07 11.22.54.009932 PM | 4 | 34 | 10 | 340 |
| 2369 | 26-JUN-07 11.22.54.009932 PM | 5 | 145.2 | 24 | 3484.8 |
| 2369 | 26-JUN-07 11.22.54.009932 PM | 6 | 113.3 | 24 | 2719.2 |
| 2369 | 26-JUN-07 11.22.54.009932 PM | 7 | 2.2 | 24 | 52.8 |
| 2369 | 26-JUN-07 11.22.54.009932 PM | 8 | 2.2 | 28 | 61.6 |
| 2369 | 26-JUN-07 11.22.54.009932 PM | 9 | 123 | 34 | 4182 |
| 2406 | 29-JUN-07 04.41.20.098765 AM | 1 | 85 | 5 | 425 |
| 2406 | 29-JUN-07 04.41.20.098765 AM | 2 | 3.3 | 4 | 13.2 |
| 2406 | 29-JUN-07 04.41.20.098765 AM | 3 | 26 | 19 | 494 |
| 2406 | 29-JUN-07 04.41.20.098765 AM | 4 | 62 | 31 | 1922 |
| 2407 | 29-JUN-07 07.03.21.526005 AM | 1 | 85 | 5 | 425 |
| 2407 | 29-JUN-07 07.03.21.526005 AM | 2 | 86 | 18 | 1548 |
| 2407 | 29-JUN-07 07.03.21.526005 AM | 3 | 26 | 21 | 546 |
| 2408 | 29-JUN-07 08.59.31.333617 AM | 1 | 61 | 3 | 183 |
| 2408 | 29-JUN-07 08.59.31.333617 AM | 2 | 26 | 1 | 26 |
| 2408 | 29-JUN-07 08.59.31.333617 AM | 3 | 10 | 10 | 100 |
| 2409 | 29-JUN-07 09.53.41.984501 AM | 1 | 6 | 8 | 48 |
| 2403 | 01-JUL-07 04.49.13.615512 PM | 1 | 44 | 5 | 220 |
| 2404 | 01-JUL-07 04.49.13.664085 PM | 1 | 85 | 6 | 510 |
| 2404 | 01-JUL-07 04.49.13.664085 PM | 2 | 0 | 37 | 0 |
| 2405 | 01-JUL-07 04.49.13.678123 PM | 1 | 137 | 9 | 1233 |
| 2402 | 02-JUL-07 03.34.44.665170 AM | 1 | 75 | 8 | 600 |
| 2400 | 10-JUL-07 01.34.29.559387 AM | 1 | 52 | 4 | 208 |
| 2400 | 10-JUL-07 01.34.29.559387 AM | 2 | 41 | 1 | 41 |
| 2400 | 10-JUL-07 01.34.29.559387 AM | 3 | 123 | 4 | 492 |
| 2400 | 10-JUL-07 01.34.29.559387 AM | 4 | 880 | 16 | 14080 |
| 2400 | 10-JUL-07 01.34.29.559387 AM | 5 | 2866.6 | 19 | 54465.4 |
| 2401 | 10-JUL-07 02.22.53.554822 AM | 1 | 41 | 4 | 164 |
| 2401 | 10-JUL-07 02.22.53.554822 AM | 2 | 268.4 | 3 | 805.2 |
| 2392 | 21-JUL-07 08.59.57.571057 PM | 1 | 43 | 63 | 2709 |
| 2392 | 21-JUL-07 08.59.57.571057 PM | 2 | 73 | 57 | 4161 |
| 2392 | 21-JUL-07 08.59.57.571057 PM | 3 | 38 | 58 | 2204 |
| 2392 | 21-JUL-07 08.59.57.571057 PM | 4 | 77 | 63 | 4851 |
| 2392 | 21-JUL-07 08.59.57.571057 PM | 5 | 45 | 66 | 2970 |
| 2392 | 21-JUL-07 08.59.57.571057 PM | 6 | 21 | 68 | 1428 |
| 2392 | 21-JUL-07 08.59.57.571057 PM | 7 | 18 | 72 | 1296 |
| 2392 | 21-JUL-07 08.59.57.571057 PM | 8 | 49 | 77 | 3773 |
| 2392 | 21-JUL-07 08.59.57.571057 PM | 9 | 40 | 81 | 3240 |
| 2446 | 27-JUL-07 07.03.08.302945 AM | 1 | 48 | 47 | 2256 |
| 2446 | 27-JUL-07 07.03.08.302945 AM | 2 | 1.1 | 34 | 37.4 |
| 2446 | 27-JUL-07 07.03.08.302945 AM | 3 | 1.1 | 36 | 39.6 |
| 2446 | 27-JUL-07 07.03.08.302945 AM | 4 | 270.6 | 37 | 10012.2 |
| 2446 | 27-JUL-07 07.03.08.302945 AM | 5 | 2341.9 | 39 | 91334.1 |
| 2444 | 27-JUL-07 02.22.27.462632 PM | 1 | 36 | 110 | 3960 |
| 2444 | 27-JUL-07 02.22.27.462632 PM | 2 | 488.4 | 88 | 42979.2 |
| 2444 | 27-JUL-07 02.22.27.462632 PM | 3 | 43 | 90 | 3870 |
| 2444 | 27-JUL-07 02.22.27.462632 PM | 4 | 21 | 93 | 1953 |
| 2444 | 27-JUL-07 02.22.27.462632 PM | 5 | 19 | 95 | 1805 |
| 2444 | 27-JUL-07 02.22.27.462632 PM | 6 | 15 | 97 | 1455 |
| 2444 | 27-JUL-07 02.22.27.462632 PM | 7 | 17 | 100 | 1700 |
| 2444 | 27-JUL-07 02.22.27.462632 PM | 8 | 43 | 104 | 4472 |
| 2444 | 27-JUL-07 02.22.27.462632 PM | 9 | 37 | 112 | 4144 |
| 2444 | 27-JUL-07 02.22.27.462632 PM | 10 | 37 | 112 | 4144 |
| 2444 | 27-JUL-07 02.22.27.462632 PM | 11 | 63 | 115 | 7245 |
| 2458 | 16-AUG-07 03.34.12.234359 PM | 1 | 38 | 140 | 5320 |
| 2458 | 16-AUG-07 03.34.12.234359 PM | 2 | 79 | 112 | 8848 |
| 2458 | 16-AUG-07 03.34.12.234359 PM | 3 | 488.4 | 114 | 55677.6 |
| 2458 | 16-AUG-07 03.34.12.234359 PM | 4 | 17 | 115 | 1955 |
| 2458 | 16-AUG-07 03.34.12.234359 PM | 5 | 15 | 129 | 1935 |
| 2458 | 16-AUG-07 03.34.12.234359 PM | 6 | 32 | 142 | 4544 |
| 2364 | 28-AUG-07 06.18.45.942399 PM | 1 | 14 | 6 | 84 |
| 2364 | 28-AUG-07 06.18.45.942399 PM | 2 | 470.8 | 20 | 9416 |
| 2365 | 28-AUG-07 07.03.34.003399 PM | 1 | 48 | 92 | 4416 |
| 2365 | 28-AUG-07 07.03.34.003399 PM | 2 | 99 | 28 | 2772 |
| 2365 | 28-AUG-07 07.03.34.003399 PM | 3 | 133.1 | 29 | 3859.9 |
| 2365 | 28-AUG-07 07.03.34.003399 PM | 4 | 56 | 29 | 1624 |
| 2365 | 28-AUG-07 07.03.34.003399 PM | 5 | 95 | 29 | 2755 |
| 2365 | 28-AUG-07 07.03.34.003399 PM | 6 | 22 | 34 | 748 |
| 2365 | 28-AUG-07 07.03.34.003399 PM | 7 | 24 | 38 | 912 |
| 2365 | 28-AUG-07 07.03.34.003399 PM | 8 | 19 | 43 | 817 |
| 2365 | 28-AUG-07 07.03.34.003399 PM | 9 | 1.1 | 44 | 48.4 |
| 2365 | 28-AUG-07 07.03.34.003399 PM | 10 | 97 | 45 | 4365 |
| 2365 | 28-AUG-07 07.03.34.003399 PM | 11 | 25 | 50 | 1250 |
| 2365 | 28-AUG-07 07.03.34.003399 PM | 12 | 72 | 54 | 3888 |
| 2366 | 28-AUG-07 08.59.23.144778 PM | 1 | 226.6 | 8 | 1812.8 |
| 2366 | 28-AUG-07 08.59.23.144778 PM | 2 | 6 | 7 | 42 |
| 2366 | 28-AUG-07 08.59.23.144778 PM | 3 | 804.1 | 10 | 8041 |
| 2366 | 28-AUG-07 08.59.23.144778 PM | 4 | 116.6 | 11 | 1282.6 |
| 2366 | 28-AUG-07 08.59.23.144778 PM | 5 | 120 | 12 | 1440 |
| 2366 | 28-AUG-07 08.59.23.144778 PM | 6 | 418 | 16 | 6688 |
| 2366 | 28-AUG-07 08.59.23.144778 PM | 7 | 195.8 | 20 | 3916 |
| 2366 | 28-AUG-07 08.59.23.144778 PM | 8 | 194.7 | 22 | 4283.4 |
| 2366 | 28-AUG-07 08.59.23.144778 PM | 9 | 339.9 | 24 | 8157.6 |
| 2366 | 28-AUG-07 08.59.23.144778 PM | 10 | 69 | 24 | 1656 |
| 2439 | 31-AUG-07 10.19.37.811132 AM | 1 | 316.8 | 9 | 2851.2 |
| 2439 | 31-AUG-07 10.19.37.811132 AM | 2 | 45 | 4 | 180 |
| 2439 | 31-AUG-07 10.19.37.811132 AM | 3 | 54 | 9 | 486 |
| 2439 | 31-AUG-07 10.19.37.811132 AM | 4 | 1433.3 | 13 | 18632.9 |
| 2440 | 31-AUG-07 09.53.06.008765 PM | 1 | 48 | 19 | 912 |
| 2440 | 31-AUG-07 09.53.06.008765 PM | 2 | 98 | 2 | 196 |
| 2440 | 31-AUG-07 09.53.06.008765 PM | 3 | 150 | 2 | 300 |
| 2440 | 31-AUG-07 09.53.06.008765 PM | 4 | 86.9 | 7 | 608.3 |
| 2440 | 31-AUG-07 09.53.06.008765 PM | 5 | 23 | 10 | 230 |
| 2440 | 31-AUG-07 09.53.06.008765 PM | 6 | 1.1 | 13 | 14.3 |
| 2440 | 31-AUG-07 09.53.06.008765 PM | 7 | 3.3 | 15 | 49.5 |
| 2440 | 31-AUG-07 09.53.06.008765 PM | 8 | 270.6 | 19 | 5141.4 |
| 2440 | 31-AUG-07 09.53.06.008765 PM | 9 | 25 | 23 | 575 |
| 2440 | 31-AUG-07 09.53.06.008765 PM | 10 | 2341.9 | 24 | 56205.6 |
| 2440 | 31-AUG-07 09.53.06.008765 PM | 11 | 226.6 | 28 | 6344.8 |
| 2438 | 01-SEP-07 09.53.26.934626 AM | 1 | 69 | 3 | 207 |
| 2438 | 01-SEP-07 09.53.26.934626 AM | 2 | 1748 | 3 | 5244 |
| 2436 | 02-SEP-07 06.18.04.378034 AM | 1 | 1.1 | 8 | 8.8 |
| 2436 | 02-SEP-07 06.18.04.378034 AM | 2 | 13 | 2 | 26 |
| 2436 | 02-SEP-07 06.18.04.378034 AM | 3 | 30 | 3 | 90 |
| 2436 | 02-SEP-07 06.18.04.378034 AM | 4 | 32 | 6 | 192 |
| 2436 | 02-SEP-07 06.18.04.378034 AM | 5 | 214.5 | 16 | 3432 |
| 2436 | 02-SEP-07 06.18.04.378034 AM | 6 | 27 | 18 | 486 |
| 2436 | 02-SEP-07 06.18.04.378034 AM | 7 | 36 | 18 | 648 |
| 2436 | 02-SEP-07 06.18.04.378034 AM | 8 | 63 | 24 | 1512 |
| 2435 | 02-SEP-07 11.22.53.134567 PM | 1 | 48 | 35 | 1680 |
| 2435 | 02-SEP-07 11.22.53.134567 PM | 2 | 75 | 4 | 300 |
| 2435 | 02-SEP-07 11.22.53.134567 PM | 3 | 86.9 | 8 | 695.2 |
| 2435 | 02-SEP-07 11.22.53.134567 PM | 4 | 21 | 10 | 210 |
| 2435 | 02-SEP-07 11.22.53.134567 PM | 5 | 18 | 12 | 216 |
| 2435 | 02-SEP-07 11.22.53.134567 PM | 6 | 3.3 | 14 | 46.2 |
| 2435 | 02-SEP-07 11.22.53.134567 PM | 7 | 25 | 19 | 475 |
| 2435 | 02-SEP-07 11.22.53.134567 PM | 8 | 2341.9 | 24 | 56205.6 |
| 2435 | 02-SEP-07 11.22.53.134567 PM | 9 | 75 | 33 | 2475 |
| 2434 | 13-SEP-07 05.49.30.647893 AM | 1 | 3.3 | 81 | 267.3 |
| 2434 | 13-SEP-07 05.49.30.647893 AM | 2 | 949.3 | 84 | 79741.2 |
| 2434 | 13-SEP-07 05.49.30.647893 AM | 3 | 462 | 86 | 39732 |
| 2434 | 13-SEP-07 05.49.30.647893 AM | 4 | 788.7 | 87 | 68616.9 |
| 2434 | 13-SEP-07 05.49.30.647893 AM | 5 | 408.1 | 92 | 37545.2 |
| 2434 | 13-SEP-07 05.49.30.647893 AM | 6 | 371.8 | 94 | 34949.2 |
| 2434 | 13-SEP-07 05.49.30.647893 AM | 7 | 75 | 104 | 7800 |
| 2433 | 13-SEP-07 10.19.00.654279 AM | 1 | 13 | 6 | 78 |
| 2432 | 14-SEP-07 09.53.40.223345 AM | 1 | 49 | 3 | 147 |
| 2432 | 14-SEP-07 09.53.40.223345 AM | 2 | 43 | 2 | 86 |
| 2432 | 14-SEP-07 09.53.40.223345 AM | 3 | 122 | 5 | 610 |
| 2432 | 14-SEP-07 09.53.40.223345 AM | 4 | 880 | 11 | 9680 |
| 2455 | 20-SEP-07 11.34.11.456789 AM | 1 | 482.9 | 3 | 1448.7 |
| 2455 | 20-SEP-07 11.34.11.456789 AM | 2 | 268.4 | 32 | 8588.8 |
| 2455 | 20-SEP-07 11.34.11.456789 AM | 3 | 75 | 54 | 4050 |
| 2430 | 02-OCT-07 06.18.36.663332 AM | 1 | 693 | 6 | 4158 |
| 2430 | 02-OCT-07 06.18.36.663332 AM | 2 | 454.3 | 5 | 2271.5 |
| 2430 | 02-OCT-07 06.18.36.663332 AM | 3 | 111 | 10 | 1110 |
| 2430 | 02-OCT-07 06.18.36.663332 AM | 4 | 94 | 10 | 940 |
| 2430 | 02-OCT-07 06.18.36.663332 AM | 5 | 492.8 | 43 | 21190.4 |
| 2454 | 02-OCT-07 05.49.34.678340 PM | 1 | 43 | 120 | 5160 |
| 2454 | 02-OCT-07 05.49.34.678340 PM | 2 | 99 | 0 | 0 |
| 2454 | 02-OCT-07 05.49.34.678340 PM | 3 | 71 | 3 | 213 |
| 2454 | 02-OCT-07 05.49.34.678340 PM | 4 | 55 | 12 | 660 |
| 2454 | 02-OCT-07 05.49.34.678340 PM | 5 | 21 | 13 | 273 |
| 2454 | 02-OCT-07 05.49.34.678340 PM | 6 | 18 | 16 | 288 |
| 2454 | 02-OCT-07 05.49.34.678340 PM | 7 | 3.3 | 18 | 59.4 |
| 2453 | 04-OCT-07 09.53.34.362632 PM | 1 | 43 | 3 | 129 |
| 2452 | 06-OCT-07 08.59.43.462632 PM | 1 | 38 | 140 | 5320 |
| 2452 | 06-OCT-07 08.59.43.462632 PM | 2 | 20 | 10 | 200 |
| 2452 | 06-OCT-07 08.59.43.462632 PM | 3 | 15 | 12 | 180 |
| 2452 | 06-OCT-07 08.59.43.462632 PM | 4 | 17 | 13 | 221 |
| 2452 | 06-OCT-07 08.59.43.462632 PM | 5 | 44 | 13 | 572 |
| 2452 | 06-OCT-07 08.59.43.462632 PM | 6 | 34 | 18 | 612 |
| 2452 | 06-OCT-07 08.59.43.462632 PM | 7 | 145.2 | 20 | 2904 |
| 2452 | 06-OCT-07 08.59.43.462632 PM | 8 | 37 | 20 | 740 |
| 2452 | 06-OCT-07 08.59.43.462632 PM | 9 | 80 | 23 | 1840 |
| 2363 | 23-OCT-07 05.49.56.346122 PM | 1 | 199.1 | 9 | 1791.9 |
| 2363 | 23-OCT-07 05.49.56.346122 PM | 2 | 129 | 7 | 903 |
| 2363 | 23-OCT-07 05.49.56.346122 PM | 3 | 74 | 25 | 1850 |
| 2363 | 23-OCT-07 05.49.56.346122 PM | 4 | 57 | 26 | 1482 |
| 2363 | 23-OCT-07 05.49.56.346122 PM | 5 | 86.9 | 29 | 2520.1 |
| 2363 | 23-OCT-07 05.49.56.346122 PM | 6 | 24 | 31 | 744 |
| 2363 | 23-OCT-07 05.49.56.346122 PM | 7 | 18 | 34 | 612 |
| 2363 | 23-OCT-07 05.49.56.346122 PM | 8 | 1.1 | 37 | 40.7 |
| 2363 | 23-OCT-07 05.49.56.346122 PM | 9 | 3.3 | 42 | 138.6 |
| 2457 | 31-OCT-07 11.22.16.162632 PM | 1 | 72 | 36 | 2592 |
| 2457 | 31-OCT-07 11.22.16.162632 PM | 2 | 79 | 14 | 1106 |
| 2457 | 31-OCT-07 11.22.16.162632 PM | 3 | 488.4 | 17 | 8302.8 |
| 2457 | 31-OCT-07 11.22.16.162632 PM | 4 | 17 | 27 | 459 |
| 2457 | 31-OCT-07 11.22.16.162632 PM | 5 | 44 | 32 | 1408 |
| 2457 | 31-OCT-07 11.22.16.162632 PM | 6 | 145.2 | 42 | 6098.4 |
| 2457 | 31-OCT-07 11.22.16.162632 PM | 7 | 36 | 45 | 1620 |
| 2427 | 10-NOV-07 01.34.22.362124 AM | 1 | 173 | 12 | 2076 |
| 2427 | 10-NOV-07 01.34.22.362124 AM | 2 | 121 | 1 | 121 |
| 2427 | 10-NOV-07 01.34.22.362124 AM | 3 | 4.4 | 6 | 26.4 |
| 2427 | 10-NOV-07 01.34.22.362124 AM | 4 | 66 | 6 | 396 |
| 2427 | 10-NOV-07 01.34.22.362124 AM | 5 | 76 | 6 | 456 |
| 2427 | 10-NOV-07 01.34.22.362124 AM | 6 | 268.4 | 19 | 5099.6 |
| 2427 | 10-NOV-07 01.34.22.362124 AM | 7 | 40 | 22 | 880 |
| 2428 | 10-NOV-07 02.41.34.463567 AM | 1 | 42 | 7 | 294 |
| 2428 | 10-NOV-07 02.41.34.463567 AM | 2 | 76 | 1 | 76 |
| 2428 | 10-NOV-07 02.41.34.463567 AM | 3 | 101 | 5 | 505 |
| 2428 | 10-NOV-07 02.41.34.463567 AM | 4 | 41 | 6 | 246 |
| 2428 | 10-NOV-07 02.41.34.463567 AM | 5 | 80 | 8 | 640 |
| 2428 | 10-NOV-07 02.41.34.463567 AM | 6 | 498 | 12 | 5976 |
| 2428 | 10-NOV-07 02.41.34.463567 AM | 7 | 48 | 12 | 576 |
| 2428 | 10-NOV-07 02.41.34.463567 AM | 8 | 16 | 13 | 208 |
| 2428 | 10-NOV-07 02.41.34.463567 AM | 9 | 17 | 16 | 272 |
| 2428 | 10-NOV-07 02.41.34.463567 AM | 10 | 145.2 | 24 | 3484.8 |
| 2428 | 10-NOV-07 02.41.34.463567 AM | 11 | 86 | 28 | 2408 |
| 2429 | 10-NOV-07 03.49.25.526321 AM | 1 | 42 | 200 | 8400 |
| 2429 | 10-NOV-07 03.49.25.526321 AM | 2 | 76 | 40 | 3040 |
| 2429 | 10-NOV-07 03.49.25.526321 AM | 3 | 45 | 43 | 1935 |
| 2429 | 10-NOV-07 03.49.25.526321 AM | 4 | 79 | 46 | 3634 |
| 2429 | 10-NOV-07 03.49.25.526321 AM | 5 | 497 | 49 | 24353 |
| 2429 | 10-NOV-07 03.49.25.526321 AM | 6 | 46 | 52 | 2392 |
| 2429 | 10-NOV-07 03.49.25.526321 AM | 7 | 21 | 54 | 1134 |
| 2429 | 10-NOV-07 03.49.25.526321 AM | 8 | 17 | 55 | 935 |
| 2429 | 10-NOV-07 03.49.25.526321 AM | 9 | 30 | 63 | 1890 |
| 2429 | 10-NOV-07 03.49.25.526321 AM | 10 | 36 | 67 | 2412 |
| 2361 | 13-NOV-07 01.34.21.986210 PM | 1 | 46 | 180 | 8280 |
| 2361 | 13-NOV-07 01.34.21.986210 PM | 2 | 76 | 180 | 13680 |
| 2361 | 13-NOV-07 01.34.21.986210 PM | 3 | 53 | 182 | 9646 |
| 2361 | 13-NOV-07 01.34.21.986210 PM | 4 | 86.9 | 185 | 16076.5 |
| 2361 | 13-NOV-07 01.34.21.986210 PM | 5 | 22 | 187 | 4114 |
| 2361 | 13-NOV-07 01.34.21.986210 PM | 6 | 1.1 | 194 | 213.4 |
| 2361 | 13-NOV-07 01.34.21.986210 PM | 7 | 3.3 | 198 | 653.4 |
| 2361 | 13-NOV-07 01.34.21.986210 PM | 8 | 248 | 208 | 51584 |
| 2361 | 13-NOV-07 01.34.21.986210 PM | 9 | 76 | 209 | 15884 |
| 2362 | 13-NOV-07 02.41.10.619477 PM | 1 | 48 | 200 | 9600 |
| 2362 | 13-NOV-07 02.41.10.619477 PM | 2 | 76 | 160 | 12160 |
| 2362 | 13-NOV-07 02.41.10.619477 PM | 3 | 93 | 164 | 15252 |
| 2362 | 13-NOV-07 02.41.10.619477 PM | 4 | 22 | 168 | 3696 |
| 2362 | 13-NOV-07 02.41.10.619477 PM | 5 | 1.1 | 173 | 190.3 |
| 2362 | 13-NOV-07 02.41.10.619477 PM | 6 | 3.3 | 177 | 584.1 |
| 2362 | 13-NOV-07 02.41.10.619477 PM | 7 | 25 | 179 | 4475 |
| 2362 | 13-NOV-07 02.41.10.619477 PM | 8 | 248 | 189 | 46872 |
| 2360 | 14-NOV-07 12.22.31.223344 PM | 1 | 23 | 29 | 667 |
| 2360 | 14-NOV-07 12.22.31.223344 PM | 2 | 7.7 | 42 | 323.4 |
| 2390 | 18-NOV-07 04.18.50.546851 PM | 1 | 14 | 4 | 56 |
| 2390 | 18-NOV-07 04.18.50.546851 PM | 2 | 14 | 2 | 28 |
| 2390 | 18-NOV-07 04.18.50.546851 PM | 3 | 470.8 | 16 | 7532.8 |
| 2397 | 19-NOV-07 02.41.54.696211 PM | 1 | 52 | 2 | 104 |
| 2397 | 19-NOV-07 02.41.54.696211 PM | 2 | 120 | 8 | 960 |
| 2397 | 19-NOV-07 02.41.54.696211 PM | 3 | 880 | 16 | 14080 |
| 2397 | 19-NOV-07 02.41.54.696211 PM | 4 | 1696.2 | 16 | 27139.2 |
| 2398 | 19-NOV-07 09.22.53.224175 PM | 1 | 482.9 | 5 | 2414.5 |
| 2398 | 19-NOV-07 09.22.53.224175 PM | 2 | 193.6 | 23 | 4452.8 |
| 2398 | 19-NOV-07 09.22.53.224175 PM | 3 | 9 | 27 | 243 |
| 2399 | 19-NOV-07 10.22.38.340990 PM | 1 | 44 | 120 | 5280 |
| 2399 | 19-NOV-07 10.22.38.340990 PM | 2 | 94 | 12 | 1128 |
| 2399 | 19-NOV-07 10.22.38.340990 PM | 3 | 76 | 15 | 1140 |
| 2399 | 19-NOV-07 10.22.38.340990 PM | 4 | 149 | 17 | 2533 |
| 2399 | 19-NOV-07 10.22.38.340990 PM | 5 | 56 | 17 | 952 |
| 2399 | 19-NOV-07 10.22.38.340990 PM | 6 | 86.9 | 20 | 1738 |
| 2399 | 19-NOV-07 10.22.38.340990 PM | 7 | 22 | 24 | 528 |
| 2399 | 19-NOV-07 10.22.38.340990 PM | 8 | 1.1 | 27 | 29.7 |
| 2399 | 19-NOV-07 10.22.38.340990 PM | 9 | 1.1 | 28 | 30.8 |
| 2399 | 19-NOV-07 10.22.38.340990 PM | 10 | 100 | 33 | 3300 |
| 2399 | 19-NOV-07 10.22.38.340990 PM | 11 | 226.6 | 38 | 8610.8 |
| 2424 | 21-NOV-07 10.22.33.263332 AM | 1 | 693 | 11 | 7623 |
| 2424 | 21-NOV-07 10.22.33.263332 AM | 2 | 541 | 9 | 4869 |
| 2424 | 21-NOV-07 10.22.33.263332 AM | 3 | 111 | 12 | 1332 |
| 2423 | 21-NOV-07 10.22.33.362632 AM | 1 | 39 | 8 | 312 |
| 2423 | 21-NOV-07 10.22.33.362632 AM | 2 | 32 | 3 | 96 |
| 2423 | 21-NOV-07 10.22.33.362632 AM | 3 | 214.5 | 13 | 2788.5 |
| 2423 | 21-NOV-07 10.22.33.362632 AM | 4 | 212.3 | 14 | 2972.2 |
| 2423 | 21-NOV-07 10.22.33.362632 AM | 5 | 26 | 16 | 416 |
| 2423 | 21-NOV-07 10.22.33.362632 AM | 6 | 78 | 21 | 1638 |
| 2423 | 21-NOV-07 10.22.33.362632 AM | 7 | 65 | 33 | 2145 |
| 2386 | 06-DEC-07 12.22.34.225609 PM | 1 | 1.1 | 7 | 7.7 |
| 2386 | 06-DEC-07 12.22.34.225609 PM | 2 | 3.3 | 5 | 16.5 |
| 2386 | 06-DEC-07 12.22.34.225609 PM | 3 | 71 | 14 | 994 |
| 2386 | 06-DEC-07 12.22.34.225609 PM | 4 | 77 | 27 | 2079 |
| 2386 | 06-DEC-07 12.22.34.225609 PM | 5 | 90 | 28 | 2520 |
| 2386 | 06-DEC-07 12.22.34.225609 PM | 6 | 73 | 32 | 2336 |
| 2386 | 06-DEC-07 12.22.34.225609 PM | 7 | 271.7 | 33 | 8966.1 |
| 2386 | 06-DEC-07 12.22.34.225609 PM | 8 | 116.6 | 36 | 4197.6 |
| 2385 | 08-DEC-07 11.34.11.331392 AM | 1 | 43 | 200 | 8600 |
| 2385 | 08-DEC-07 11.34.11.331392 AM | 2 | 133.1 | 87 | 11579.7 |
| 2385 | 08-DEC-07 11.34.11.331392 AM | 3 | 86.9 | 96 | 8342.4 |
| 2385 | 08-DEC-07 11.34.11.331392 AM | 4 | 25 | 97 | 2425 |
| 2385 | 08-DEC-07 11.34.11.331392 AM | 5 | 91.3 | 106 | 9677.8 |
| 2385 | 08-DEC-07 11.34.11.331392 AM | 6 | 2341.9 | 109 | 255267.1 |
| 2422 | 16-DEC-07 08.19.55.462332 PM | 1 | 46 | 18 | 828 |
| 2422 | 16-DEC-07 08.19.55.462332 PM | 2 | 41 | 5 | 205 |
| 2422 | 16-DEC-07 08.19.55.462332 PM | 3 | 71.5 | 5 | 357.5 |
| 2422 | 16-DEC-07 08.19.55.462332 PM | 4 | 496 | 9 | 4464 |
| 2422 | 16-DEC-07 08.19.55.462332 PM | 5 | 46 | 11 | 506 |
| 2422 | 16-DEC-07 08.19.55.462332 PM | 6 | 17 | 25 | 425 |
| 2422 | 16-DEC-07 08.19.55.462332 PM | 7 | 43 | 29 | 1247 |
| 2422 | 16-DEC-07 08.19.55.462332 PM | 8 | 30 | 35 | 1050 |
| 2422 | 16-DEC-07 08.19.55.462332 PM | 9 | 54 | 39 | 2106 |
| 2451 | 17-DEC-07 05.03.52.562632 PM | 1 | 13 | 9 | 117 |
| 2451 | 17-DEC-07 05.03.52.562632 PM | 2 | 470.8 | 22 | 10357.6 |
| 2358 | 08-JAN-08 05.03.12.654278 PM | 1 | 226.6 | 9 | 2039.4 |
| 2358 | 08-JAN-08 05.03.12.654278 PM | 2 | 125 | 4 | 500 |
| 2358 | 08-JAN-08 05.03.12.654278 PM | 3 | 316.8 | 12 | 3801.6 |
| 2358 | 08-JAN-08 05.03.12.654278 PM | 4 | 55 | 13 | 715 |
| 2358 | 08-JAN-08 05.03.12.654278 PM | 5 | 55 | 14 | 770 |
| 2356 | 26-JAN-08 09.22.41.934562 AM | 1 | 199.1 | 38 | 7565.8 |
| 2356 | 26-JAN-08 09.22.41.934562 AM | 2 | 148.5 | 34 | 5049 |
| 2356 | 26-JAN-08 09.22.41.934562 AM | 3 | 98 | 40 | 3920 |
| 2356 | 26-JAN-08 09.22.41.934562 AM | 4 | 72 | 44 | 3168 |
| 2356 | 26-JAN-08 09.22.41.934562 AM | 5 | 58 | 47 | 2726 |
| 2356 | 26-JAN-08 09.22.41.934562 AM | 6 | 95 | 51 | 4845 |
| 2356 | 26-JAN-08 09.22.41.934562 AM | 7 | 22 | 55 | 1210 |
| 2356 | 26-JAN-08 09.22.41.934562 AM | 8 | 18 | 55 | 990 |
| 2393 | 10-FEB-08 07.53.19.528202 PM | 1 | 12 | 10 | 120 |
| 2393 | 10-FEB-08 07.53.19.528202 PM | 2 | 295 | 2 | 590 |
| 2393 | 10-FEB-08 07.53.19.528202 PM | 3 | 1017 | 5 | 5085 |
| 2393 | 10-FEB-08 07.53.19.528202 PM | 4 | 385 | 8 | 3080 |
| 2393 | 10-FEB-08 07.53.19.528202 PM | 5 | 260.7 | 8 | 2085.6 |
| 2393 | 10-FEB-08 07.53.19.528202 PM | 6 | 78 | 10 | 780 |
| 2393 | 10-FEB-08 07.53.19.528202 PM | 7 | 211 | 13 | 2743 |
| 2393 | 10-FEB-08 07.53.19.528202 PM | 8 | 108.9 | 14 | 1524.6 |
| 2393 | 10-FEB-08 07.53.19.528202 PM | 9 | 278 | 19 | 5282 |
| 2393 | 10-FEB-08 07.53.19.528202 PM | 10 | 3.3 | 19 | 62.7 |
| 2393 | 10-FEB-08 07.53.19.528202 PM | 11 | 69.3 | 30 | 2079 |
| 2394 | 10-FEB-08 09.22.35.564789 PM | 1 | 41 | 90 | 3690 |
| 2394 | 10-FEB-08 09.22.35.564789 PM | 2 | 77 | 36 | 2772 |
| 2394 | 10-FEB-08 09.22.35.564789 PM | 3 | 82 | 39 | 3198 |
| 2394 | 10-FEB-08 09.22.35.564789 PM | 4 | 46 | 41 | 1886 |
| 2394 | 10-FEB-08 09.22.35.564789 PM | 5 | 46 | 45 | 2070 |
| 2394 | 10-FEB-08 09.22.35.564789 PM | 6 | 18 | 45 | 810 |
| 2394 | 10-FEB-08 09.22.35.564789 PM | 7 | 19 | 48 | 912 |
| 2394 | 10-FEB-08 09.22.35.564789 PM | 8 | 49 | 61 | 2989 |
| 2394 | 10-FEB-08 09.22.35.564789 PM | 9 | 52 | 68 | 3536 |
| 2373 | 27-FEB-08 01.34.51.220065 AM | 1 | 49 | 8 | 392 |
| 2373 | 27-FEB-08 01.34.51.220065 AM | 2 | 24 | 1 | 24 |
| 2374 | 27-FEB-08 02.41.45.109654 AM | 1 | 150 | 10 | 1500 |
| 2374 | 27-FEB-08 02.41.45.109654 AM | 2 | 78 | 6 | 468 |
| 2374 | 27-FEB-08 02.41.45.109654 AM | 3 | 78 | 15 | 1170 |
| 2374 | 27-FEB-08 02.41.45.109654 AM | 4 | 79 | 21 | 1659 |
| 2413 | 29-MAR-08 01.34.04.525934 PM | 1 | 77 | 200 | 15400 |
| 2413 | 29-MAR-08 01.34.04.525934 PM | 2 | 75 | 40 | 3000 |
| 2413 | 29-MAR-08 01.34.04.525934 PM | 3 | 35 | 44 | 1540 |
| 2413 | 29-MAR-08 01.34.04.525934 PM | 4 | 492 | 44 | 21648 |
| 2413 | 29-MAR-08 01.34.04.525934 PM | 5 | 46 | 45 | 2070 |
| 2413 | 29-MAR-08 01.34.04.525934 PM | 6 | 47 | 62 | 2914 |
| 2413 | 29-MAR-08 01.34.04.525934 PM | 7 | 30 | 66 | 1980 |
| 2383 | 12-MAY-08 11.22.30.545103 AM | 1 | 194.7 | 37 | 7203.9 |
| 2383 | 12-MAY-08 11.22.30.545103 AM | 2 | 56 | 45 | 2520 |
| 2383 | 12-MAY-08 11.22.30.545103 AM | 3 | 146 | 46 | 6716 |
| 2383 | 12-MAY-08 11.22.30.545103 AM | 4 | 174 | 50 | 8700 |
| 2383 | 12-MAY-08 11.22.30.545103 AM | 5 | 115.5 | 54 | 6237 |
| 2383 | 12-MAY-08 11.22.30.545103 AM | 6 | 4.4 | 62 | 272.8 |
| 2383 | 12-MAY-08 11.22.30.545103 AM | 7 | 75 | 63 | 4725 |
| 2384 | 12-MAY-08 12.22.34.525972 PM | 1 | 43 | 95 | 4085 |
| 2384 | 12-MAY-08 12.22.34.525972 PM | 2 | 71 | 48 | 3408 |
| 2384 | 12-MAY-08 12.22.34.525972 PM | 3 | 21 | 58 | 1218 |
| 2384 | 12-MAY-08 12.22.34.525972 PM | 4 | 22 | 59 | 1298 |
| 2384 | 12-MAY-08 12.22.34.525972 PM | 5 | 1.1 | 61 | 67.1 |
| 2384 | 12-MAY-08 12.22.34.525972 PM | 6 | 249 | 77 | 19173 |
| 2382 | 14-MAY-08 10.19.03.828321 AM | 1 | 42 | 160 | 6720 |
| 2382 | 14-MAY-08 10.19.03.828321 AM | 2 | 43 | 64 | 2752 |
| 2382 | 14-MAY-08 10.19.03.828321 AM | 3 | 100 | 65 | 6500 |
| 2382 | 14-MAY-08 10.19.03.828321 AM | 4 | 35 | 66 | 2310 |
| 2382 | 14-MAY-08 10.19.03.828321 AM | 5 | 79 | 71 | 5609 |
| 2382 | 14-MAY-08 10.19.03.828321 AM | 6 | 496 | 71 | 35216 |
| 2382 | 14-MAY-08 10.19.03.828321 AM | 7 | 42 | 76 | 3192 |
| 2382 | 14-MAY-08 10.19.03.828321 AM | 8 | 21 | 79 | 1659 |
| 2382 | 14-MAY-08 10.19.03.828321 AM | 9 | 15 | 82 | 1230 |
| 2382 | 14-MAY-08 10.19.03.828321 AM | 10 | 29 | 89 | 2581 |
| 2382 | 14-MAY-08 10.19.03.828321 AM | 11 | 37 | 92 | 3404 |
| 2381 | 14-MAY-08 08.59.08.843679 PM | 1 | 38 | 110 | 4180 |
| 2381 | 14-MAY-08 08.59.08.843679 PM | 2 | 77 | 44 | 3388 |
| 2381 | 14-MAY-08 08.59.08.843679 PM | 3 | 44 | 44 | 1936 |
| 2381 | 14-MAY-08 08.59.08.843679 PM | 4 | 20 | 45 | 900 |
| 2381 | 14-MAY-08 08.59.08.843679 PM | 5 | 15 | 48 | 720 |
| 2381 | 14-MAY-08 08.59.08.843679 PM | 6 | 35 | 55 | 1925 |
| 2381 | 14-MAY-08 08.59.08.843679 PM | 7 | 113.3 | 62 | 7024.6 |
| 2381 | 14-MAY-08 08.59.08.843679 PM | 8 | 47 | 63 | 2961 |
| 2410 | 24-MAY-08 10.19.51.985501 AM | 1 | 46 | 10 | 460 |
| 2410 | 24-MAY-08 10.19.51.985501 AM | 2 | 40 | 5 | 200 |
| 2410 | 24-MAY-08 10.19.51.985501 AM | 3 | 120 | 6 | 720 |
| 2410 | 24-MAY-08 10.19.51.985501 AM | 4 | 68 | 8 | 544 |
| 2410 | 24-MAY-08 10.19.51.985501 AM | 5 | 2866.6 | 15 | 42999 |
| 2410 | 24-MAY-08 10.19.51.985501 AM | 6 | 12 | 21 | 252 |
| 2389 | 04-JUN-08 05.49.43.546954 PM | 1 | 43 | 180 | 7740 |
| 2389 | 04-JUN-08 05.49.43.546954 PM | 2 | 73 | 18 | 1314 |
| 2389 | 04-JUN-08 05.49.43.546954 PM | 3 | 80 | 21 | 1680 |
| 2389 | 04-JUN-08 05.49.43.546954 PM | 4 | 46 | 22 | 1012 |
| 2389 | 04-JUN-08 05.49.43.546954 PM | 5 | 15 | 30 | 450 |
| 2389 | 04-JUN-08 05.49.43.546954 PM | 6 | 46 | 33 | 1518 |
| 2389 | 04-JUN-08 05.49.43.546954 PM | 7 | 34 | 43 | 1462 |
| 2389 | 04-JUN-08 05.49.43.546954 PM | 8 | 52 | 47 | 2444 |
| 2368 | 26-JUN-08 10.19.43.190089 PM | 1 | 48 | 150 | 7200 |
| 2368 | 26-JUN-08 10.19.43.190089 PM | 2 | 42 | 60 | 2520 |
| 2368 | 26-JUN-08 10.19.43.190089 PM | 3 | 38 | 62 | 2356 |
| 2368 | 26-JUN-08 10.19.43.190089 PM | 4 | 81 | 70 | 5670 |
| 2368 | 26-JUN-08 10.19.43.190089 PM | 5 | 496 | 70 | 34720 |
| 2368 | 26-JUN-08 10.19.43.190089 PM | 6 | 42 | 72 | 3024 |
| 2368 | 26-JUN-08 10.19.43.190089 PM | 7 | 16 | 75 | 1200 |
| 2368 | 26-JUN-08 10.19.43.190089 PM | 8 | 45 | 75 | 3375 |
| 2370 | 27-JUN-08 12.22.11.647398 AM | 1 | 14 | 9 | 126 |
| 2367 | 27-JUN-08 09.53.32.335522 PM | 1 | 48 | 99 | 4752 |
| 2367 | 27-JUN-08 09.53.32.335522 PM | 2 | 147 | 32 | 4704 |
| 2367 | 27-JUN-08 09.53.32.335522 PM | 3 | 54 | 39 | 2106 |
| 2367 | 27-JUN-08 09.53.32.335522 PM | 4 | 22 | 45 | 990 |
| 2367 | 27-JUN-08 09.53.32.335522 PM | 5 | 1.1 | 48 | 52.8 |
| 2367 | 27-JUN-08 09.53.32.335522 PM | 6 | 1.1 | 52 | 57.2 |
| 2367 | 27-JUN-08 09.53.32.335522 PM | 7 | 91.3 | 54 | 4930.2 |
| 2367 | 27-JUN-08 09.53.32.335522 PM | 8 | 2341.9 | 54 | 126462.6 |
| 2354 | 14-JUL-08 06.18.23.234567 PM | 1 | 48 | 61 | 2928 |
| 2354 | 14-JUL-08 06.18.23.234567 PM | 2 | 96.8 | 43 | 4162.4 |
| 2354 | 14-JUL-08 06.18.23.234567 PM | 3 | 79 | 47 | 3713 |
| 2354 | 14-JUL-08 06.18.23.234567 PM | 4 | 41 | 47 | 1927 |
| 2354 | 14-JUL-08 06.18.23.234567 PM | 5 | 21 | 48 | 1008 |
| 2354 | 14-JUL-08 06.18.23.234567 PM | 6 | 16 | 53 | 848 |
| 2354 | 14-JUL-08 06.18.23.234567 PM | 7 | 17 | 58 | 986 |
| 2354 | 14-JUL-08 06.18.23.234567 PM | 8 | 30 | 61 | 1830 |
| 2354 | 14-JUL-08 06.18.23.234567 PM | 9 | 37 | 64 | 2368 |
| 2354 | 14-JUL-08 06.18.23.234567 PM | 10 | 51 | 68 | 3468 |
| 2354 | 14-JUL-08 06.18.23.234567 PM | 11 | 145.2 | 70 | 10164 |
| 2354 | 14-JUL-08 06.18.23.234567 PM | 12 | 113.3 | 72 | 8157.6 |
| 2354 | 14-JUL-08 06.18.23.234567 PM | 13 | 61 | 77 | 4697 |
| 2447 | 27-JUL-08 08.59.10.223344 AM | 1 | 199.1 | 29 | 5773.9 |
| 2447 | 27-JUL-08 08.59.10.223344 AM | 2 | 297 | 23 | 6831 |
| 2447 | 27-JUL-08 08.59.10.223344 AM | 3 | 121 | 24 | 2904 |
| 2447 | 27-JUL-08 08.59.10.223344 AM | 4 | 50 | 25 | 1250 |
| 2447 | 27-JUL-08 08.59.10.223344 AM | 5 | 97 | 34 | 3298 |
| 2447 | 27-JUL-08 08.59.10.223344 AM | 6 | 76 | 35 | 2660 |
| 2447 | 27-JUL-08 08.59.10.223344 AM | 7 | 133.1 | 37 | 4924.7 |
| 2447 | 27-JUL-08 08.59.10.223344 AM | 8 | 54 | 40 | 2160 |
| 2447 | 27-JUL-08 08.59.10.223344 AM | 9 | 93 | 44 | 4092 |
| 2441 | 01-AUG-08 11.22.48.734526 AM | 1 | 80 | 9 | 720 |
| 2441 | 01-AUG-08 11.22.48.734526 AM | 2 | 193.6 | 7 | 1355.2 |
SELECT
oe.orders.order_id,
oe.orders.order_date,
oe.order_items.line_item_id,
oe.order_items.unit_price,
oe.order_items.quantity,
oe.order_items.unit_price * oe.order_items.quantity AS sale_amount
FROM
oe.orders
INNER JOIN
oe.order_items
ON oe.orders.order_id = oe.order_items.order_id
ORDER BY
oe.orders.order_date,
oe.orders.order_id,
oe.order_items.line_item_id;
Problem 7
Build onto your solution for problem 6. For each order, retrieve the order ID, order date, and line-item IDs associated with the order ID. In addition, for each of the line-items associated with an order ID, include the product ID, product name, product description, unit price, quantity, and the sale amount (unit price * quantity) for the line item. Only include those records with a category ID of 19. Provide the derived sale amount column with an alias of “sale_amount.” Sort the result set by order date (ascending), order ID (ascending), and line-item ID (ascending).
oe.orders
oe.order_items
oe.product_information
| ORDER_ID | ORDER_DATE | LINE_ITEM_ID | PRODUCT_ID | PRODUCT_NAME | PRODUCT_DESCRIPTION | UNIT_PRICE | QUANTITY | SALE_AMOUNT |
|---|---|---|---|---|---|---|---|---|
| 2418 | 20-MAR-04 04.18.21.862632 PM | 3 | 3097 | Cable Connector – 32R | Cable Connector – 32 pin ribbon | 2.2 | 13 | 28.6 |
| 2418 | 20-MAR-04 04.18.21.862632 PM | 5 | 3140 | Screws <Z.16.S> | Screws: Zinc, length 16mm, straight. Carton box, contents 750. | 20 | 31 | 620 |
| 2359 | 08-JAN-06 09.34.13.112233 PM | 3 | 2370 | PS 220V /HS/FR | 220V hot swappable power supply, for France. | 91 | 17 | 1547 |
| 2359 | 08-JAN-06 09.34.13.112233 PM | 4 | 2373 | Cable RS232 10/AF | 10 ft RS232 cable with F/F and 9F/25F adapters | 6 | 17 | 102 |
| 2359 | 08-JAN-06 09.34.13.112233 PM | 5 | 2377 | PS 110V HS/US | 110 V hot swappable power supply – US compatible | 96 | 17 | 1632 |
| 2359 | 08-JAN-06 09.34.13.112233 PM | 6 | 2380 | Cable PR/15/P | 15 foot parallel printer cable | 5.5 | 17 | 93.5 |
| 2355 | 26-JAN-06 09.22.51.962632 AM | 3 | 2311 | PS 220V /L | Power supply for laptop computers, 220V | 86.9 | 188 | 16337.2 |
| 2355 | 26-JAN-06 09.22.51.962632 AM | 4 | 2322 | Screws <Z.28.P> | Screws: Zinc, size 28 mm, Phillips head. Carton box, contents 850. | 19 | 188 | 3572 |
| 2355 | 26-JAN-06 09.22.51.962632 AM | 5 | 2323 | Screws <B.32.P> | Screws: Brass, size 32mm, Phillips head. Plastic box, contents 400. | 17 | 190 | 3230 |
| 2396 | 02-FEB-06 01.34.56.345678 AM | 5 | 3140 | Screws <Z.16.S> | Screws: Zinc, length 16mm, straight. Carton box, contents 750. | 19 | 93 | 1767 |
| 2412 | 29-MAR-06 10.22.09.509801 AM | 3 | 3123 | PS 220V /D | Standard power supply, 220V, for desktop computers. | 71.5 | 68 | 4862 |
| 2412 | 29-MAR-06 10.22.09.509801 AM | 5 | 3134 | Screws <B.32.S> | Screws: Brass, size 32mm, straight. Plastic box, contents 400. | 18 | 75 | 1350 |
| 2412 | 29-MAR-06 10.22.09.509801 AM | 6 | 3139 | Screws <S.16.S> | Screws: Steel, size 16 mm, straight. Carton box, contents 750. | 20 | 79 | 1580 |
| 2412 | 29-MAR-06 10.22.09.509801 AM | 7 | 3143 | Screws <B.28.S> | Screws: Brass, size 28mm, straight. Plastic box, contents 500. | 16 | 80 | 1280 |
| 2442 | 27-JUL-06 12.22.59.662632 PM | 3 | 2418 | Battery Backup (DA-130) | Single-battery charger with LED indicators | 60 | 23 | 1380 |
| 2443 | 27-JUL-06 01.34.16.562632 PM | 3 | 3124 | PS 110V /T | Power supply for tower PC, 110V | 82 | 6 | 492 |
| 2443 | 27-JUL-06 01.34.16.562632 PM | 4 | 3139 | Screws <S.16.S> | Screws: Steel, size 16 mm, straight. Carton box, contents 750. | 20 | 12 | 240 |
| 2443 | 27-JUL-06 01.34.16.562632 PM | 5 | 3143 | Screws <B.28.S> | Screws: Brass, size 28mm, straight. Plastic box, contents 500. | 15 | 17 | 255 |
| 2445 | 27-JUL-06 03.34.38.362632 PM | 2 | 2278 | Battery – NiHM | Rechargeable NiHM battery for laptop computers | 49 | 3 | 147 |
| 2445 | 27-JUL-06 03.34.38.362632 PM | 4 | 2299 | PS 12V /P | Power Supply – 12v portable | 72 | 14 | 1008 |
| 2445 | 27-JUL-06 03.34.38.362632 PM | 5 | 2311 | PS 220V /L | Power supply for laptop computers, 220V | 95 | 24 | 2280 |
| 2445 | 27-JUL-06 03.34.38.362632 PM | 6 | 2319 | Screws <Z.24.S> | Screws: Zinc, size 24mm, straight. Carton box, contents 500. | 25 | 27 | 675 |
| 2437 | 01-SEP-06 08.59.15.826132 AM | 3 | 2457 | Cable PR/S/6 | Standard RS232 serial printer cable, 6 feet | 4.4 | 17 | 74.8 |
| 2431 | 14-SEP-06 07.03.04.763452 AM | 1 | 3097 | Cable Connector – 32R | Cable Connector – 32 pin ribbon | 2.2 | 3 | 6.6 |
| 2456 | 07-NOV-06 07.53.25.989889 PM | 1 | 2522 | Battery – EL | Extended life battery, for laptop computers | 40 | 5 | 200 |
| 2375 | 26-FEB-07 03.49.50.459233 AM | 6 | 3134 | Screws <B.32.S> | Screws: Brass, size 32mm, straight. Plastic box, contents 400. | 17 | 90 | 1530 |
| 2375 | 26-FEB-07 03.49.50.459233 AM | 7 | 3143 | Screws <B.28.S> | Screws: Brass, size 28mm, straight. Plastic box, contents 500. | 15 | 93 | 1395 |
| 2372 | 27-FEB-07 12.22.33.356789 AM | 4 | 3123 | PS 220V /D | Standard power supply, 220V, for desktop computers. | 81 | 10 | 810 |
| 2372 | 27-FEB-07 12.22.33.356789 AM | 6 | 3134 | Screws <B.32.S> | Screws: Brass, size 32mm, straight. Plastic box, contents 400. | 17 | 17 | 289 |
| 2372 | 27-FEB-07 12.22.33.356789 AM | 7 | 3143 | Screws <B.28.S> | Screws: Brass, size 28mm, straight. Plastic box, contents 500. | 15 | 21 | 315 |
| 2421 | 12-MAR-07 09.53.54.562432 PM | 5 | 3123 | PS 220V /D | Standard power supply, 220V, for desktop computers. | 80 | 168 | 13440 |
| 2421 | 12-MAR-07 09.53.54.562432 PM | 7 | 3143 | Screws <B.28.S> | Screws: Brass, size 28mm, straight. Plastic box, contents 500. | 15 | 176 | 2640 |
| 2420 | 13-MAR-07 08.59.43.666320 PM | 4 | 3123 | PS 220V /D | Standard power supply, 220V, for desktop computers. | 79 | 20 | 1580 |
| 2420 | 13-MAR-07 08.59.43.666320 PM | 7 | 3140 | Screws <Z.16.S> | Screws: Zinc, length 16mm, straight. Carton box, contents 750. | 19 | 34 | 646 |
| 2420 | 13-MAR-07 08.59.43.666320 PM | 8 | 3143 | Screws <B.28.S> | Screws: Brass, size 28mm, straight. Plastic box, contents 500. | 15 | 39 | 585 |
| 2417 | 20-MAR-07 05.49.10.974352 PM | 2 | 2976 | Drive Mount – D | Drive Mount for desktop PC | 51 | 37 | 1887 |
| 2419 | 20-MAR-07 07.03.32.764632 PM | 3 | 3123 | PS 220V /D | Standard power supply, 220V, for desktop computers. | 71.5 | 48 | 3432 |
| 2416 | 29-MAR-07 04.41.20.945676 PM | 2 | 2878 | Router – ASR/2W | Special ALS Router – Approved Supplier required item with 2-way match | 340 | 1 | 340 |
| 2371 | 16-MAY-07 01.34.56.113356 AM | 3 | 2299 | PS 12V /P | Power Supply – 12v portable | 73 | 15 | 1095 |
| 2371 | 16-MAY-07 01.34.56.113356 AM | 4 | 2316 | Screws <S.32.S> | Screws: Steel, size 32mm, straight. Plastic box, contents 500. | 21 | 21 | 441 |
| 2371 | 16-MAY-07 01.34.56.113356 AM | 5 | 2323 | Screws <B.32.P> | Screws: Brass, size 32mm, Phillips head. Plastic box, contents 400. | 17 | 24 | 408 |
| 2379 | 16-MAY-07 02.22.24.234567 AM | 4 | 3139 | Screws <S.16.S> | Screws: Steel, size 16 mm, straight. Carton box, contents 750. | 21 | 34 | 714 |
| 2379 | 16-MAY-07 02.22.24.234567 AM | 5 | 3140 | Screws <Z.16.S> | Screws: Zinc, length 16mm, straight. Carton box, contents 750. | 19 | 35 | 665 |
| 2380 | 16-MAY-07 09.53.02.909090 AM | 6 | 3140 | Screws <Z.16.S> | Screws: Zinc, length 16mm, straight. Carton box, contents 750. | 20 | 30 | 600 |
| 2380 | 16-MAY-07 09.53.02.909090 AM | 7 | 3143 | Screws <B.28.S> | Screws: Brass, size 28mm, straight. Plastic box, contents 500. | 15 | 31 | 465 |
| 2378 | 24-MAY-07 08.59.10.010101 AM | 7 | 2457 | Cable PR/S/6 | Standard RS232 serial printer cable, 6 feet | 4.4 | 25 | 110 |
| 2411 | 24-MAY-07 11.22.10.548639 AM | 3 | 3097 | Cable Connector – 32R | Cable Connector – 32 pin ribbon | 2.2 | 6 | 13.2 |
| 2411 | 24-MAY-07 11.22.10.548639 AM | 4 | 3099 | Cable Harness | Cable harness to organize and bundle computer wiring | 3.3 | 7 | 23.1 |
| 2411 | 24-MAY-07 11.22.10.548639 AM | 8 | 3123 | PS 220V /D | Standard power supply, 220V, for desktop computers. | 75 | 17 | 1275 |
| 2411 | 24-MAY-07 11.22.10.548639 AM | 9 | 3124 | PS 110V /T | Power supply for tower PC, 110V | 84 | 17 | 1428 |
| 2411 | 24-MAY-07 11.22.10.548639 AM | 12 | 3143 | Screws <B.28.S> | Screws: Brass, size 28mm, straight. Plastic box, contents 500. | 15 | 24 | 360 |
| 2376 | 07-JUN-07 06.18.08.883310 AM | 4 | 2299 | PS 12V /P | Power Supply – 12v portable | 73 | 17 | 1241 |
| 2376 | 07-JUN-07 06.18.08.883310 AM | 6 | 2311 | PS 220V /L | Power supply for laptop computers, 220V | 95 | 25 | 2375 |
| 2376 | 07-JUN-07 06.18.08.883310 AM | 7 | 2316 | Screws <S.32.S> | Screws: Steel, size 32mm, straight. Plastic box, contents 500. | 21 | 27 | 567 |
| 2376 | 07-JUN-07 06.18.08.883310 AM | 8 | 2319 | Screws <Z.24.S> | Screws: Zinc, size 24mm, straight. Carton box, contents 500. | 25 | 32 | 800 |
| 2377 | 07-JUN-07 07.03.01.001100 AM | 3 | 2311 | PS 220V /L | Power supply for laptop computers, 220V | 95 | 121 | 11495 |
| 2377 | 07-JUN-07 07.03.01.001100 AM | 4 | 2319 | Screws <Z.24.S> | Screws: Zinc, size 24mm, straight. Carton box, contents 500. | 25 | 131 | 3275 |
| 2449 | 13-JUN-07 05.49.07.162632 PM | 1 | 2522 | Battery – EL | Extended life battery, for laptop computers | 43 | 2 | 86 |
| 2448 | 18-JUN-07 04.41.49.262632 PM | 4 | 3134 | Screws <B.32.S> | Screws: Brass, size 32mm, straight. Plastic box, contents 400. | 17 | 14 | 238 |
| 2448 | 18-JUN-07 04.41.49.262632 PM | 5 | 3139 | Screws <S.16.S> | Screws: Steel, size 16 mm, straight. Carton box, contents 750. | 20 | 15 | 300 |
| 2448 | 18-JUN-07 04.41.49.262632 PM | 6 | 3143 | Screws <B.28.S> | Screws: Brass, size 28mm, straight. Plastic box, contents 500. | 16 | 16 | 256 |
| 2369 | 26-JUN-07 11.22.54.009932 PM | 9 | 3204 | Envoy DS | Envoy Docking Station | 123 | 34 | 4182 |
| 2403 | 01-JUL-07 04.49.13.615512 PM | 1 | 2522 | Battery – EL | Extended life battery, for laptop computers | 44 | 5 | 220 |
| 2405 | 01-JUL-07 04.49.13.678123 PM | 1 | 2638 | Envoy DS/E | Enhanced Envoy Docking Station | 137 | 9 | 1233 |
| 2400 | 10-JUL-07 01.34.29.559387 AM | 1 | 2976 | Drive Mount – D | Drive Mount for desktop PC | 52 | 4 | 208 |
| 2400 | 10-JUL-07 01.34.29.559387 AM | 2 | 2982 | Drive Mount – A | Drive Mount assembly kit | 41 | 1 | 41 |
| 2400 | 10-JUL-07 01.34.29.559387 AM | 4 | 2999 | Laptop 16/8/110 | Envoy Laptop, 16MB memory, 8GB hard disk, 110V power supply (US only). | 880 | 16 | 14080 |
| 2400 | 10-JUL-07 01.34.29.559387 AM | 5 | 3003 | Laptop 128/12/56/v90/110 | Envoy Laptop, 128MB memory, 12GB hard disk, v90 modem, 110V power supply. | 2866.6 | 19 | 54465.4 |
| 2392 | 21-JUL-07 08.59.57.571057 PM | 4 | 3124 | PS 110V /T | Power supply for tower PC, 110V | 77 | 63 | 4851 |
| 2392 | 21-JUL-07 08.59.57.571057 PM | 6 | 3139 | Screws <S.16.S> | Screws: Steel, size 16 mm, straight. Carton box, contents 750. | 21 | 68 | 1428 |
| 2444 | 27-JUL-07 02.22.27.462632 PM | 4 | 3139 | Screws <S.16.S> | Screws: Steel, size 16 mm, straight. Carton box, contents 750. | 21 | 93 | 1953 |
| 2444 | 27-JUL-07 02.22.27.462632 PM | 5 | 3140 | Screws <Z.16.S> | Screws: Zinc, length 16mm, straight. Carton box, contents 750. | 19 | 95 | 1805 |
| 2444 | 27-JUL-07 02.22.27.462632 PM | 6 | 3143 | Screws <B.28.S> | Screws: Brass, size 28mm, straight. Plastic box, contents 500. | 15 | 97 | 1455 |
| 2458 | 16-AUG-07 03.34.12.234359 PM | 2 | 3123 | PS 220V /D | Standard power supply, 220V, for desktop computers. | 79 | 112 | 8848 |
| 2458 | 16-AUG-07 03.34.12.234359 PM | 4 | 3134 | Screws <B.32.S> | Screws: Brass, size 32mm, straight. Plastic box, contents 400. | 17 | 115 | 1955 |
| 2458 | 16-AUG-07 03.34.12.234359 PM | 5 | 3143 | Screws <B.28.S> | Screws: Brass, size 28mm, straight. Plastic box, contents 500. | 15 | 129 | 1935 |
| 2364 | 28-AUG-07 06.18.45.942399 PM | 2 | 1948 | Envoy IC/58 | Internet computer with built-in 58K modem | 470.8 | 20 | 9416 |
| 2365 | 28-AUG-07 07.03.34.003399 PM | 5 | 2311 | PS 220V /L | Power supply for laptop computers, 220V | 95 | 29 | 2755 |
| 2365 | 28-AUG-07 07.03.34.003399 PM | 6 | 2316 | Screws <S.32.S> | Screws: Steel, size 32mm, straight. Plastic box, contents 500. | 22 | 34 | 748 |
| 2365 | 28-AUG-07 07.03.34.003399 PM | 7 | 2319 | Screws <Z.24.S> | Screws: Zinc, size 24mm, straight. Carton box, contents 500. | 24 | 38 | 912 |
| 2365 | 28-AUG-07 07.03.34.003399 PM | 8 | 2322 | Screws <Z.28.P> | Screws: Zinc, size 28 mm, Phillips head. Carton box, contents 850. | 19 | 43 | 817 |
| 2366 | 28-AUG-07 08.59.23.144778 PM | 2 | 2373 | Cable RS232 10/AF | 10 ft RS232 cable with F/F and 9F/25F adapters | 6 | 7 | 42 |
| 2366 | 28-AUG-07 08.59.23.144778 PM | 10 | 2419 | Battery Backup (DA-290) | Two-battery charger with LED indicators | 69 | 24 | 1656 |
| 2440 | 31-AUG-07 09.53.06.008765 PM | 4 | 2311 | PS 220V /L | Power supply for laptop computers, 220V | 86.9 | 7 | 608.3 |
| 2440 | 31-AUG-07 09.53.06.008765 PM | 5 | 2322 | Screws <Z.28.P> | Screws: Zinc, size 28 mm, Phillips head. Carton box, contents 850. | 23 | 10 | 230 |
| 2438 | 01-SEP-07 09.53.26.934626 AM | 2 | 3000 | Laptop 32/10/56 | Envoy Laptop, 32MB memory, 10GB hard disk, 56K Modem, universal power supply (switchable). | 1748 | 3 | 5244 |
| 2435 | 02-SEP-07 11.22.53.134567 PM | 2 | 2299 | PS 12V /P | Power Supply – 12v portable | 75 | 4 | 300 |
| 2435 | 02-SEP-07 11.22.53.134567 PM | 3 | 2311 | PS 220V /L | Power supply for laptop computers, 220V | 86.9 | 8 | 695.2 |
| 2435 | 02-SEP-07 11.22.53.134567 PM | 4 | 2316 | Screws <S.32.S> | Screws: Steel, size 32mm, straight. Plastic box, contents 500. | 21 | 10 | 210 |
| 2435 | 02-SEP-07 11.22.53.134567 PM | 5 | 2323 | Screws <B.32.P> | Screws: Brass, size 32mm, Phillips head. Plastic box, contents 400. | 18 | 12 | 216 |
| 2432 | 14-SEP-07 09.53.40.223345 AM | 1 | 2976 | Drive Mount – D | Drive Mount for desktop PC | 49 | 3 | 147 |
| 2432 | 14-SEP-07 09.53.40.223345 AM | 2 | 2982 | Drive Mount – A | Drive Mount assembly kit | 43 | 2 | 86 |
| 2432 | 14-SEP-07 09.53.40.223345 AM | 4 | 2999 | Laptop 16/8/110 | Envoy Laptop, 16MB memory, 8GB hard disk, 110V power supply (US only). | 880 | 11 | 9680 |
| 2454 | 02-OCT-07 05.49.34.678340 PM | 3 | 2299 | PS 12V /P | Power Supply – 12v portable | 71 | 3 | 213 |
| 2454 | 02-OCT-07 05.49.34.678340 PM | 5 | 2316 | Screws <S.32.S> | Screws: Steel, size 32mm, straight. Plastic box, contents 500. | 21 | 13 | 273 |
| 2454 | 02-OCT-07 05.49.34.678340 PM | 6 | 2323 | Screws <B.32.P> | Screws: Brass, size 32mm, Phillips head. Plastic box, contents 400. | 18 | 16 | 288 |
| 2452 | 06-OCT-07 08.59.43.462632 PM | 2 | 3139 | Screws <S.16.S> | Screws: Steel, size 16 mm, straight. Carton box, contents 750. | 20 | 10 | 200 |
| 2452 | 06-OCT-07 08.59.43.462632 PM | 3 | 3143 | Screws <B.28.S> | Screws: Brass, size 28mm, straight. Plastic box, contents 500. | 15 | 12 | 180 |
| 2363 | 23-OCT-07 05.49.56.346122 PM | 3 | 2299 | PS 12V /P | Power Supply – 12v portable | 74 | 25 | 1850 |
| 2363 | 23-OCT-07 05.49.56.346122 PM | 5 | 2311 | PS 220V /L | Power supply for laptop computers, 220V | 86.9 | 29 | 2520.1 |
| 2363 | 23-OCT-07 05.49.56.346122 PM | 6 | 2319 | Screws <Z.24.S> | Screws: Zinc, size 24mm, straight. Carton box, contents 500. | 24 | 31 | 744 |
| 2363 | 23-OCT-07 05.49.56.346122 PM | 7 | 2323 | Screws <B.32.P> | Screws: Brass, size 32mm, Phillips head. Plastic box, contents 400. | 18 | 34 | 612 |
| 2457 | 31-OCT-07 11.22.16.162632 PM | 2 | 3123 | PS 220V /D | Standard power supply, 220V, for desktop computers. | 79 | 14 | 1106 |
| 2427 | 10-NOV-07 01.34.22.362124 AM | 3 | 2457 | Cable PR/S/6 | Standard RS232 serial printer cable, 6 feet | 4.4 | 6 | 26.4 |
| 2427 | 10-NOV-07 01.34.22.362124 AM | 7 | 2522 | Battery – EL | Extended life battery, for laptop computers | 40 | 22 | 880 |
| 2428 | 10-NOV-07 02.41.34.463567 AM | 5 | 3123 | PS 220V /D | Standard power supply, 220V, for desktop computers. | 80 | 8 | 640 |
| 2428 | 10-NOV-07 02.41.34.463567 AM | 8 | 3143 | Screws <B.28.S> | Screws: Brass, size 28mm, straight. Plastic box, contents 500. | 16 | 13 | 208 |
| 2429 | 10-NOV-07 03.49.25.526321 AM | 4 | 3123 | PS 220V /D | Standard power supply, 220V, for desktop computers. | 79 | 46 | 3634 |
| 2429 | 10-NOV-07 03.49.25.526321 AM | 7 | 3139 | Screws <S.16.S> | Screws: Steel, size 16 mm, straight. Carton box, contents 750. | 21 | 54 | 1134 |
| 2361 | 13-NOV-07 01.34.21.986210 PM | 2 | 2299 | PS 12V /P | Power Supply – 12v portable | 76 | 180 | 13680 |
| 2361 | 13-NOV-07 01.34.21.986210 PM | 4 | 2311 | PS 220V /L | Power supply for laptop computers, 220V | 86.9 | 185 | 16076.5 |
| 2361 | 13-NOV-07 01.34.21.986210 PM | 5 | 2316 | Screws <S.32.S> | Screws: Steel, size 32mm, straight. Plastic box, contents 500. | 22 | 187 | 4114 |
| 2362 | 13-NOV-07 02.41.10.619477 PM | 2 | 2299 | PS 12V /P | Power Supply – 12v portable | 76 | 160 | 12160 |
| 2362 | 13-NOV-07 02.41.10.619477 PM | 3 | 2311 | PS 220V /L | Power supply for laptop computers, 220V | 93 | 164 | 15252 |
| 2362 | 13-NOV-07 02.41.10.619477 PM | 4 | 2316 | Screws <S.32.S> | Screws: Steel, size 32mm, straight. Plastic box, contents 500. | 22 | 168 | 3696 |
| 2390 | 18-NOV-07 04.18.50.546851 PM | 3 | 1948 | Envoy IC/58 | Internet computer with built-in 58K modem | 470.8 | 16 | 7532.8 |
| 2397 | 19-NOV-07 02.41.54.696211 PM | 1 | 2976 | Drive Mount – D | Drive Mount for desktop PC | 52 | 2 | 104 |
| 2397 | 19-NOV-07 02.41.54.696211 PM | 3 | 2999 | Laptop 16/8/110 | Envoy Laptop, 16MB memory, 8GB hard disk, 110V power supply (US only). | 880 | 16 | 14080 |
| 2397 | 19-NOV-07 02.41.54.696211 PM | 4 | 3000 | Laptop 32/10/56 | Envoy Laptop, 32MB memory, 10GB hard disk, 56K Modem, universal power supply (switchable). | 1696.2 | 16 | 27139.2 |
| 2399 | 19-NOV-07 10.22.38.340990 PM | 3 | 2299 | PS 12V /P | Power Supply – 12v portable | 76 | 15 | 1140 |
| 2399 | 19-NOV-07 10.22.38.340990 PM | 6 | 2311 | PS 220V /L | Power supply for laptop computers, 220V | 86.9 | 20 | 1738 |
| 2399 | 19-NOV-07 10.22.38.340990 PM | 7 | 2316 | Screws <S.32.S> | Screws: Steel, size 32mm, straight. Plastic box, contents 500. | 22 | 24 | 528 |
| 2386 | 06-DEC-07 12.22.34.225609 PM | 5 | 2370 | PS 220V /HS/FR | 220V hot swappable power supply, for France. | 90 | 28 | 2520 |
| 2385 | 08-DEC-07 11.34.11.331392 AM | 3 | 2311 | PS 220V /L | Power supply for laptop computers, 220V | 86.9 | 96 | 8342.4 |
| 2385 | 08-DEC-07 11.34.11.331392 AM | 4 | 2319 | Screws <Z.24.S> | Screws: Zinc, size 24mm, straight. Carton box, contents 500. | 25 | 97 | 2425 |
| 2422 | 16-DEC-07 08.19.55.462332 PM | 3 | 3123 | PS 220V /D | Standard power supply, 220V, for desktop computers. | 71.5 | 5 | 357.5 |
| 2451 | 17-DEC-07 05.03.52.562632 PM | 2 | 1948 | Envoy IC/58 | Internet computer with built-in 58K modem | 470.8 | 22 | 10357.6 |
| 2356 | 26-JAN-08 09.22.41.934562 AM | 4 | 2299 | PS 12V /P | Power Supply – 12v portable | 72 | 44 | 3168 |
| 2356 | 26-JAN-08 09.22.41.934562 AM | 6 | 2311 | PS 220V /L | Power supply for laptop computers, 220V | 95 | 51 | 4845 |
| 2356 | 26-JAN-08 09.22.41.934562 AM | 7 | 2316 | Screws <S.32.S> | Screws: Steel, size 32mm, straight. Plastic box, contents 500. | 22 | 55 | 1210 |
| 2356 | 26-JAN-08 09.22.41.934562 AM | 8 | 2323 | Screws <B.32.P> | Screws: Brass, size 32mm, Phillips head. Plastic box, contents 400. | 18 | 55 | 990 |
| 2393 | 10-FEB-08 07.53.19.528202 PM | 10 | 3099 | Cable Harness | Cable harness to organize and bundle computer wiring | 3.3 | 19 | 62.7 |
| 2394 | 10-FEB-08 09.22.35.564789 PM | 2 | 3123 | PS 220V /D | Standard power supply, 220V, for desktop computers. | 77 | 36 | 2772 |
| 2394 | 10-FEB-08 09.22.35.564789 PM | 3 | 3124 | PS 110V /T | Power supply for tower PC, 110V | 82 | 39 | 3198 |
| 2394 | 10-FEB-08 09.22.35.564789 PM | 6 | 3134 | Screws <B.32.S> | Screws: Brass, size 32mm, straight. Plastic box, contents 400. | 18 | 45 | 810 |
| 2394 | 10-FEB-08 09.22.35.564789 PM | 7 | 3140 | Screws <Z.16.S> | Screws: Zinc, length 16mm, straight. Carton box, contents 750. | 19 | 48 | 912 |
| 2383 | 12-MAY-08 11.22.30.545103 AM | 2 | 2418 | Battery Backup (DA-130) | Single-battery charger with LED indicators | 56 | 45 | 2520 |
| 2383 | 12-MAY-08 11.22.30.545103 AM | 6 | 2457 | Cable PR/S/6 | Standard RS232 serial printer cable, 6 feet | 4.4 | 62 | 272.8 |
| 2384 | 12-MAY-08 12.22.34.525972 PM | 2 | 2299 | PS 12V /P | Power Supply – 12v portable | 71 | 48 | 3408 |
| 2384 | 12-MAY-08 12.22.34.525972 PM | 3 | 2316 | Screws <S.32.S> | Screws: Steel, size 32mm, straight. Plastic box, contents 500. | 21 | 58 | 1218 |
| 2384 | 12-MAY-08 12.22.34.525972 PM | 4 | 2322 | Screws <Z.28.P> | Screws: Zinc, size 28 mm, Phillips head. Carton box, contents 850. | 22 | 59 | 1298 |
| 2382 | 14-MAY-08 10.19.03.828321 AM | 5 | 3123 | PS 220V /D | Standard power supply, 220V, for desktop computers. | 79 | 71 | 5609 |
| 2382 | 14-MAY-08 10.19.03.828321 AM | 8 | 3139 | Screws <S.16.S> | Screws: Steel, size 16 mm, straight. Carton box, contents 750. | 21 | 79 | 1659 |
| 2382 | 14-MAY-08 10.19.03.828321 AM | 9 | 3143 | Screws <B.28.S> | Screws: Brass, size 28mm, straight. Plastic box, contents 500. | 15 | 82 | 1230 |
| 2381 | 14-MAY-08 08.59.08.843679 PM | 2 | 3124 | PS 110V /T | Power supply for tower PC, 110V | 77 | 44 | 3388 |
| 2381 | 14-MAY-08 08.59.08.843679 PM | 4 | 3139 | Screws <S.16.S> | Screws: Steel, size 16 mm, straight. Carton box, contents 750. | 20 | 45 | 900 |
| 2381 | 14-MAY-08 08.59.08.843679 PM | 5 | 3143 | Screws <B.28.S> | Screws: Brass, size 28mm, straight. Plastic box, contents 500. | 15 | 48 | 720 |
| 2410 | 24-MAY-08 10.19.51.985501 AM | 1 | 2976 | Drive Mount – D | Drive Mount for desktop PC | 46 | 10 | 460 |
| 2410 | 24-MAY-08 10.19.51.985501 AM | 2 | 2982 | Drive Mount – A | Drive Mount assembly kit | 40 | 5 | 200 |
| 2410 | 24-MAY-08 10.19.51.985501 AM | 5 | 3003 | Laptop 128/12/56/v90/110 | Envoy Laptop, 128MB memory, 12GB hard disk, v90 modem, 110V power supply. | 2866.6 | 15 | 42999 |
| 2389 | 04-JUN-08 05.49.43.546954 PM | 3 | 3123 | PS 220V /D | Standard power supply, 220V, for desktop computers. | 80 | 21 | 1680 |
| 2389 | 04-JUN-08 05.49.43.546954 PM | 5 | 3143 | Screws <B.28.S> | Screws: Brass, size 28mm, straight. Plastic box, contents 500. | 15 | 30 | 450 |
| 2368 | 26-JUN-08 10.19.43.190089 PM | 4 | 3123 | PS 220V /D | Standard power supply, 220V, for desktop computers. | 81 | 70 | 5670 |
| 2368 | 26-JUN-08 10.19.43.190089 PM | 7 | 3143 | Screws <B.28.S> | Screws: Brass, size 28mm, straight. Plastic box, contents 500. | 16 | 75 | 1200 |
| 2367 | 27-JUN-08 09.53.32.335522 PM | 4 | 2322 | Screws <Z.28.P> | Screws: Zinc, size 28 mm, Phillips head. Carton box, contents 850. | 22 | 45 | 990 |
| 2354 | 14-JUL-08 06.18.23.234567 PM | 3 | 3123 | PS 220V /D | Standard power supply, 220V, for desktop computers. | 79 | 47 | 3713 |
| 2354 | 14-JUL-08 06.18.23.234567 PM | 5 | 3139 | Screws <S.16.S> | Screws: Steel, size 16 mm, straight. Carton box, contents 750. | 21 | 48 | 1008 |
| 2354 | 14-JUL-08 06.18.23.234567 PM | 6 | 3143 | Screws <B.28.S> | Screws: Brass, size 28mm, straight. Plastic box, contents 500. | 16 | 53 | 848 |
| 2447 | 27-JUL-08 08.59.10.223344 AM | 4 | 2278 | Battery – NiHM | Rechargeable NiHM battery for laptop computers | 50 | 25 | 1250 |
| 2447 | 27-JUL-08 08.59.10.223344 AM | 6 | 2299 | PS 12V /P | Power Supply – 12v portable | 76 | 35 | 2660 |
| 2447 | 27-JUL-08 08.59.10.223344 AM | 9 | 2311 | PS 220V /L | Power supply for laptop computers, 220V | 93 | 44 | 4092 |
SELECT
oe.orders.order_id,
oe.orders.order_date,
oe.order_items.line_item_id,
oe.order_items.product_id,
oe.product_information.product_name,
oe.product_information.product_description,
oe.order_items.unit_price,
oe.order_items.quantity,
oe.order_items.unit_price * oe.order_items.quantity AS sale_amount
FROM
oe.orders
INNER JOIN
oe.order_items
ON oe.orders.order_id = oe.order_items.order_id
INNER JOIN
oe.product_information
ON oe.order_items.product_id = oe.product_information.product_id
WHERE
oe.product_information.category_id = 19
ORDER BY
oe.orders.order_date,
oe.orders.order_id,
oe.order_items.line_item_id;
Problem 8
For each customer ID, retrieve the product IDs and the total quantity ordered by the customer. For example, if customer 123 ordered 5 of product ABC on one occasion and 8 of product ABC on another occasion, then the record should as 123 for the customer ID, ABC for the product ID, and 13 for the total quantity ordered for the item across all the customer’s orders. Alias the summation as “total_ordered.” Sort the result set by customer ID (ascending) and product ID (ascending).
oe.orders
oe.order_items
| CUSTOMER_ID | PRODUCT_ID | TOTAL_ORDERED |
|---|---|---|
| 101 | 2264 | 29 |
| 101 | 2266 | 23 |
| 101 | 2272 | 24 |
| 101 | 2278 | 25 |
| 101 | 2293 | 34 |
| 101 | 2299 | 35 |
| 101 | 2302 | 37 |
| 101 | 2308 | 40 |
| 101 | 2311 | 44 |
| 101 | 3108 | 200 |
| 101 | 3112 | 40 |
| 101 | 3117 | 184 |
| 101 | 3123 | 112 |
| 101 | 3127 | 158 |
| 101 | 3129 | 45 |
| 101 | 3134 | 115 |
| 101 | 3143 | 129 |
| 101 | 3155 | 62 |
| 101 | 3163 | 208 |
| 101 | 3350 | 6 |
| 101 | 3353 | 5 |
| 101 | 3359 | 10 |
| 101 | 3362 | 10 |
| 101 | 3501 | 43 |
| 102 | 2976 | 5 |
| 102 | 2982 | 2 |
| 102 | 2986 | 13 |
| 102 | 2999 | 27 |
| 102 | 3000 | 16 |
| 102 | 3097 | 3 |
| 102 | 3106 | 1 |
| 102 | 3114 | 3 |
| 102 | 3117 | 7 |
| 102 | 3127 | 9 |
| 102 | 3129 | 11 |
| 102 | 3208 | 8 |
| 102 | 3216 | 7 |
| 102 | 3220 | 9 |
| 102 | 3234 | 11 |
| 102 | 3246 | 18 |
| 102 | 3253 | 23 |
| 102 | 3260 | 24 |
| 103 | 1910 | 6 |
| 103 | 2289 | 120 |
| 103 | 2293 | 0 |
| 103 | 2299 | 3 |
| 103 | 2308 | 12 |
| 103 | 2316 | 13 |
| 103 | 2323 | 16 |
| 103 | 2334 | 18 |
| 103 | 2423 | 8 |
| 103 | 2430 | 4 |
| 103 | 2457 | 17 |
| 103 | 2462 | 19 |
| 103 | 2464 | 21 |
| 103 | 2496 | 35 |
| 103 | 2751 | 5 |
| 104 | 2289 | 200 |
| 104 | 2308 | 185 |
| 104 | 2311 | 188 |
| 104 | 2322 | 188 |
| 104 | 2323 | 190 |
| 104 | 2326 | 192 |
| 104 | 2330 | 197 |
| 104 | 2339 | 199 |
| 104 | 2359 | 204 |
| 104 | 2870 | 10 |
| 104 | 2878 | 1 |
| 104 | 2995 | 3 |
| 104 | 3000 | 3 |
| 104 | 3106 | 61 |
| 104 | 3114 | 43 |
| 104 | 3123 | 47 |
| 104 | 3129 | 47 |
| 104 | 3139 | 48 |
| 104 | 3143 | 53 |
| 104 | 3150 | 58 |
| 104 | 3163 | 61 |
| 104 | 3165 | 64 |
| 104 | 3167 | 68 |
| 104 | 3170 | 70 |
| 104 | 3176 | 72 |
| 104 | 3182 | 77 |
| 105 | 1781 | 9 |
| 105 | 1782 | 4 |
| 105 | 1797 | 21 |
| 105 | 1803 | 13 |
| 105 | 1806 | 4 |
| 105 | 1808 | 14 |
| 105 | 1820 | 9 |
| 105 | 1822 | 13 |
| 105 | 2264 | 38 |
| 105 | 2274 | 34 |
| 105 | 2293 | 40 |
| 105 | 2299 | 44 |
| 105 | 2308 | 47 |
| 105 | 2311 | 51 |
| 105 | 2316 | 55 |
| 105 | 2323 | 55 |
| 105 | 2870 | 9 |
| 105 | 2976 | 37 |
| 106 | 2337 | 1 |
| 106 | 2359 | 1 |
| 106 | 2370 | 17 |
| 106 | 2373 | 17 |
| 106 | 2377 | 17 |
| 106 | 2380 | 17 |
| 106 | 2381 | 17 |
| 106 | 2536 | 9 |
| 106 | 2537 | 7 |
| 106 | 3082 | 15 |
| 106 | 3090 | 12 |
| 106 | 3097 | 13 |
| 106 | 3110 | 20 |
| 106 | 3117 | 110 |
| 106 | 3124 | 44 |
| 106 | 3133 | 44 |
| 106 | 3139 | 45 |
| 106 | 3140 | 31 |
| 106 | 3143 | 48 |
| 106 | 3150 | 37 |
| 106 | 3163 | 55 |
| 106 | 3176 | 62 |
| 106 | 3183 | 63 |
| 107 | 2058 | 29 |
| 107 | 2093 | 42 |
| 107 | 2289 | 19 |
| 107 | 2293 | 2 |
| 107 | 2302 | 2 |
| 107 | 2311 | 7 |
| 107 | 2322 | 10 |
| 107 | 2330 | 13 |
| 107 | 2334 | 15 |
| 107 | 2337 | 19 |
| 107 | 2339 | 23 |
| 107 | 2350 | 24 |
| 107 | 2359 | 28 |
| 107 | 2402 | 26 |
| 107 | 2410 | 21 |
| 107 | 2418 | 23 |
| 107 | 2422 | 25 |
| 107 | 2430 | 28 |
| 107 | 2439 | 30 |
| 107 | 2459 | 40 |
| 107 | 2467 | 44 |
| 107 | 3106 | 150 |
| 107 | 3114 | 45 |
| 107 | 3123 | 48 |
| 107 | 3129 | 57 |
| 107 | 3133 | 61 |
| 107 | 3150 | 69 |
| 107 | 3155 | 72 |
| 107 | 3165 | 76 |
| 107 | 3167 | 81 |
| 108 | 2211 | 140 |
| 108 | 2245 | 26 |
| 108 | 2252 | 26 |
| 108 | 2257 | 29 |
| 108 | 2262 | 29 |
| 108 | 2268 | 32 |
| 108 | 2276 | 38 |
| 108 | 2289 | 221 |
| 108 | 2299 | 180 |
| 108 | 2308 | 182 |
| 108 | 2311 | 185 |
| 108 | 2316 | 187 |
| 108 | 2326 | 194 |
| 108 | 2334 | 198 |
| 108 | 2359 | 208 |
| 108 | 2365 | 209 |
| 108 | 3106 | 113 |
| 108 | 3110 | 11 |
| 108 | 3114 | 17 |
| 108 | 3123 | 20 |
| 108 | 3124 | 6 |
| 108 | 3127 | 22 |
| 108 | 3133 | 29 |
| 108 | 3139 | 12 |
| 108 | 3140 | 34 |
| 108 | 3143 | 56 |
| 108 | 3150 | 17 |
| 108 | 3155 | 21 |
| 108 | 3163 | 45 |
| 108 | 3165 | 31 |
| 108 | 3171 | 47 |
| 109 | 2289 | 200 |
| 109 | 2299 | 160 |
| 109 | 2311 | 164 |
| 109 | 2316 | 168 |
| 109 | 2326 | 173 |
| 109 | 2334 | 177 |
| 109 | 2339 | 179 |
| 109 | 2359 | 189 |
| 109 | 3106 | 160 |
| 109 | 3108 | 160 |
| 109 | 3112 | 164 |
| 109 | 3117 | 365 |
| 109 | 3123 | 204 |
| 109 | 3124 | 39 |
| 109 | 3127 | 88 |
| 109 | 3129 | 213 |
| 109 | 3133 | 135 |
| 109 | 3134 | 45 |
| 109 | 3139 | 93 |
| 109 | 3140 | 143 |
| 109 | 3143 | 273 |
| 109 | 3150 | 276 |
| 109 | 3155 | 350 |
| 109 | 3165 | 112 |
| 109 | 3167 | 68 |
| 109 | 3172 | 112 |
| 109 | 3182 | 115 |
| 116 | 2492 | 3 |
| 116 | 3106 | 7 |
| 116 | 3108 | 1 |
| 116 | 3114 | 5 |
| 116 | 3117 | 6 |
| 116 | 3123 | 8 |
| 116 | 3127 | 12 |
| 116 | 3133 | 12 |
| 116 | 3143 | 13 |
| 116 | 3150 | 19 |
| 116 | 3155 | 1 |
| 116 | 3163 | 5 |
| 116 | 3165 | 10 |
| 116 | 3170 | 48 |
| 116 | 3173 | 28 |
| 116 | 3176 | 24 |
| 116 | 3187 | 24 |
| 116 | 3193 | 28 |
| 116 | 3204 | 34 |
| 116 | 3208 | 8 |
| 116 | 3209 | 2 |
| 116 | 3216 | 3 |
| 116 | 3224 | 6 |
| 116 | 3245 | 16 |
| 116 | 3250 | 18 |
| 116 | 3256 | 18 |
| 116 | 3290 | 24 |
| 117 | 1910 | 9 |
| 117 | 2289 | 47 |
| 117 | 2326 | 34 |
| 117 | 2330 | 36 |
| 117 | 2337 | 37 |
| 117 | 2350 | 39 |
| 117 | 2522 | 5 |
| 117 | 2537 | 19 |
| 117 | 3106 | 200 |
| 117 | 3108 | 40 |
| 117 | 3110 | 43 |
| 117 | 3123 | 46 |
| 117 | 3127 | 49 |
| 117 | 3133 | 52 |
| 117 | 3139 | 54 |
| 117 | 3150 | 55 |
| 117 | 3163 | 63 |
| 117 | 3165 | 67 |
| 118 | 2274 | 6 |
| 118 | 2293 | 8 |
| 118 | 2299 | 15 |
| 118 | 2316 | 21 |
| 118 | 2323 | 24 |
| 118 | 2334 | 26 |
| 118 | 2339 | 29 |
| 118 | 2350 | 32 |
| 118 | 3108 | 36 |
| 118 | 3123 | 14 |
| 118 | 3127 | 17 |
| 118 | 3150 | 27 |
| 118 | 3155 | 32 |
| 118 | 3170 | 42 |
| 118 | 3172 | 45 |
| 119 | 3106 | 6 |
| 119 | 3108 | 2 |
| 119 | 3110 | 7 |
| 119 | 3123 | 10 |
| 119 | 3127 | 13 |
| 119 | 3134 | 17 |
| 119 | 3143 | 21 |
| 119 | 3163 | 30 |
| 119 | 3167 | 32 |
| 119 | 3170 | 36 |
| 120 | 1820 | 8 |
| 120 | 1825 | 1 |
| 121 | 2422 | 10 |
| 121 | 2423 | 6 |
| 121 | 2449 | 15 |
| 121 | 2467 | 21 |
| 122 | 3106 | 140 |
| 122 | 3112 | 84 |
| 122 | 3117 | 85 |
| 122 | 3127 | 86 |
| 122 | 3133 | 88 |
| 122 | 3134 | 90 |
| 122 | 3143 | 93 |
| 122 | 3150 | 93 |
| 122 | 3155 | 98 |
| 122 | 3163 | 99 |
| 122 | 3165 | 103 |
| 122 | 3171 | 107 |
| 122 | 3176 | 109 |
| 123 | 2270 | 14 |
| 123 | 2276 | 4 |
| 123 | 2293 | 13 |
| 123 | 2299 | 17 |
| 123 | 2302 | 21 |
| 123 | 2311 | 25 |
| 123 | 2316 | 27 |
| 123 | 2319 | 32 |
| 123 | 2326 | 33 |
| 123 | 2334 | 36 |
| 141 | 2289 | 130 |
| 141 | 2302 | 119 |
| 141 | 2311 | 121 |
| 141 | 2319 | 131 |
| 141 | 2326 | 132 |
| 141 | 2330 | 136 |
| 142 | 2403 | 20 |
| 142 | 2412 | 2 |
| 142 | 2414 | 7 |
| 142 | 2417 | 11 |
| 142 | 2423 | 11 |
| 142 | 2424 | 15 |
| 142 | 2457 | 25 |
| 142 | 2459 | 25 |
| 143 | 3106 | 26 |
| 143 | 3108 | 18 |
| 143 | 3117 | 23 |
| 143 | 3127 | 24 |
| 143 | 3133 | 28 |
| 143 | 3140 | 30 |
| 143 | 3143 | 31 |
| 143 | 3150 | 33 |
| 143 | 3155 | 33 |
| 143 | 3163 | 36 |
| 143 | 3167 | 37 |
| 143 | 3176 | 40 |
| 143 | 3187 | 40 |
| 144 | 2264 | 9 |
| 144 | 2270 | 5 |
| 144 | 2272 | 7 |
| 144 | 2278 | 3 |
| 144 | 2289 | 35 |
| 144 | 2293 | 11 |
| 144 | 2299 | 43 |
| 144 | 2308 | 26 |
| 144 | 2311 | 61 |
| 144 | 2316 | 10 |
| 144 | 2319 | 58 |
| 144 | 2323 | 46 |
| 144 | 2326 | 65 |
| 144 | 2334 | 56 |
| 144 | 2339 | 19 |
| 144 | 2350 | 24 |
| 144 | 2365 | 33 |
| 144 | 3106 | 178 |
| 144 | 3110 | 64 |
| 144 | 3114 | 65 |
| 144 | 3117 | 71 |
| 144 | 3123 | 76 |
| 144 | 3127 | 80 |
| 144 | 3129 | 76 |
| 144 | 3133 | 11 |
| 144 | 3139 | 79 |
| 144 | 3143 | 82 |
| 144 | 3150 | 25 |
| 144 | 3155 | 29 |
| 144 | 3163 | 124 |
| 144 | 3165 | 92 |
| 144 | 3167 | 39 |
| 145 | 1910 | 6 |
| 145 | 1948 | 20 |
| 145 | 2409 | 37 |
| 145 | 2418 | 45 |
| 145 | 2422 | 46 |
| 145 | 2430 | 50 |
| 145 | 2439 | 54 |
| 145 | 2457 | 62 |
| 145 | 2462 | 63 |
| 145 | 2471 | 3 |
| 145 | 2496 | 32 |
| 145 | 2536 | 54 |
| 145 | 3106 | 3 |
| 145 | 3114 | 0 |
| 145 | 3133 | 11 |
| 145 | 3134 | 14 |
| 145 | 3139 | 15 |
| 145 | 3143 | 16 |
| 145 | 3220 | 8 |
| 145 | 3224 | 3 |
| 145 | 3245 | 13 |
| 145 | 3246 | 14 |
| 145 | 3251 | 16 |
| 145 | 3258 | 21 |
| 145 | 3290 | 33 |
| 146 | 2289 | 187 |
| 146 | 2293 | 28 |
| 146 | 2299 | 48 |
| 146 | 2302 | 29 |
| 146 | 2308 | 29 |
| 146 | 2311 | 29 |
| 146 | 2316 | 92 |
| 146 | 2319 | 38 |
| 146 | 2322 | 102 |
| 146 | 2326 | 44 |
| 146 | 2330 | 61 |
| 146 | 2335 | 45 |
| 146 | 2339 | 50 |
| 146 | 2340 | 54 |
| 146 | 2359 | 77 |
| 146 | 2522 | 2 |
| 146 | 3106 | 92 |
| 146 | 3114 | 14 |
| 146 | 3127 | 23 |
| 146 | 3139 | 34 |
| 146 | 3140 | 35 |
| 146 | 3350 | 11 |
| 146 | 3354 | 9 |
| 146 | 3359 | 12 |
| 147 | 2289 | 200 |
| 147 | 2302 | 87 |
| 147 | 2311 | 96 |
| 147 | 2319 | 97 |
| 147 | 2335 | 106 |
| 147 | 2350 | 109 |
| 147 | 2359 | 8 |
| 147 | 2373 | 7 |
| 147 | 2382 | 10 |
| 147 | 2394 | 11 |
| 147 | 2395 | 12 |
| 147 | 2400 | 16 |
| 147 | 2406 | 20 |
| 147 | 2409 | 22 |
| 147 | 2415 | 24 |
| 147 | 2419 | 24 |
| 147 | 3106 | 150 |
| 147 | 3108 | 75 |
| 147 | 3110 | 79 |
| 147 | 3114 | 83 |
| 147 | 3140 | 93 |
| 147 | 3150 | 93 |
| 147 | 3155 | 98 |
| 147 | 3163 | 100 |
| 147 | 3191 | 4 |
| 147 | 3193 | 3 |
| 147 | 3197 | 5 |
| 147 | 3216 | 11 |
| 147 | 3220 | 14 |
| 147 | 3224 | 16 |
| 147 | 3501 | 3 |
| 147 | 3511 | 2 |
| 147 | 3515 | 4 |
| 148 | 1910 | 9 |
| 148 | 1948 | 22 |
| 148 | 2289 | 99 |
| 148 | 2302 | 32 |
| 148 | 2308 | 39 |
| 148 | 2322 | 45 |
| 148 | 2326 | 48 |
| 148 | 2330 | 59 |
| 148 | 2334 | 5 |
| 148 | 2335 | 54 |
| 148 | 2340 | 14 |
| 148 | 2350 | 54 |
| 148 | 2365 | 27 |
| 148 | 2370 | 28 |
| 148 | 2375 | 32 |
| 148 | 2378 | 33 |
| 148 | 2394 | 36 |
| 148 | 2721 | 5 |
| 148 | 2725 | 4 |
| 148 | 2761 | 19 |
| 148 | 2782 | 31 |
| 148 | 3193 | 6 |
| 148 | 3216 | 11 |
| 148 | 3234 | 18 |
| 148 | 3248 | 26 |
| 148 | 3252 | 29 |
| 149 | 2211 | 133 |
| 149 | 2236 | 84 |
| 149 | 2243 | 20 |
| 149 | 2245 | 108 |
| 149 | 2252 | 114 |
| 149 | 2253 | 32 |
| 149 | 2254 | 92 |
| 149 | 2257 | 94 |
| 149 | 2268 | 146 |
| 149 | 2430 | 12 |
| 149 | 2439 | 1 |
| 149 | 2457 | 6 |
| 149 | 2464 | 6 |
| 149 | 2470 | 6 |
| 149 | 2496 | 19 |
| 149 | 2522 | 22 |
| 149 | 3106 | 150 |
| 149 | 3110 | 60 |
| 149 | 3117 | 202 |
| 149 | 3123 | 70 |
| 149 | 3127 | 70 |
| 149 | 3129 | 72 |
| 149 | 3139 | 10 |
| 149 | 3143 | 87 |
| 149 | 3150 | 13 |
| 149 | 3155 | 88 |
| 149 | 3165 | 18 |
| 149 | 3170 | 20 |
| 149 | 3172 | 20 |
| 149 | 3173 | 23 |
| 150 | 2289 | 150 |
| 150 | 2293 | 90 |
| 150 | 2308 | 96 |
| 150 | 2330 | 105 |
| 150 | 2350 | 112 |
| 151 | 3106 | 180 |
| 151 | 3112 | 18 |
| 151 | 3123 | 21 |
| 151 | 3129 | 22 |
| 151 | 3143 | 30 |
| 151 | 3155 | 33 |
| 151 | 3165 | 43 |
| 151 | 3167 | 47 |
| 152 | 1910 | 4 |
| 152 | 1912 | 2 |
| 152 | 1948 | 16 |
| 153 | 1787 | 5 |
| 153 | 1791 | 3 |
| 153 | 1797 | 7 |
| 153 | 1799 | 10 |
| 153 | 1808 | 15 |
| 153 | 1820 | 18 |
| 153 | 1822 | 23 |
| 154 | 3106 | 63 |
| 154 | 3112 | 57 |
| 154 | 3117 | 58 |
| 154 | 3124 | 63 |
| 154 | 3133 | 66 |
| 154 | 3139 | 68 |
| 154 | 3150 | 72 |
| 154 | 3155 | 77 |
| 154 | 3165 | 81 |
| 155 | 3051 | 10 |
| 155 | 3060 | 2 |
| 155 | 3064 | 5 |
| 155 | 3069 | 8 |
| 155 | 3077 | 8 |
| 155 | 3082 | 10 |
| 155 | 3086 | 13 |
| 155 | 3087 | 14 |
| 155 | 3091 | 19 |
| 155 | 3099 | 19 |
| 155 | 3108 | 30 |
| 156 | 2211 | 110 |
| 156 | 2243 | 27 |
| 156 | 2252 | 30 |
| 156 | 2255 | 34 |
| 156 | 2264 | 34 |
| 156 | 2268 | 37 |
| 156 | 2270 | 41 |
| 157 | 2471 | 5 |
| 157 | 2537 | 23 |
| 157 | 2594 | 27 |
| 158 | 2289 | 120 |
| 158 | 2293 | 12 |
| 158 | 2299 | 15 |
| 158 | 2302 | 17 |
| 158 | 2308 | 17 |
| 158 | 2311 | 20 |
| 158 | 2316 | 24 |
| 158 | 2326 | 27 |
| 158 | 2330 | 28 |
| 158 | 2335 | 33 |
| 158 | 2359 | 38 |
| 159 | 2976 | 4 |
| 159 | 2982 | 1 |
| 159 | 2986 | 4 |
| 159 | 2999 | 16 |
| 159 | 3003 | 19 |
| 160 | 2492 | 4 |
| 160 | 2496 | 3 |
| 161 | 2536 | 8 |
| 162 | 2522 | 5 |
| 163 | 2721 | 6 |
| 163 | 2808 | 37 |
| 164 | 2638 | 9 |
| 165 | 2721 | 5 |
| 165 | 2752 | 18 |
| 165 | 2761 | 21 |
| 166 | 2751 | 3 |
| 166 | 2761 | 1 |
| 166 | 2783 | 10 |
| 167 | 2810 | 8 |
| 168 | 2976 | 10 |
| 168 | 2982 | 5 |
| 168 | 2986 | 6 |
| 168 | 2995 | 8 |
| 168 | 3003 | 15 |
| 168 | 3051 | 21 |
| 169 | 3082 | 2 |
| 169 | 3086 | 2 |
| 169 | 3097 | 6 |
| 169 | 3099 | 7 |
| 169 | 3101 | 8 |
| 169 | 3106 | 11 |
| 169 | 3112 | 17 |
| 169 | 3123 | 17 |
| 169 | 3124 | 17 |
| 169 | 3127 | 18 |
| 169 | 3133 | 23 |
| 169 | 3143 | 24 |
| 170 | 3106 | 170 |
| 170 | 3114 | 68 |
| 170 | 3123 | 68 |
| 170 | 3127 | 72 |
| 170 | 3134 | 75 |
| 170 | 3139 | 79 |
| 170 | 3143 | 80 |
| 170 | 3163 | 92 |
| 170 | 3167 | 94 |
SELECT
oe.orders.customer_id,
oe.order_items.product_id,
SUM(oe.order_items.quantity) AS total_ordered
FROM
oe.orders
INNER JOIN
oe.order_items
ON oe.orders.order_id = oe.order_items.order_id
GROUP BY
oe.orders.customer_id,
oe.order_items.product_id
ORDER BY
oe.orders.customer_id,
oe.order_items.product_id;
Problem 9
For each customer ID, compute/retrieve the total number of orders placed by year. To extract the year from the order date, use EXTRACT(YEAR FROM oe.orders.order_date). Alias this derived column as “order_year.” Provide the alias of “order_count” to the number of orders placed by the customer for each year. Sort the result set by customer ID (ascending) and order year (ascending).
oe.orders
| CUSTOMER_ID | ORDER_YEAR | ORDER_COUNT |
|---|---|---|
| 101 | 2007 | 2 |
| 101 | 2008 | 2 |
| 102 | 2006 | 1 |
| 102 | 2007 | 3 |
| 103 | 2006 | 2 |
| 103 | 2007 | 2 |
| 104 | 2006 | 1 |
| 104 | 2007 | 2 |
| 104 | 2008 | 1 |
| 105 | 2007 | 2 |
| 105 | 2008 | 2 |
| 106 | 2004 | 1 |
| 106 | 2006 | 1 |
| 106 | 2008 | 2 |
| 107 | 2006 | 1 |
| 107 | 2007 | 3 |
| 108 | 2006 | 2 |
| 108 | 2007 | 2 |
| 109 | 2007 | 3 |
| 109 | 2008 | 1 |
| 116 | 2007 | 4 |
| 117 | 2006 | 1 |
| 117 | 2007 | 2 |
| 117 | 2008 | 1 |
| 118 | 2007 | 2 |
| 119 | 2007 | 1 |
| 120 | 2008 | 1 |
| 121 | 2008 | 1 |
| 122 | 2007 | 1 |
| 123 | 2007 | 1 |
| 141 | 2007 | 1 |
| 142 | 2007 | 1 |
| 143 | 2007 | 1 |
| 144 | 2006 | 1 |
| 144 | 2007 | 3 |
| 144 | 2008 | 1 |
| 145 | 2007 | 4 |
| 145 | 2008 | 1 |
| 146 | 2007 | 4 |
| 146 | 2008 | 1 |
| 147 | 2006 | 2 |
| 147 | 2007 | 3 |
| 148 | 2006 | 1 |
| 148 | 2007 | 3 |
| 148 | 2008 | 1 |
| 149 | 2007 | 4 |
| 149 | 2008 | 1 |
| 150 | 2007 | 1 |
| 151 | 2008 | 1 |
| 152 | 2007 | 1 |
| 153 | 2006 | 1 |
| 154 | 2007 | 1 |
| 155 | 2008 | 1 |
| 156 | 2006 | 1 |
| 157 | 2007 | 1 |
| 158 | 2007 | 1 |
| 159 | 2007 | 1 |
| 160 | 2007 | 1 |
| 161 | 2007 | 1 |
| 162 | 2007 | 1 |
| 163 | 2007 | 1 |
| 164 | 2007 | 1 |
| 165 | 2007 | 1 |
| 166 | 2007 | 1 |
| 167 | 2007 | 1 |
| 168 | 2008 | 1 |
| 169 | 2007 | 1 |
| 170 | 2006 | 1 |
SELECT
oe.orders.customer_id,
EXTRACT(YEAR FROM oe.orders.order_date) AS order_year,
COUNT(*) AS order_count
FROM
oe.orders
GROUP BY
oe.orders.customer_id,
EXTRACT(YEAR FROM oe.orders.order_date)
ORDER BY
oe.orders.customer_id,
order_year;
Problem 10
For each category ID, retrieve the category ID, parent category ID, category name, category description, parent category name, and parent category description. Include all category IDs even if a parent category doesn’t exist. Each row should consist of child category and parent category (i.e., 1 level above the child) data. Alias the parent category name as “parent_category_name” and the parent category description as “parent_category_description.” Sort the result set by the child category ID, ascending.
oe.categories_tab
| CATEGORY_ID | PARENT_CATEGORY_ID | CATEGORY_NAME | CATEGORY_DESCRIPTION | PARENT_CATEGORY_NAME | PARENT_CATEGORY_DESCRIPTION |
|---|---|---|---|---|---|
| 10 | 90 | hardware | computer hardware and peripherals | online catalog | catalog of computer hardware, software, and office equipment |
| 11 | 10 | hardware1 | monitors | hardware | computer hardware and peripherals |
| 12 | 10 | hardware2 | printers | hardware | computer hardware and peripherals |
| 13 | 10 | hardware3 | harddisks | hardware | computer hardware and peripherals |
| 14 | 10 | hardware4 | memory components/upgrades | hardware | computer hardware and peripherals |
| 15 | 10 | hardware5 | processors, sound and video cards, network cards, motherboards | hardware | computer hardware and peripherals |
| 16 | 10 | hardware6 | keyboards, mouses, mouse pads | hardware | computer hardware and peripherals |
| 17 | 10 | hardware7 | other peripherals (CD-ROM, DVD, tape cartridge drives, …) | hardware | computer hardware and peripherals |
| 19 | 10 | hardware8 | miscellaneous hardware (cables, screws, power supplies …) | hardware | computer hardware and peripherals |
| 20 | 90 | software | computer software | online catalog | catalog of computer hardware, software, and office equipment |
| 21 | 20 | software1 | spreadsheet software | software | computer software |
| 22 | 20 | software2 | word processing software | software | computer software |
| 23 | 20 | software3 | database software | software | computer software |
| 24 | 20 | software4 | operating systems | software | computer software |
| 25 | 20 | software5 | software development tools (including languages) | software | computer software |
| 29 | 20 | software6 | miscellaneous software | software | computer software |
| 30 | 90 | office equipment | office furniture and supplies | online catalog | catalog of computer hardware, software, and office equipment |
| 31 | 30 | office1 | capitalizable assets (desks, chairs, phones …) | office equipment | office furniture and supplies |
| 32 | 30 | office2 | office supplies for daily use (pencils, erasers, staples, …) | office equipment | office furniture and supplies |
| 33 | 30 | office3 | manuals, other books | office equipment | office furniture and supplies |
| 39 | 30 | office4 | miscellaneous office supplies | office equipment | office furniture and supplies |
| 90 | – | online catalog | catalog of computer hardware, software, and office equipment | – | – |
SELECT
child_category.category_id,
child_category.parent_category_id,
child_category.category_name,
child_category.category_description,
parent_category.category_name AS parent_category_name,
parent_category.category_description AS parent_category_description
FROM
oe.categories_tab child_category
LEFT JOIN
oe.categories_tab parent_category
ON child_category.parent_category_id = parent_category.category_id
ORDER BY
child_category.category_id;
Problem 11
For customer ID 105, retrieve the customer ID, customer first name, customer last name, order ID, line-item ID, product ID, product name, product description, unit price, and quantity for orders containing a line-item with a product name starting with “RAM.”
oe.customers
oe.orders
oe.order_items
oe.product_information
| CUSTOMER_ID | CUST_FIRST_NAME | CUST_LAST_NAME | ORDER_ID | LINE_ITEM_ID | PRODUCT_ID | PRODUCT_NAME | PRODUCT_DESCRIPTION | UNIT_PRICE | QUANTITY |
|---|---|---|---|---|---|---|---|---|---|
| 105 | Matthias | MacGraw | 2356 | 2 | 2274 | RAM – 32 MB | Memory SIMM: RAM – 32 MB capacity. | 148.5 | 34 |
SELECT
oe.customers.customer_id,
oe.customers.cust_first_name,
oe.customers.cust_last_name,
oe.orders.order_id,
oe.order_items.line_item_id,
oe.order_items.product_id,
oe.product_information.product_name,
oe.product_information.product_description,
oe.order_items.unit_price,
oe.order_items.quantity
FROM
oe.customers
INNER JOIN
oe.orders
ON oe.customers.customer_id = oe.orders.customer_id
AND oe.customers.customer_id = 105
INNER JOIN
oe.order_items
ON oe.orders.order_id = oe.order_items.order_id
INNER JOIN
oe.product_information
ON oe.order_items.product_id = oe.product_information.product_id
AND oe.product_information.product_name LIKE 'RAM%';
Problem 12
For each customer, compute/retrieve the average order total for the customer’s orders. Only include customers that have placed at least 1 order. Customer ID should be the first column in your output. Alias the average order total as “avg_order_total.” Sort the result set by average order total, descending.
oe.orders
| CUSTOMER_ID | AVG_ORDER_TOTAL |
|---|---|
| 150 | 282694.3 |
| 122 | 103834.4 |
| 149 | 80623.94 |
| 147 | 74255.64 |
| 159 | 69286.4 |
| 156 | 68501 |
| 170 | 66816 |
| 109 | 66313.9 |
| 108 | 53349.925 |
| 118 | 50495.9 |
| 153 | 48070.6 |
| 101 | 47598.775 |
| 168 | 45175 |
| 117 | 39452.175 |
| 107 | 38903.3 |
| 141 | 38017.8 |
| 148 | 37140.1 |
| 104 | 36651.375 |
| 144 | 32056.92 |
| 143 | 27132.6 |
| 154 | 26632 |
| 142 | 25691.3 |
| 158 | 25270.3 |
| 155 | 23431.9 |
| 146 | 17692.52 |
| 151 | 17620 |
| 102 | 17302.85 |
| 119 | 16447.2 |
| 169 | 15760.5 |
| 105 | 15344.125 |
| 145 | 14343.58 |
| 123 | 11006.2 |
| 106 | 9049.875 |
| 116 | 8076.75 |
| 152 | 7616.8 |
| 157 | 7110.3 |
| 103 | 5147.85 |
| 121 | 4797 |
| 165 | 2519 |
| 164 | 1233 |
| 160 | 969.2 |
| 161 | 600 |
| 163 | 510 |
| 120 | 416 |
| 166 | 309 |
| 162 | 220 |
| 167 | 48 |
SELECT
oe.orders.customer_id,
AVG(oe.orders.order_total) AS avg_order_total
FROM
oe.orders
GROUP BY
oe.orders.customer_id
ORDER BY
avg_order_total DESC;
Problem 13
Compute/retrieve the number of orders place by customer income level. Include income levels even if no orders have been placed by customers with the corresponding income level. The income level category should be the first column in your result set. Alias the number of orders as “order_count.” Sort the result set by income level, ascending.
oe.customers
oe.orders
| INCOME_LEVEL | ORDER_COUNT |
|---|---|
| A: Below 30,000 | 6 |
| B: 30,000 – 49,999 | 5 |
| C: 50,000 – 69,999 | 5 |
| D: 70,000 – 89,999 | 8 |
| E: 90,000 – 109,999 | 5 |
| F: 110,000 – 129,999 | 30 |
| G: 130,000 – 149,999 | 15 |
| H: 150,000 – 169,999 | 17 |
| I: 170,000 – 189,999 | 6 |
| J: 190,000 – 249,999 | 2 |
| K: 250,000 – 299,999 | 0 |
| L: 300,000 and above | 6 |
SELECT
oe.customers.income_level,
COUNT(oe.orders.order_id) AS order_count
FROM
oe.customers
LEFT JOIN
oe.orders
ON oe.customers.customer_id = oe.orders.customer_id
GROUP BY
oe.customers.income_level
ORDER BY
oe.customers.income_level;
Problem 14
Write a query that returns a result set containing the customer ID, customer first name, customer last name, order ID, and order total for each customer order. Only include orders for married customers located in America. Sort the result set by order date, descending.
oe.customers
oe.orders
| CUSTOMER_ID | CUST_FIRST_NAME | CUST_LAST_NAME | ORDER_ID | ORDER_DATE | ORDER_TOTAL |
|---|---|---|---|---|---|
| 101 | Constantin | Welles | 2447 | 27-JUL-08 08.59.10.223344 AM | 33893.6 |
| 148 | Gustav | Steenburgen | 2367 | 27-JUN-08 09.53.32.335522 PM | 144054.8 |
| 117 | Guillaume | Edwards | 2370 | 27-JUN-08 12.22.11.647398 AM | 126 |
| 144 | Sivaji | Landis | 2382 | 14-MAY-08 10.19.03.828321 AM | 71173 |
| 146 | Elia | Fawcett | 2384 | 12-MAY-08 12.22.34.525972 PM | 29249.1 |
| 101 | Constantin | Welles | 2413 | 29-MAR-08 01.34.04.525934 PM | 48552 |
| 121 | Dianne | Sen | 2374 | 27-FEB-08 02.41.45.109654 AM | 4797 |
| 155 | Frederico | Romero | 2393 | 10-FEB-08 07.53.19.528202 PM | 23431.9 |
| 105 | Matthias | MacGraw | 2356 | 26-JAN-08 09.22.41.934562 AM | 29473.8 |
| 105 | Matthias | MacGraw | 2358 | 08-JAN-08 05.03.12.654278 PM | 7826 |
| 148 | Gustav | Steenburgen | 2451 | 17-DEC-07 05.03.52.562632 PM | 10474.6 |
| 144 | Sivaji | Landis | 2422 | 16-DEC-07 08.19.55.462332 PM | 11188.5 |
| 148 | Gustav | Steenburgen | 2386 | 06-DEC-07 12.22.34.225609 PM | 21116.9 |
| 146 | Elia | Fawcett | 2424 | 21-NOV-07 10.22.33.263332 AM | 13824 |
| 158 | Frederico | Lyon | 2399 | 19-NOV-07 10.22.38.340990 PM | 25270.3 |
| 152 | Dieter | Matthau | 2390 | 18-NOV-07 04.18.50.546851 PM | 7616.8 |
| 107 | Matthias | Cruise | 2360 | 14-NOV-07 12.22.31.223344 PM | 990.4 |
| 108 | Meenakshi | Mason | 2361 | 13-NOV-07 01.34.21.986210 PM | 120131.3 |
| 117 | Guillaume | Edwards | 2429 | 10-NOV-07 03.49.25.526321 AM | 50125 |
| 144 | Sivaji | Landis | 2363 | 23-OCT-07 05.49.56.346122 PM | 10082.3 |
| 103 | Manisha | Taylor | 2454 | 02-OCT-07 05.49.34.678340 PM | 6653.4 |
| 101 | Constantin | Welles | 2430 | 02-OCT-07 06.18.36.663332 AM | 29669.9 |
| 103 | Manisha | Taylor | 2433 | 13-SEP-07 10.19.00.654279 AM | 78 |
| 144 | Sivaji | Landis | 2435 | 02-SEP-07 11.22.53.134567 PM | 62303 |
| 107 | Matthias | Cruise | 2440 | 31-AUG-07 09.53.06.008765 PM | 70576.9 |
| 105 | Matthias | MacGraw | 2439 | 31-AUG-07 10.19.37.811132 AM | 22150.1 |
| 146 | Elia | Fawcett | 2365 | 28-AUG-07 07.03.34.003399 PM | 27455.3 |
| 101 | Constantin | Welles | 2458 | 16-AUG-07 03.34.12.234359 PM | 78279.6 |
| 117 | Guillaume | Edwards | 2446 | 27-JUL-07 07.03.08.302945 AM | 103679.3 |
| 160 | Eddie | Stern | 2401 | 10-JUL-07 02.22.53.554822 AM | 969.2 |
| 159 | Eddie | Boyer | 2400 | 10-JUL-07 01.34.29.559387 AM | 69286.4 |
| 164 | Charlotte | Kazan | 2405 | 01-JUL-07 04.49.13.678123 PM | 1233 |
| 162 | Ernest | George | 2403 | 01-JUL-07 04.49.13.615512 PM | 220 |
| 167 | Gerard | Hershey | 2409 | 29-JUN-07 09.53.41.984501 AM | 48 |
| 165 | Charlotte | Fonda | 2407 | 29-JUN-07 07.03.21.526005 AM | 2519 |
| 148 | Gustav | Steenburgen | 2406 | 29-JUN-07 04.41.20.098765 AM | 2854.2 |
| 146 | Elia | Fawcett | 2449 | 13-JUN-07 05.49.07.162632 PM | 86 |
| 150 | Goldie | Slater | 2388 | 04-JUN-07 04.41.12.554435 PM | 282694.3 |
| 169 | Dheeraj | Davis | 2411 | 24-MAY-07 11.22.10.548639 AM | 15760.5 |
| 142 | Sachin | Spielberg | 2378 | 24-MAY-07 08.59.10.010101 AM | 25691.3 |
| 146 | Elia | Fawcett | 2379 | 16-MAY-07 02.22.24.234567 AM | 17848.2 |
| 107 | Matthias | Cruise | 2419 | 20-MAR-07 07.03.32.764632 PM | 31574 |
| 105 | Matthias | MacGraw | 2417 | 20-MAR-07 05.49.10.974352 PM | 1926.6 |
| 108 | Meenakshi | Mason | 2420 | 13-MAR-07 08.59.43.666320 PM | 29750 |
| 119 | Maurice | Hasan | 2372 | 27-FEB-07 12.22.33.356789 AM | 16447.2 |
| 122 | Maurice | Daltrey | 2375 | 26-FEB-07 03.49.50.459233 AM | 103834.4 |
| 148 | Gustav | Steenburgen | 2426 | 17-NOV-06 12.22.11.262552 AM | 7200 |
| 117 | Guillaume | Edwards | 2456 | 07-NOV-06 07.53.25.989889 PM | 3878.4 |
| 103 | Manisha | Taylor | 2437 | 01-SEP-06 08.59.15.826132 AM | 13550 |
| 144 | Sivaji | Landis | 2445 | 27-JUL-06 03.34.38.362632 PM | 5537.8 |
| 108 | Meenakshi | Mason | 2443 | 27-JUL-06 01.34.16.562632 PM | 3646 |
| 107 | Matthias | Cruise | 2442 | 27-JUL-06 12.22.59.662632 PM | 52471.9 |
| 103 | Manisha | Taylor | 2415 | 29-MAR-06 01.34.50.545196 PM | 310 |
| 156 | Goldie | Montand | 2395 | 02-FEB-06 08.19.11.227550 PM | 68501 |
| 108 | Meenakshi | Mason | 2357 | 08-JAN-06 08.19.44.123456 PM | 59872.4 |
SELECT
oe.customers.customer_id,
oe.customers.cust_first_name,
oe.customers.cust_last_name,
oe.orders.order_id,
oe.orders.order_date,
oe.orders.order_total
FROM
oe.customers
INNER JOIN
oe.orders
ON oe.customers.customer_id = oe.orders.customer_id
WHERE
oe.customers.nls_territory = 'AMERICA'
AND oe.customers.marital_status = 'married'
ORDER BY
oe.orders.order_date DESC;
Problem 15
Write a query that returns a result set containing the order ID, order date, customer ID, line-item ID, product ID, quantity, and unit price for all line-items with a quantity greater than 200 or those line-items with a unit price greater than $2,000. If an order has 5 line-items and only 2 of the line-items meet the criteria, then only 2 rows should be returned for the order (i.e., 1 for each line-item). Sort the result set by order date, ascending.
oe.orders
oe.order_items
| ORDER_ID | ORDER_DATE | CUSTOMER_ID | LINE_ITEM_ID | PRODUCT_ID | QUANTITY | UNIT_PRICE |
|---|---|---|---|---|---|---|
| 2355 | 26-JAN-06 09.22.51.962632 AM | 104 | 9 | 2359 | 204 | 226.6 |
| 2371 | 16-MAY-07 01.34.56.113356 AM | 118 | 8 | 2350 | 32 | 2341.9 |
| 2388 | 04-JUN-07 04.41.12.554435 PM | 150 | 5 | 2350 | 112 | 2341.9 |
| 2400 | 10-JUL-07 01.34.29.559387 AM | 159 | 5 | 3003 | 19 | 2866.6 |
| 2446 | 27-JUL-07 07.03.08.302945 AM | 117 | 5 | 2350 | 39 | 2341.9 |
| 2440 | 31-AUG-07 09.53.06.008765 PM | 107 | 10 | 2350 | 24 | 2341.9 |
| 2435 | 02-SEP-07 11.22.53.134567 PM | 144 | 8 | 2350 | 24 | 2341.9 |
| 2361 | 13-NOV-07 01.34.21.986210 PM | 108 | 8 | 2359 | 208 | 248 |
| 2361 | 13-NOV-07 01.34.21.986210 PM | 108 | 9 | 2365 | 209 | 76 |
| 2385 | 08-DEC-07 11.34.11.331392 AM | 147 | 6 | 2350 | 109 | 2341.9 |
| 2410 | 24-MAY-08 10.19.51.985501 AM | 168 | 5 | 3003 | 15 | 2866.6 |
| 2367 | 27-JUN-08 09.53.32.335522 PM | 148 | 8 | 2350 | 54 | 2341.9 |
SELECT
oe.orders.order_id,
oe.orders.order_date,
oe.orders.customer_id,
oe.order_items.line_item_id,
oe.order_items.product_id,
oe.order_items.quantity,
oe.order_items.unit_price
FROM
oe.orders
INNER JOIN
oe.order_items
ON oe.orders.order_id = oe.order_items.order_id
WHERE
oe.order_items.quantity > 200
OR oe.order_items.unit_price > 2000
ORDER BY
oe.orders.order_date;
Problem 16
Write a query that returns a result set containing the customer ID, customer first name, customer last name, order ID, order date, and order total for each customer’s orders. Include customer data even if the customer hasn’t placed an order. If the customer hasn’t placed an order, then the customer’s order information should be NULL. Sort the result set by order date, ascending.
oe.customers
oe.orders
| CUSTOMER_ID | CUST_FIRST_NAME | CUST_LAST_NAME | ORDER_ID | ORDER_DATE | ORDER_TOTAL |
|---|---|---|---|---|---|
| 106 | Matthias | Hannah | 2418 | 20-MAR-04 04.18.21.862632 PM | 5546.6 |
| 108 | Meenakshi | Mason | 2357 | 08-JAN-06 08.19.44.123456 PM | 59872.4 |
| 106 | Matthias | Hannah | 2359 | 08-JAN-06 09.34.13.112233 PM | 5543.1 |
| 104 | Harrison | Sutherland | 2355 | 26-JAN-06 09.22.51.962632 AM | 94513.5 |
| 147 | Ishwarya | Roberts | 2396 | 02-FEB-06 01.34.56.345678 AM | 34930 |
| 156 | Goldie | Montand | 2395 | 02-FEB-06 08.19.11.227550 PM | 68501 |
| 153 | Divine | Sheen | 2391 | 27-FEB-06 05.03.03.828330 PM | 48070.6 |
| 170 | Harry Dean | Fonda | 2412 | 29-MAR-06 10.22.09.509801 AM | 66816 |
| 103 | Manisha | Taylor | 2415 | 29-MAR-06 01.34.50.545196 PM | 310 |
| 107 | Matthias | Cruise | 2442 | 27-JUL-06 12.22.59.662632 PM | 52471.9 |
| 108 | Meenakshi | Mason | 2443 | 27-JUL-06 01.34.16.562632 PM | 3646 |
| 144 | Sivaji | Landis | 2445 | 27-JUL-06 03.34.38.362632 PM | 5537.8 |
| 103 | Manisha | Taylor | 2437 | 01-SEP-06 08.59.15.826132 AM | 13550 |
| 102 | Harrison | Pacino | 2431 | 14-SEP-06 07.03.04.763452 AM | 5610.6 |
| 117 | Guillaume | Edwards | 2456 | 07-NOV-06 07.53.25.989889 PM | 3878.4 |
| 147 | Ishwarya | Roberts | 2425 | 16-NOV-06 11.34.22.162552 PM | 1500.8 |
| 148 | Gustav | Steenburgen | 2426 | 17-NOV-06 12.22.11.262552 AM | 7200 |
| 122 | Maurice | Daltrey | 2375 | 26-FEB-07 03.49.50.459233 AM | 103834.4 |
| 119 | Maurice | Hasan | 2372 | 27-FEB-07 12.22.33.356789 AM | 16447.2 |
| 149 | Markus | Rampling | 2387 | 11-MAR-07 03.34.56.536966 PM | 52758.9 |
| 109 | Christian | Cage | 2421 | 12-MAR-07 09.53.54.562432 PM | 72836 |
| 108 | Meenakshi | Mason | 2420 | 13-MAR-07 08.59.43.666320 PM | 29750 |
| 105 | Matthias | MacGraw | 2417 | 20-MAR-07 05.49.10.974352 PM | 1926.6 |
| 107 | Matthias | Cruise | 2419 | 20-MAR-07 07.03.32.764632 PM | 31574 |
| 102 | Harrison | Pacino | 2414 | 29-MAR-07 02.22.40.536996 PM | 10794.6 |
| 104 | Harrison | Sutherland | 2416 | 29-MAR-07 04.41.20.945676 PM | 384 |
| 147 | Ishwarya | Roberts | 2450 | 11-APR-07 06.18.10.362632 PM | 1636 |
| 118 | Maurice | Mahoney | 2371 | 16-MAY-07 01.34.56.113356 AM | 79405.6 |
| 146 | Elia | Fawcett | 2379 | 16-MAY-07 02.22.24.234567 AM | 17848.2 |
| 143 | Sachin | Neeson | 2380 | 16-MAY-07 09.53.02.909090 AM | 27132.6 |
| 142 | Sachin | Spielberg | 2378 | 24-MAY-07 08.59.10.010101 AM | 25691.3 |
| 169 | Dheeraj | Davis | 2411 | 24-MAY-07 11.22.10.548639 AM | 15760.5 |
| 150 | Goldie | Slater | 2388 | 04-JUN-07 04.41.12.554435 PM | 282694.3 |
| 123 | Elizabeth | Brown | 2376 | 07-JUN-07 06.18.08.883310 AM | 11006.2 |
| 141 | Maximilian | Henner | 2377 | 07-JUN-07 07.03.01.001100 AM | 38017.8 |
| 146 | Elia | Fawcett | 2449 | 13-JUN-07 05.49.07.162632 PM | 86 |
| 145 | Mammutti | Pacino | 2448 | 18-JUN-07 04.41.49.262632 PM | 1388 |
| 116 | Geraldine | Martin | 2369 | 26-JUN-07 11.22.54.009932 PM | 11097.4 |
| 148 | Gustav | Steenburgen | 2406 | 29-JUN-07 04.41.20.098765 AM | 2854.2 |
| 165 | Charlotte | Fonda | 2407 | 29-JUN-07 07.03.21.526005 AM | 2519 |
| 166 | Dheeraj | Alexander | 2408 | 29-JUN-07 08.59.31.333617 AM | 309 |
| 167 | Gerard | Hershey | 2409 | 29-JUN-07 09.53.41.984501 AM | 48 |
| 162 | Ernest | George | 2403 | 01-JUL-07 04.49.13.615512 PM | 220 |
| 163 | Ernest | Chandar | 2404 | 01-JUL-07 04.49.13.664085 PM | 510 |
| 164 | Charlotte | Kazan | 2405 | 01-JUL-07 04.49.13.678123 PM | 1233 |
| 161 | Ernest | Weaver | 2402 | 02-JUL-07 03.34.44.665170 AM | 600 |
| 159 | Eddie | Boyer | 2400 | 10-JUL-07 01.34.29.559387 AM | 69286.4 |
| 160 | Eddie | Stern | 2401 | 10-JUL-07 02.22.53.554822 AM | 969.2 |
| 154 | Frederic | Grodin | 2392 | 21-JUL-07 08.59.57.571057 PM | 26632 |
| 117 | Guillaume | Edwards | 2446 | 27-JUL-07 07.03.08.302945 AM | 103679.3 |
| 109 | Christian | Cage | 2444 | 27-JUL-07 02.22.27.462632 PM | 77727.2 |
| 101 | Constantin | Welles | 2458 | 16-AUG-07 03.34.12.234359 PM | 78279.6 |
| 145 | Mammutti | Pacino | 2364 | 28-AUG-07 06.18.45.942399 PM | 9500 |
| 146 | Elia | Fawcett | 2365 | 28-AUG-07 07.03.34.003399 PM | 27455.3 |
| 147 | Ishwarya | Roberts | 2366 | 28-AUG-07 08.59.23.144778 PM | 37319.4 |
| 105 | Matthias | MacGraw | 2439 | 31-AUG-07 10.19.37.811132 AM | 22150.1 |
| 107 | Matthias | Cruise | 2440 | 31-AUG-07 09.53.06.008765 PM | 70576.9 |
| 104 | Harrison | Sutherland | 2438 | 01-SEP-07 09.53.26.934626 AM | 5451 |
| 116 | Geraldine | Martin | 2436 | 02-SEP-07 06.18.04.378034 AM | 6394.8 |
| 144 | Sivaji | Landis | 2435 | 02-SEP-07 11.22.53.134567 PM | 62303 |
| 149 | Markus | Rampling | 2434 | 13-SEP-07 05.49.30.647893 AM | 268651.8 |
| 103 | Manisha | Taylor | 2433 | 13-SEP-07 10.19.00.654279 AM | 78 |
| 102 | Harrison | Pacino | 2432 | 14-SEP-07 09.53.40.223345 AM | 10523 |
| 145 | Mammutti | Pacino | 2455 | 20-SEP-07 11.34.11.456789 AM | 14087.5 |
| 101 | Constantin | Welles | 2430 | 02-OCT-07 06.18.36.663332 AM | 29669.9 |
| 103 | Manisha | Taylor | 2454 | 02-OCT-07 05.49.34.678340 PM | 6653.4 |
| 116 | Geraldine | Martin | 2453 | 04-OCT-07 09.53.34.362632 PM | 129 |
| 149 | Markus | Rampling | 2452 | 06-OCT-07 08.59.43.462632 PM | 12589 |
| 144 | Sivaji | Landis | 2363 | 23-OCT-07 05.49.56.346122 PM | 10082.3 |
| 118 | Maurice | Mahoney | 2457 | 31-OCT-07 11.22.16.162632 PM | 21586.2 |
| 149 | Markus | Rampling | 2427 | 10-NOV-07 01.34.22.362124 AM | 9055 |
| 116 | Geraldine | Martin | 2428 | 10-NOV-07 02.41.34.463567 AM | 14685.8 |
| 117 | Guillaume | Edwards | 2429 | 10-NOV-07 03.49.25.526321 AM | 50125 |
| 108 | Meenakshi | Mason | 2361 | 13-NOV-07 01.34.21.986210 PM | 120131.3 |
| 109 | Christian | Cage | 2362 | 13-NOV-07 02.41.10.619477 PM | 92829.4 |
| 107 | Matthias | Cruise | 2360 | 14-NOV-07 12.22.31.223344 PM | 990.4 |
| 152 | Dieter | Matthau | 2390 | 18-NOV-07 04.18.50.546851 PM | 7616.8 |
| 102 | Harrison | Pacino | 2397 | 19-NOV-07 02.41.54.696211 PM | 42283.2 |
| 157 | Sidney | Capshaw | 2398 | 19-NOV-07 09.22.53.224175 PM | 7110.3 |
| 158 | Frederico | Lyon | 2399 | 19-NOV-07 10.22.38.340990 PM | 25270.3 |
| 146 | Elia | Fawcett | 2424 | 21-NOV-07 10.22.33.263332 AM | 13824 |
| 145 | Mammutti | Pacino | 2423 | 21-NOV-07 10.22.33.362632 AM | 10367.7 |
| 148 | Gustav | Steenburgen | 2386 | 06-DEC-07 12.22.34.225609 PM | 21116.9 |
| 147 | Ishwarya | Roberts | 2385 | 08-DEC-07 11.34.11.331392 AM | 295892 |
| 144 | Sivaji | Landis | 2422 | 16-DEC-07 08.19.55.462332 PM | 11188.5 |
| 148 | Gustav | Steenburgen | 2451 | 17-DEC-07 05.03.52.562632 PM | 10474.6 |
| 105 | Matthias | MacGraw | 2358 | 08-JAN-08 05.03.12.654278 PM | 7826 |
| 105 | Matthias | MacGraw | 2356 | 26-JAN-08 09.22.41.934562 AM | 29473.8 |
| 155 | Frederico | Romero | 2393 | 10-FEB-08 07.53.19.528202 PM | 23431.9 |
| 109 | Christian | Cage | 2394 | 10-FEB-08 09.22.35.564789 PM | 21863 |
| 120 | Diane | Higgins | 2373 | 27-FEB-08 01.34.51.220065 AM | 416 |
| 121 | Dianne | Sen | 2374 | 27-FEB-08 02.41.45.109654 AM | 4797 |
| 101 | Constantin | Welles | 2413 | 29-MAR-08 01.34.04.525934 PM | 48552 |
| 145 | Mammutti | Pacino | 2383 | 12-MAY-08 11.22.30.545103 AM | 36374.7 |
| 146 | Elia | Fawcett | 2384 | 12-MAY-08 12.22.34.525972 PM | 29249.1 |
| 144 | Sivaji | Landis | 2382 | 14-MAY-08 10.19.03.828321 AM | 71173 |
| 106 | Matthias | Hannah | 2381 | 14-MAY-08 08.59.08.843679 PM | 23034.6 |
| 168 | Hema | Voight | 2410 | 24-MAY-08 10.19.51.985501 AM | 45175 |
| 151 | Divine | Aykroyd | 2389 | 04-JUN-08 05.49.43.546954 PM | 17620 |
| 149 | Markus | Rampling | 2368 | 26-JUN-08 10.19.43.190089 PM | 60065 |
| 117 | Guillaume | Edwards | 2370 | 27-JUN-08 12.22.11.647398 AM | 126 |
| 148 | Gustav | Steenburgen | 2367 | 27-JUN-08 09.53.32.335522 PM | 144054.8 |
| 104 | Harrison | Sutherland | 2354 | 14-JUL-08 06.18.23.234567 PM | 46257 |
| 101 | Constantin | Welles | 2447 | 27-JUL-08 08.59.10.223344 AM | 33893.6 |
| 106 | Matthias | Hannah | 2441 | 01-AUG-08 11.22.48.734526 AM | 2075.2 |
| 171 | Hema | Powell | – | – | – |
| 172 | Harry Mean | Peckinpah | – | – | – |
| 174 | Blake | Seignier | – | – | – |
| 175 | Claude | Powell | – | – | – |
| 176 | Faye | Glenn | – | – | – |
| 177 | Gerhard | Seignier | – | – | – |
| 179 | Harry dean | Forrest | – | – | – |
| 180 | Harry dean | Cage | – | – | – |
| 181 | Lauren | Hershey | – | – | – |
| 183 | Lauren | Altman | – | – | – |
| 184 | Mary Beth | Roberts | – | – | – |
| 262 | Fred | Reynolds | – | – | – |
| 263 | Fred | Lithgow | – | – | – |
| 265 | Irene | Laughton | – | – | – |
| 266 | Prem | Cardinale | – | – | – |
| 267 | Prem | Walken | – | – | – |
| 268 | Kyle | Schneider | – | – | – |
| 270 | Meg | Derek | – | – | – |
| 271 | Shelley | Peckinpah | – | – | – |
| 272 | Prem | Garcia | – | – | – |
| 274 | Bob | McCarthy | – | – | – |
| 275 | Dom | McQueen | – | – | – |
| 276 | Dom | Hoskins | – | – | – |
| 110 | Charlie | Sutherland | – | – | – |
| 111 | Charlie | Pacino | – | – | – |
| 112 | Guillaume | Jackson | – | – | – |
| 113 | Daniel | Costner | – | – | – |
| 114 | Dianne | Derek | – | – | – |
| 115 | Geraldine | Schneider | – | – | – |
| 185 | Matthew | Wright | – | – | – |
| 186 | Meena | Alexander | – | – | – |
| 188 | Charlotte | Buckley | – | – | – |
| 277 | Don | Siegel | – | – | – |
| 278 | Gvtz | Bradford | – | – | – |
| 279 | Holly | Kurosawa | – | – | – |
| 280 | Rob | MacLaine | – | – | – |
| 281 | Don | Barkin | – | – | – |
| 282 | Kurt | Danson | – | – | – |
| 283 | Kurt | Heard | – | – | – |
| 308 | Glenda | Dunaway | – | – | – |
| 309 | Glenda | Bates | – | – | – |
| 323 | Goetz | Falk | – | – | – |
| 326 | Hal | Olin | – | – | – |
| 327 | Hannah | Kanth | – | – | – |
| 328 | Hannah | Field | – | – | – |
| 333 | Margret | Powell | – | – | – |
| 334 | Harry Mean | Taylor | – | – | – |
| 335 | Margrit | Garner | – | – | – |
| 337 | Maria | Warden | – | – | – |
| 361 | Marilou | Chapman | – | – | – |
| 363 | Kathy | Lambert | – | – | – |
| 360 | Helmut | Capshaw | – | – | – |
| 341 | Keir | George | – | – | – |
| 342 | Marlon | Laughton | – | – | – |
| 343 | Keir | Chandar | – | – | – |
| 345 | Keir | Weaver | – | – | – |
| 346 | Marlon | Clapton | – | – | – |
| 347 | Kelly | Quinlan | – | – | – |
| 349 | Ken | Glenn | – | – | – |
| 350 | Ken | Chopra | – | – | – |
| 351 | Ken | Wenders | – | – | – |
| 380 | Meryl | Holden | – | – | – |
| 447 | Richard | Coppola | – | – | – |
| 448 | Richard | Winters | – | – | – |
| 450 | Rick | Lyon | – | – | – |
| 451 | Ridley | Hackman | – | – | – |
| 452 | Ridley | Coyote | – | – | – |
| 454 | Rob | Russell | – | – | – |
| 458 | Robert | de Niro | – | – | – |
| 466 | Rodolfo | Hershey | – | – | – |
| 467 | Rodolfo | Dench | – | – | – |
| 468 | Rodolfo | Altman | – | – | – |
| 189 | Gena | Harris | – | – | – |
| 190 | Gena | Curtis | – | – | – |
| 191 | Maureen | Sanders | – | – | – |
| 192 | Sean | Stockwell | – | – | – |
| 193 | Harry dean | Kinski | – | – | – |
| 194 | Kathleen | Garcia | – | – | – |
| 195 | Sean | Olin | – | – | – |
| 196 | Gerard | Dench | – | – | – |
| 197 | Gerard | Altman | – | – | – |
| 198 | Maureen | de Funes | – | – | – |
| 199 | Clint | Chapman | – | – | – |
| 200 | Clint | Gielgud | – | – | – |
| 201 | Eric | Prashant | – | – | – |
| 202 | Ingrid | Welles | – | – | – |
| 203 | Ingrid | Rampling | – | – | – |
| 204 | Cliff | Puri | – | – | – |
| 205 | Emily | Pollack | – | – | – |
| 206 | Fritz | Hackman | – | – | – |
| 207 | Cybill | Laughton | – | – | – |
| 208 | Cyndi | Griem | – | – | – |
| 209 | Cyndi | Collins | – | – | – |
| 210 | Cybill | Clapton | – | – | – |
| 211 | Luchino | Jordan | – | – | – |
| 213 | Luchino | Bradford | – | – | – |
| 214 | Robin | Danson | – | – | – |
| 215 | Orson | Perkins | – | – | – |
| 216 | Orson | Koirala | – | – | – |
| 218 | Bryan | Dvrrie | – | – | – |
| 219 | Ajay | Sen | – | – | – |
| 220 | Carol | Jordan | – | – | – |
| 221 | Carol | Bradford | – | – | – |
| 223 | Cary | Olin | – | – | – |
| 224 | Clara | Krige | – | – | – |
| 225 | Clara | Ganesan | – | – | – |
| 227 | Kathy | Prashant | – | – | – |
| 228 | Graham | Neeson | – | – | – |
| 229 | Ian | Chapman | – | – | – |
| 230 | Danny | Wright | – | – | – |
| 232 | Donald | Hunter | – | – | – |
| 233 | Graham | Spielberg | – | – | – |
| 234 | Dan | Roberts | – | – | – |
| 235 | Edward | Oates | – | – | – |
| 236 | Edward | Julius | – | – | – |
| 237 | Farrah | Quinlan | – | – | – |
| 238 | Farrah | Lange | – | – | – |
| 239 | Hal | Stockwell | – | – | – |
| 240 | Malcolm | Kanth | – | – | – |
| 241 | Malcolm | Broderick | – | – | – |
| 242 | Mary | Lemmon | – | – | – |
| 243 | Mary | Collins | – | – | – |
| 244 | Matt | Gueney | – | – | – |
| 245 | Max | von Sydow | – | – | – |
| 246 | Max | Schell | – | – | – |
| 247 | Cynda | Whitcraft | – | – | – |
| 248 | Donald | Minnelli | – | – | – |
| 249 | Hannah | Broderick | – | – | – |
| 250 | Dan | Williams | – | – | – |
| 251 | Raul | Wilder | – | – | – |
| 252 | Shah Rukh | Field | – | – | – |
| 253 | Sally | Bogart | – | – | – |
| 254 | Bruce | Bates | – | – | – |
| 256 | Ben | de Niro | – | – | – |
| 257 | Emmet | Walken | – | – | – |
| 258 | Ellen | Palin | – | – | – |
| 259 | Denholm | von Sydow | – | – | – |
| 261 | Emmet | Garcia | – | – | – |
| 124 | Diane | Mason | – | – | – |
| 125 | Dianne | Andrews | – | – | – |
| 126 | Charles | Field | – | – | – |
| 128 | Isabella | Reed | – | – | – |
| 129 | Louis | Jackson | – | – | – |
| 130 | Louis | Edwards | – | – | – |
| 131 | Doris | Dutt | – | – | – |
| 133 | Kristin | Malden | – | – | – |
| 134 | Sissy | Puri | – | – | – |
| 135 | Doris | Bel Geddes | – | – | – |
| 136 | Sissy | Warden | – | – | – |
| 138 | Mani | Fonda | – | – | – |
| 139 | Placido | Kubrick | – | – | – |
| 140 | Claudia | Kurosawa | – | – | – |
| 767 | Klaus Maria | Russell | – | – | – |
| 771 | Kris | de Niro | – | – | – |
| 826 | Alain | Barkin | – | – | – |
| 830 | Albert | Dutt | – | – | – |
| 850 | Amanda | Finney | – | – | – |
| 905 | Billy | Hershey | – | – | – |
| 911 | Bo | Dickinson | – | – | – |
| 919 | Brooke | Michalkow | – | – | – |
| 924 | Bruno | Montand | – | – | – |
| 930 | Buster | Jackson | – | – | – |
| 980 | Daniel | Loren | – | – | – |
| 473 | Rolf | Ashby | – | – | – |
| 474 | Romy | Sharif | – | – | – |
| 475 | Romy | McCarthy | – | – | – |
| 476 | Rosanne | Hopkins | – | – | – |
| 477 | Rosanne | Douglas | – | – | – |
| 478 | Rosanne | Baldwin | – | – | – |
| 479 | Roxanne | Shepherd | – | – | – |
| 480 | Roxanne | Michalkow | – | – | – |
| 481 | Roy | Hulce | – | – | – |
| 482 | Roy | Dunaway | – | – | – |
| 483 | Roy | Bates | – | – | – |
| 487 | Rufus | Dvrrie | – | – | – |
| 488 | Rufus | Belushi | – | – | – |
| 492 | Sally | Edwards | – | – | – |
| 496 | Scott | Jordan | – | – | – |
| 605 | Shammi | Pacino | – | – | – |
| 606 | Sharmila | Kazan | – | – | – |
| 609 | Shelley | Taylor | – | – | – |
| 615 | Shyam | Plummer | – | – | – |
| 621 | Silk | Kurosawa | – | – | – |
| 712 | M. Emmet | Stockwell | – | – | – |
| 713 | M. Emmet | Olin | – | – | – |
| 717 | Mammutti | Sutherland | – | – | – |
| 719 | Mani | Kazan | – | – | – |
| 721 | Mani | Buckley | – | – | – |
| 729 | Margaux | Krige | – | – | – |
| 731 | Margaux | Capshaw | – | – | – |
| 754 | Kevin | Goodman | – | – | – |
| 756 | Kevin | Wilder | – | – | – |
| 757 | Kiefer | Reynolds | – | – | – |
| 766 | Klaus | Young | – | – | – |
| 768 | Klaus Maria | MacLaine | – | – | – |
| 769 | Kris | Harris | – | – | – |
| 770 | Kris | Curtis | – | – | – |
| 772 | Kristin | Savage | – | – | – |
| 782 | Laurence | Seignier | – | – | – |
| 825 | Alain | Dreyfuss | – | – | – |
| 827 | Alain | Siegel | – | – | – |
| 828 | Alan | Minnelli | – | – | – |
| 829 | Alan | Hunter | – | – | – |
| 831 | Albert | Bel Geddes | – | – | – |
| 832 | Albert | Spacek | – | – | – |
| 833 | Alec | Moranis | – | – | – |
| 834 | Alec | Idle | – | – | – |
| 835 | Alexander | Eastwood | – | – | – |
| 836 | Alexander | Berenger | – | – | – |
| 837 | Alexander | Stanton | – | – | – |
| 838 | Alfred | Nicholson | – | – | – |
| 839 | Alfred | Johnson | – | – | – |
| 840 | Ali | Elliott | – | – | – |
| 841 | Ali | Boyer | – | – | – |
| 842 | Ali | Stern | – | – | – |
| 843 | Alice | Oates | – | – | – |
| 844 | Alice | Julius | – | – | – |
| 845 | Ally | Fawcett | – | – | – |
| 846 | Ally | Brando | – | – | – |
| 847 | Ally | Streep | – | – | – |
| 848 | Alonso | Olmos | – | – | – |
| 849 | Alonso | Kaurusmdki | – | – | – |
| 851 | Amanda | Brown | – | – | – |
| 852 | Amanda | Tanner | – | – | – |
| 853 | Amrish | Palin | – | – | – |
| 906 | Billy | Dench | – | – | – |
| 909 | Blake | Mastroianni | – | – | – |
| 912 | Bo | Ashby | – | – | – |
| 913 | Bob | Sharif | – | – | – |
| 916 | Brian | Douglas | – | – | – |
| 917 | Brian | Baldwin | – | – | – |
| 920 | Bruce | Hulce | – | – | – |
| 921 | Bruce | Dunaway | – | – | – |
| 923 | Bruno | Slater | – | – | – |
| 927 | Bryan | Belushi | – | – | – |
| 928 | Burt | Spielberg | – | – | – |
| 929 | Burt | Neeson | – | – | – |
| 931 | Buster | Edwards | – | – | – |
| 932 | Buster | Bogart | – | – | – |
| 934 | C. Thomas | Nolte | – | – | – |
| 981 | Daniel | Gueney | – | – | – |
| 127 | Charles | Broderick | – | – | – |
| 132 | Doris | Spacek | – | – | – |
| 137 | Elia | Brando | – | – | – |
| 173 | Kathleen | Walken | – | – | – |
| 178 | Grace | Belushi | – | – | – |
| 182 | Lauren | Dench | – | – | – |
| 187 | Grace | Dvrrie | – | – | – |
| 212 | Luchino | Falk | – | – | – |
| 217 | Bryan | Huston | – | – | – |
| 222 | Cary | Stockwell | – | – | – |
| 226 | Ajay | Andrews | – | – | – |
| 231 | Danny | Rourke | – | – | – |
| 255 | Brooke | Shepherd | – | – | – |
| 260 | Ellen | Khan | – | – | – |
| 264 | George | Adjani | – | – | – |
| 269 | Kyle | Martin | – | – | – |
| 273 | Bo | Hitchcock | – | – | – |
| 339 | Marilou | Landis | – | – | – |
| 344 | Marlon | Godard | – | – | – |
| 348 | Kelly | Lange | – | – | – |
| 352 | Kenneth | Redford | – | – | – |
| 378 | Meg | Sen | – | – | – |
| 449 | Rick | Romero | – | – | – |
| 453 | Ridley | Young | – | – | – |
| 463 | Robin | Adjani | – | – | – |
| 470 | Roger | Mastroianni | – | – | – |
| 607 | Sharmila | Fonda | – | – | – |
| 627 | Sivaji | Gielgud | – | – | – |
| 715 | Malcolm | Field | – | – | – |
| 727 | Margaret | Ustinov | – | – | – |
| 755 | Kevin | Cleveland | – | – | – |
SELECT
oe.customers.customer_id,
oe.customers.cust_first_name,
oe.customers.cust_last_name,
oe.orders.order_id,
oe.orders.order_date,
oe.orders.order_total
FROM
oe.customers
LEFT JOIN
oe.orders
ON oe.customers.customer_id = oe.orders.customer_id
ORDER BY
oe.orders.order_date;
Problem 17
Write a query that returns a result set containing the containing the number of orders placed for each NLS territory. Alias the number of orders placed as “order_count.” Include NLS territory values even if customers from the territory have not placed an order. Sort the result set by NLS Territory, ascending.
oe.customers
oe.orders
| NLS_TERRITORY | ORDER_COUNT |
|---|---|
| AMERICA | 105 |
| CHINA | 0 |
| GERMANY | 0 |
| INDIA | 0 |
| ITALY | 0 |
| JAPAN | 0 |
| SWITZERLAND | 0 |
| THAILAND | 0 |
SELECT
oe.customers.nls_territory,
COUNT(oe.orders.order_id) AS order_count
FROM
oe.customers
LEFT JOIN
oe.orders
ON oe.customers.customer_id = oe.orders.customer_id
GROUP BY
oe.customers.nls_territory
ORDER BY
oe.customers.nls_territory;
Problem 18
Write a query that returns a result set containing the containing the marital status, cheapest order made by a customer of the corresponding marital status, most expensive order made by a customer of the corresponding marital status, and the sum of all order total values for the corresponding marital status. Alias the cheapest order total as “cheapest_order,” most expensive order as “most_expensive_order,” and the sum of all order totals as “combined_order_total.”
oe.customers
oe.orders
| MARITAL_STATUS | CHEAPEST_ORDER | MOST_EXPENSIVE_ORDER | COMBINED_ORDER_TOTAL |
|---|---|---|---|
| married | 48 | 282694.3 | 1881952.6 |
| single | 129 | 295892 | 1786102.1 |
SELECT
oe.customers.marital_status,
MIN(oe.orders.order_total) AS cheapest_order,
MAX(oe.orders.order_total) AS most_expensive_order,
SUM(oe.orders.order_total) AS combined_order_total
FROM
oe.customers
INNER JOIN
oe.orders
ON oe.customers.customer_id = oe.orders.customer_id
GROUP BY
oe.customers.marital_status;
Problem 19
Write a query that returns a result set containing the customer ID, customer first name, customer last name, order ID, order date, and order total for all orders with an order total greater than or equal to 1.5 times the average order total. Sort the result set by order total, descending.
oe.customers
oe.orders
| CUSTOMER_ID | CUST_FIRST_NAME | CUST_LAST_NAME | ORDER_ID | ORDER_DATE | ORDER_TOTAL |
|---|---|---|---|---|---|
| 147 | Ishwarya | Roberts | 2385 | 08-DEC-07 11.34.11.331392 AM | 295892 |
| 150 | Goldie | Slater | 2388 | 04-JUN-07 04.41.12.554435 PM | 282694.3 |
| 149 | Markus | Rampling | 2434 | 13-SEP-07 05.49.30.647893 AM | 268651.8 |
| 148 | Gustav | Steenburgen | 2367 | 27-JUN-08 09.53.32.335522 PM | 144054.8 |
| 108 | Meenakshi | Mason | 2361 | 13-NOV-07 01.34.21.986210 PM | 120131.3 |
| 122 | Maurice | Daltrey | 2375 | 26-FEB-07 03.49.50.459233 AM | 103834.4 |
| 117 | Guillaume | Edwards | 2446 | 27-JUL-07 07.03.08.302945 AM | 103679.3 |
| 104 | Harrison | Sutherland | 2355 | 26-JAN-06 09.22.51.962632 AM | 94513.5 |
| 109 | Christian | Cage | 2362 | 13-NOV-07 02.41.10.619477 PM | 92829.4 |
| 118 | Maurice | Mahoney | 2371 | 16-MAY-07 01.34.56.113356 AM | 79405.6 |
| 101 | Constantin | Welles | 2458 | 16-AUG-07 03.34.12.234359 PM | 78279.6 |
| 109 | Christian | Cage | 2444 | 27-JUL-07 02.22.27.462632 PM | 77727.2 |
| 109 | Christian | Cage | 2421 | 12-MAR-07 09.53.54.562432 PM | 72836 |
| 144 | Sivaji | Landis | 2382 | 14-MAY-08 10.19.03.828321 AM | 71173 |
| 107 | Matthias | Cruise | 2440 | 31-AUG-07 09.53.06.008765 PM | 70576.9 |
| 159 | Eddie | Boyer | 2400 | 10-JUL-07 01.34.29.559387 AM | 69286.4 |
| 156 | Goldie | Montand | 2395 | 02-FEB-06 08.19.11.227550 PM | 68501 |
| 170 | Harry Dean | Fonda | 2412 | 29-MAR-06 10.22.09.509801 AM | 66816 |
| 144 | Sivaji | Landis | 2435 | 02-SEP-07 11.22.53.134567 PM | 62303 |
| 149 | Markus | Rampling | 2368 | 26-JUN-08 10.19.43.190089 PM | 60065 |
| 108 | Meenakshi | Mason | 2357 | 08-JAN-06 08.19.44.123456 PM | 59872.4 |
| 149 | Markus | Rampling | 2387 | 11-MAR-07 03.34.56.536966 PM | 52758.9 |
| 107 | Matthias | Cruise | 2442 | 27-JUL-06 12.22.59.662632 PM | 52471.9 |
SELECT
oe.customers.customer_id,
oe.customers.cust_first_name,
oe.customers.cust_last_name,
oe.orders.order_id,
oe.orders.order_date,
oe.orders.order_total
FROM
oe.orders
INNER JOIN
oe.customers
ON oe.orders.customer_id = oe.customers.customer_id
WHERE
oe.orders.order_total >= (
SELECT
AVG(oe.orders.order_total) * 1.5
FROM
oe.orders
)
ORDER BY
oe.orders.order_total DESC;
Problem 20
Write a query that returns a result set containing the details of the first order placed based on the order date. The result set should include order ID, order date, order total, line-item ID, product ID, product name, unit price, and quantity. There should be one row for each line-item. Sort the result set by line-item ID, ascending.
oe.orders
oe.order_items
oe.product_information
| ORDER_ID | ORDER_DATE | ORDER_TOTAL | LINE_ITEM_ID | PRODUCT_ID | PRODUCT_NAME | UNIT_PRICE | QUANTITY |
|---|---|---|---|---|---|---|---|
| 2418 | 20-MAR-04 04.18.21.862632 PM | 5546.6 | 1 | 3082 | Modem – 56/90/E | 75 | 15 |
| 2418 | 20-MAR-04 04.18.21.862632 PM | 5546.6 | 2 | 3090 | RAM – 48 MB | 187 | 12 |
| 2418 | 20-MAR-04 04.18.21.862632 PM | 5546.6 | 3 | 3097 | Cable Connector – 32R | 2.2 | 13 |
| 2418 | 20-MAR-04 04.18.21.862632 PM | 5546.6 | 4 | 3110 | KB 101/FR | 45 | 20 |
| 2418 | 20-MAR-04 04.18.21.862632 PM | 5546.6 | 5 | 3140 | Screws <Z.16.S> | 20 | 31 |
| 2418 | 20-MAR-04 04.18.21.862632 PM | 5546.6 | 6 | 3150 | Card Holder – 25 | 17 | 37 |
SELECT
oe.orders.order_id,
oe.orders.order_date,
oe.orders.order_total,
oe.order_items.line_item_id,
oe.order_items.product_id,
oe.product_information.product_name,
oe.order_items.unit_price,
oe.order_items.quantity
FROM
oe.orders
INNER JOIN
oe.order_items
ON oe.orders.order_id = oe.order_items.order_id
INNER JOIN
oe.product_information
ON oe.order_items.product_id = oe.product_information.product_id
WHERE
oe.orders.order_date = (
SELECT
MIN(oe.orders.order_date)
FROM
oe.orders
)
ORDER BY
oe.order_items.line_item_id;
Problem 21
Write a query that returns a result set containing details of each sales representative’s largest order based on order total. The result set should include the sales representative’s ID, the customer ID the representative made the sale to, order ID, and order total. Sort the result set by order total, descending.
oe.orders
| SALES_REP_ID | CUSTOMER_ID | ORDER_ID | ORDER_TOTAL |
|---|---|---|---|
| 161 | 149 | 2434 | 268651.8 |
| 153 | 101 | 2458 | 78279.6 |
| 155 | 109 | 2444 | 77727.2 |
| 156 | 107 | 2440 | 70576.9 |
| 163 | 156 | 2395 | 68501 |
| 158 | 170 | 2412 | 66816 |
| 159 | 144 | 2435 | 62303 |
| 154 | 107 | 2442 | 52471.9 |
| 160 | 107 | 2419 | 31574 |
SELECT
oe.orders.sales_rep_id,
oe.orders.customer_id,
oe.orders.order_id,
oe.orders.order_total
FROM
oe.orders
INNER JOIN (
SELECT
oe.orders.sales_rep_id,
MAX(oe.orders.order_total) max_order_total
FROM
oe.orders
GROUP BY
oe.orders.sales_rep_id
) max_order
ON oe.orders.sales_rep_id = max_order.sales_rep_id
AND oe.orders.order_total = max_order.max_order_total
ORDER BY
oe.orders.order_total DESC;
Problem 22
Write a query that returns a result set containing the order ID, order date, and order total for each order. Instead of using the already existing order total column in the orders table, create a derived column that takes the sum of unit price multiplied by quantity for each line item in each order. If done properly, the derived column and the original order total column will contain the same value. Alias the derived column as “manual_order_total.” Sort the result set by the derived column, descending.
oe.orders
oe.order_items
| ORDER_ID | ORDER_DATE | ORDER_TOTAL | MANUAL_ORDER_TOTAL |
|---|---|---|---|
| 2385 | 08-DEC-07 11.34.11.331392 AM | 295892 | 295892 |
| 2388 | 04-JUN-07 04.41.12.554435 PM | 282694.3 | 282694.3 |
| 2434 | 13-SEP-07 05.49.30.647893 AM | 268651.8 | 268651.8 |
| 2367 | 27-JUN-08 09.53.32.335522 PM | 144054.8 | 144054.8 |
| 2361 | 13-NOV-07 01.34.21.986210 PM | 120131.3 | 120131.3 |
| 2375 | 26-FEB-07 03.49.50.459233 AM | 103834.4 | 103834.4 |
| 2446 | 27-JUL-07 07.03.08.302945 AM | 103679.3 | 103679.3 |
| 2355 | 26-JAN-06 09.22.51.962632 AM | 94513.5 | 94513.5 |
| 2362 | 13-NOV-07 02.41.10.619477 PM | 92829.4 | 92829.4 |
| 2371 | 16-MAY-07 01.34.56.113356 AM | 79405.6 | 79405.6 |
| 2458 | 16-AUG-07 03.34.12.234359 PM | 78279.6 | 78279.6 |
| 2444 | 27-JUL-07 02.22.27.462632 PM | 77727.2 | 77727.2 |
| 2421 | 12-MAR-07 09.53.54.562432 PM | 72836 | 72836 |
| 2382 | 14-MAY-08 10.19.03.828321 AM | 71173 | 71173 |
| 2440 | 31-AUG-07 09.53.06.008765 PM | 70576.9 | 70576.9 |
| 2400 | 10-JUL-07 01.34.29.559387 AM | 69286.4 | 69286.4 |
| 2395 | 02-FEB-06 08.19.11.227550 PM | 68501 | 68501 |
| 2412 | 29-MAR-06 10.22.09.509801 AM | 66816 | 66816 |
| 2435 | 02-SEP-07 11.22.53.134567 PM | 62303 | 62303 |
| 2368 | 26-JUN-08 10.19.43.190089 PM | 60065 | 60065 |
| 2357 | 08-JAN-06 08.19.44.123456 PM | 59872.4 | 59872.4 |
| 2387 | 11-MAR-07 03.34.56.536966 PM | 52758.9 | 52758.9 |
| 2442 | 27-JUL-06 12.22.59.662632 PM | 52471.9 | 52471.9 |
| 2429 | 10-NOV-07 03.49.25.526321 AM | 50125 | 50125 |
| 2413 | 29-MAR-08 01.34.04.525934 PM | 48552 | 48552 |
| 2391 | 27-FEB-06 05.03.03.828330 PM | 48070.6 | 48070.6 |
| 2354 | 14-JUL-08 06.18.23.234567 PM | 46257 | 46257 |
| 2410 | 24-MAY-08 10.19.51.985501 AM | 45175 | 45175 |
| 2397 | 19-NOV-07 02.41.54.696211 PM | 42283.2 | 42283.2 |
| 2377 | 07-JUN-07 07.03.01.001100 AM | 38017.8 | 38017.8 |
| 2366 | 28-AUG-07 08.59.23.144778 PM | 37319.4 | 37319.4 |
| 2383 | 12-MAY-08 11.22.30.545103 AM | 36374.7 | 36374.7 |
| 2396 | 02-FEB-06 01.34.56.345678 AM | 34930 | 34930 |
| 2447 | 27-JUL-08 08.59.10.223344 AM | 33893.6 | 33893.6 |
| 2419 | 20-MAR-07 07.03.32.764632 PM | 31574 | 31574 |
| 2420 | 13-MAR-07 08.59.43.666320 PM | 29750 | 29750 |
| 2430 | 02-OCT-07 06.18.36.663332 AM | 29669.9 | 29669.9 |
| 2356 | 26-JAN-08 09.22.41.934562 AM | 29473.8 | 29473.8 |
| 2384 | 12-MAY-08 12.22.34.525972 PM | 29249.1 | 29249.1 |
| 2365 | 28-AUG-07 07.03.34.003399 PM | 27455.3 | 27455.3 |
| 2380 | 16-MAY-07 09.53.02.909090 AM | 27132.6 | 27132.6 |
| 2392 | 21-JUL-07 08.59.57.571057 PM | 26632 | 26632 |
| 2378 | 24-MAY-07 08.59.10.010101 AM | 25691.3 | 25691.3 |
| 2399 | 19-NOV-07 10.22.38.340990 PM | 25270.3 | 25270.3 |
| 2393 | 10-FEB-08 07.53.19.528202 PM | 23431.9 | 23431.9 |
| 2381 | 14-MAY-08 08.59.08.843679 PM | 23034.6 | 23034.6 |
| 2439 | 31-AUG-07 10.19.37.811132 AM | 22150.1 | 22150.1 |
| 2394 | 10-FEB-08 09.22.35.564789 PM | 21863 | 21863 |
| 2457 | 31-OCT-07 11.22.16.162632 PM | 21586.2 | 21586.2 |
| 2386 | 06-DEC-07 12.22.34.225609 PM | 21116.9 | 21116.9 |
| 2379 | 16-MAY-07 02.22.24.234567 AM | 17848.2 | 17848.2 |
| 2389 | 04-JUN-08 05.49.43.546954 PM | 17620 | 17620 |
| 2372 | 27-FEB-07 12.22.33.356789 AM | 16447.2 | 16447.2 |
| 2411 | 24-MAY-07 11.22.10.548639 AM | 15760.5 | 15760.5 |
| 2428 | 10-NOV-07 02.41.34.463567 AM | 14685.8 | 14685.8 |
| 2455 | 20-SEP-07 11.34.11.456789 AM | 14087.5 | 14087.5 |
| 2424 | 21-NOV-07 10.22.33.263332 AM | 13824 | 13824 |
| 2437 | 01-SEP-06 08.59.15.826132 AM | 13550 | 13550 |
| 2452 | 06-OCT-07 08.59.43.462632 PM | 12589 | 12589 |
| 2422 | 16-DEC-07 08.19.55.462332 PM | 11188.5 | 11188.5 |
| 2369 | 26-JUN-07 11.22.54.009932 PM | 11097.4 | 11097.4 |
| 2376 | 07-JUN-07 06.18.08.883310 AM | 11006.2 | 11006.2 |
| 2414 | 29-MAR-07 02.22.40.536996 PM | 10794.6 | 10794.6 |
| 2432 | 14-SEP-07 09.53.40.223345 AM | 10523 | 10523 |
| 2451 | 17-DEC-07 05.03.52.562632 PM | 10474.6 | 10474.6 |
| 2423 | 21-NOV-07 10.22.33.362632 AM | 10367.7 | 10367.7 |
| 2363 | 23-OCT-07 05.49.56.346122 PM | 10082.3 | 10082.3 |
| 2364 | 28-AUG-07 06.18.45.942399 PM | 9500 | 9500 |
| 2427 | 10-NOV-07 01.34.22.362124 AM | 9055 | 9055 |
| 2358 | 08-JAN-08 05.03.12.654278 PM | 7826 | 7826 |
| 2390 | 18-NOV-07 04.18.50.546851 PM | 7616.8 | 7616.8 |
| 2426 | 17-NOV-06 12.22.11.262552 AM | 7200 | 7200 |
| 2398 | 19-NOV-07 09.22.53.224175 PM | 7110.3 | 7110.3 |
| 2454 | 02-OCT-07 05.49.34.678340 PM | 6653.4 | 6653.4 |
| 2436 | 02-SEP-07 06.18.04.378034 AM | 6394.8 | 6394.8 |
| 2431 | 14-SEP-06 07.03.04.763452 AM | 5610.6 | 5610.6 |
| 2418 | 20-MAR-04 04.18.21.862632 PM | 5546.6 | 5546.6 |
| 2359 | 08-JAN-06 09.34.13.112233 PM | 5543.1 | 5543.1 |
| 2445 | 27-JUL-06 03.34.38.362632 PM | 5537.8 | 5537.8 |
| 2438 | 01-SEP-07 09.53.26.934626 AM | 5451 | 5451 |
| 2374 | 27-FEB-08 02.41.45.109654 AM | 4797 | 4797 |
| 2456 | 07-NOV-06 07.53.25.989889 PM | 3878.4 | 3878.4 |
| 2443 | 27-JUL-06 01.34.16.562632 PM | 3646 | 3646 |
| 2406 | 29-JUN-07 04.41.20.098765 AM | 2854.2 | 2854.2 |
| 2407 | 29-JUN-07 07.03.21.526005 AM | 2519 | 2519 |
| 2441 | 01-AUG-08 11.22.48.734526 AM | 2075.2 | 2075.2 |
| 2417 | 20-MAR-07 05.49.10.974352 PM | 1926.6 | 1926.6 |
| 2450 | 11-APR-07 06.18.10.362632 PM | 1636 | 1636 |
| 2425 | 16-NOV-06 11.34.22.162552 PM | 1500.8 | 1500.8 |
| 2448 | 18-JUN-07 04.41.49.262632 PM | 1388 | 1388 |
| 2405 | 01-JUL-07 04.49.13.678123 PM | 1233 | 1233 |
| 2360 | 14-NOV-07 12.22.31.223344 PM | 990.4 | 990.4 |
| 2401 | 10-JUL-07 02.22.53.554822 AM | 969.2 | 969.2 |
| 2402 | 02-JUL-07 03.34.44.665170 AM | 600 | 600 |
| 2404 | 01-JUL-07 04.49.13.664085 PM | 510 | 510 |
| 2373 | 27-FEB-08 01.34.51.220065 AM | 416 | 416 |
| 2416 | 29-MAR-07 04.41.20.945676 PM | 384 | 384 |
| 2415 | 29-MAR-06 01.34.50.545196 PM | 310 | 310 |
| 2408 | 29-JUN-07 08.59.31.333617 AM | 309 | 309 |
| 2403 | 01-JUL-07 04.49.13.615512 PM | 220 | 220 |
| 2453 | 04-OCT-07 09.53.34.362632 PM | 129 | 129 |
| 2370 | 27-JUN-08 12.22.11.647398 AM | 126 | 126 |
| 2449 | 13-JUN-07 05.49.07.162632 PM | 86 | 86 |
| 2433 | 13-SEP-07 10.19.00.654279 AM | 78 | 78 |
| 2409 | 29-JUN-07 09.53.41.984501 AM | 48 | 48 |
SELECT
oe.orders.order_id,
oe.orders.order_date,
oe.orders.order_total,
order_total.manual_order_total
FROM
oe.orders
INNER JOIN (
SELECT
oe.order_items.order_id,
SUM(oe.order_items.unit_price * oe.order_items.quantity) AS manual_order_total
FROM
oe.order_items
GROUP BY
oe.order_items.order_id
) order_total
ON oe.orders.order_id = order_total.order_id
ORDER BY
order_total.manual_order_total DESC;
Problem 23
Write a query that returns a result set containing the customer ID, order ID, and order date for each customer’s first and last order. If a customer has only made one order, then there should only be one row for the customer, otherwise two rows. Assign the same integer value to ties in order date. Use consecutive integers (e.g., 1, 1, 2, 3, 4, 4, 5). Alias any derived columns as you see fit. Sort the result set by customer ID, ascending.
oe.orders
| CUSTOMER_ID | ORDER_ID | ORDER_DATE | ORDER_DATE_SEQUENCE_ASC | ORDER_DATE_SEQUENCE_DESC |
|---|---|---|---|---|
| 101 | 2458 | 16-AUG-07 03.34.12.234359 PM | 1 | 4 |
| 101 | 2447 | 27-JUL-08 08.59.10.223344 AM | 4 | 1 |
| 102 | 2431 | 14-SEP-06 07.03.04.763452 AM | 1 | 4 |
| 102 | 2397 | 19-NOV-07 02.41.54.696211 PM | 4 | 1 |
| 103 | 2415 | 29-MAR-06 01.34.50.545196 PM | 1 | 4 |
| 103 | 2454 | 02-OCT-07 05.49.34.678340 PM | 4 | 1 |
| 104 | 2355 | 26-JAN-06 09.22.51.962632 AM | 1 | 4 |
| 104 | 2354 | 14-JUL-08 06.18.23.234567 PM | 4 | 1 |
| 105 | 2417 | 20-MAR-07 05.49.10.974352 PM | 1 | 4 |
| 105 | 2356 | 26-JAN-08 09.22.41.934562 AM | 4 | 1 |
| 106 | 2418 | 20-MAR-04 04.18.21.862632 PM | 1 | 4 |
| 106 | 2441 | 01-AUG-08 11.22.48.734526 AM | 4 | 1 |
| 107 | 2442 | 27-JUL-06 12.22.59.662632 PM | 1 | 4 |
| 107 | 2360 | 14-NOV-07 12.22.31.223344 PM | 4 | 1 |
| 108 | 2357 | 08-JAN-06 08.19.44.123456 PM | 1 | 4 |
| 108 | 2361 | 13-NOV-07 01.34.21.986210 PM | 4 | 1 |
| 109 | 2421 | 12-MAR-07 09.53.54.562432 PM | 1 | 4 |
| 109 | 2394 | 10-FEB-08 09.22.35.564789 PM | 4 | 1 |
| 116 | 2369 | 26-JUN-07 11.22.54.009932 PM | 1 | 4 |
| 116 | 2428 | 10-NOV-07 02.41.34.463567 AM | 4 | 1 |
| 117 | 2456 | 07-NOV-06 07.53.25.989889 PM | 1 | 4 |
| 117 | 2370 | 27-JUN-08 12.22.11.647398 AM | 4 | 1 |
| 118 | 2371 | 16-MAY-07 01.34.56.113356 AM | 1 | 2 |
| 118 | 2457 | 31-OCT-07 11.22.16.162632 PM | 2 | 1 |
| 119 | 2372 | 27-FEB-07 12.22.33.356789 AM | 1 | 1 |
| 120 | 2373 | 27-FEB-08 01.34.51.220065 AM | 1 | 1 |
| 121 | 2374 | 27-FEB-08 02.41.45.109654 AM | 1 | 1 |
| 122 | 2375 | 26-FEB-07 03.49.50.459233 AM | 1 | 1 |
| 123 | 2376 | 07-JUN-07 06.18.08.883310 AM | 1 | 1 |
| 141 | 2377 | 07-JUN-07 07.03.01.001100 AM | 1 | 1 |
| 142 | 2378 | 24-MAY-07 08.59.10.010101 AM | 1 | 1 |
| 143 | 2380 | 16-MAY-07 09.53.02.909090 AM | 1 | 1 |
| 144 | 2445 | 27-JUL-06 03.34.38.362632 PM | 1 | 5 |
| 144 | 2382 | 14-MAY-08 10.19.03.828321 AM | 5 | 1 |
| 145 | 2448 | 18-JUN-07 04.41.49.262632 PM | 1 | 5 |
| 145 | 2383 | 12-MAY-08 11.22.30.545103 AM | 5 | 1 |
| 146 | 2379 | 16-MAY-07 02.22.24.234567 AM | 1 | 5 |
| 146 | 2384 | 12-MAY-08 12.22.34.525972 PM | 5 | 1 |
| 147 | 2396 | 02-FEB-06 01.34.56.345678 AM | 1 | 5 |
| 147 | 2385 | 08-DEC-07 11.34.11.331392 AM | 5 | 1 |
| 148 | 2426 | 17-NOV-06 12.22.11.262552 AM | 1 | 5 |
| 148 | 2367 | 27-JUN-08 09.53.32.335522 PM | 5 | 1 |
| 149 | 2387 | 11-MAR-07 03.34.56.536966 PM | 1 | 5 |
| 149 | 2368 | 26-JUN-08 10.19.43.190089 PM | 5 | 1 |
| 150 | 2388 | 04-JUN-07 04.41.12.554435 PM | 1 | 1 |
| 151 | 2389 | 04-JUN-08 05.49.43.546954 PM | 1 | 1 |
| 152 | 2390 | 18-NOV-07 04.18.50.546851 PM | 1 | 1 |
| 153 | 2391 | 27-FEB-06 05.03.03.828330 PM | 1 | 1 |
| 154 | 2392 | 21-JUL-07 08.59.57.571057 PM | 1 | 1 |
| 155 | 2393 | 10-FEB-08 07.53.19.528202 PM | 1 | 1 |
| 156 | 2395 | 02-FEB-06 08.19.11.227550 PM | 1 | 1 |
| 157 | 2398 | 19-NOV-07 09.22.53.224175 PM | 1 | 1 |
| 158 | 2399 | 19-NOV-07 10.22.38.340990 PM | 1 | 1 |
| 159 | 2400 | 10-JUL-07 01.34.29.559387 AM | 1 | 1 |
| 160 | 2401 | 10-JUL-07 02.22.53.554822 AM | 1 | 1 |
| 161 | 2402 | 02-JUL-07 03.34.44.665170 AM | 1 | 1 |
| 162 | 2403 | 01-JUL-07 04.49.13.615512 PM | 1 | 1 |
| 163 | 2404 | 01-JUL-07 04.49.13.664085 PM | 1 | 1 |
| 164 | 2405 | 01-JUL-07 04.49.13.678123 PM | 1 | 1 |
| 165 | 2407 | 29-JUN-07 07.03.21.526005 AM | 1 | 1 |
| 166 | 2408 | 29-JUN-07 08.59.31.333617 AM | 1 | 1 |
| 167 | 2409 | 29-JUN-07 09.53.41.984501 AM | 1 | 1 |
| 168 | 2410 | 24-MAY-08 10.19.51.985501 AM | 1 | 1 |
| 169 | 2411 | 24-MAY-07 11.22.10.548639 AM | 1 | 1 |
| 170 | 2412 | 29-MAR-06 10.22.09.509801 AM | 1 | 1 |
SELECT
first_last_order.customer_id,
first_last_order.order_id,
first_last_order.order_date,
first_last_order.order_date_sequence_asc,
first_last_order.order_date_sequence_desc
FROM (
SELECT
oe.orders.customer_id,
oe.orders.order_id,
oe.orders.order_date,
DENSE_RANK() OVER (
PARTITION BY oe.orders.customer_id
ORDER BY oe.orders.order_date
) AS order_date_sequence_asc,
DENSE_RANK() OVER (
PARTITION BY oe.orders.customer_id
ORDER BY oe.orders.order_date DESC
) AS order_date_sequence_desc
FROM
oe.orders
) first_last_order
WHERE
first_last_order.order_date_sequence_asc = 1
OR first_last_order.order_date_sequence_desc = 1
ORDER BY
first_last_order.customer_id;
Problem 24
Retrieve all orders placed with an order date equal to the most recent day a customer placed an order. Include the order ID, order date, customer ID, and order total.
oe.orders
| ORDER_ID | ORDER_DATE | CUSTOMER_ID | ORDER_TOTAL |
|---|---|---|---|
| 2441 | 01-AUG-08 11.22.48.734526 AM | 106 | 2075.2 |
SELECT
oe.orders.order_id,
oe.orders.order_date,
oe.orders.customer_id,
oe.orders.order_total
FROM
oe.orders
WHERE
oe.orders.order_date = (
SELECT
MAX(oe.orders.order_date)
FROM
oe.orders
);
Problem 25
Retrieve the order(s) placed with the highest order total. Include the order ID, order date, order total, and customer ID.
oe.orders
| ORDER_ID | ORDER_DATE | ORDER_TOTAL | CUSTOMER_ID |
|---|---|---|---|
| 2385 | 08-DEC-07 11.34.11.331392 AM | 295892 | 147 |
SELECT
oe.orders.order_id,
oe.orders.order_date,
oe.orders.order_total,
oe.orders.customer_id
FROM
oe.orders
WHERE
oe.orders.order_total = (
SELECT
MAX(oe.orders.order_total)
FROM
oe.orders
);
Problem 26
Retrieve the order(s) with an order total greater than or equal to the average order total. Include the order ID, order date, order total, and customer ID. Sort the result set by order total, descending.
oe.orders
| ORDER_ID | ORDER_DATE | ORDER_TOTAL | CUSTOMER_ID |
|---|---|---|---|
| 2385 | 08-DEC-07 11.34.11.331392 AM | 295892 | 147 |
| 2388 | 04-JUN-07 04.41.12.554435 PM | 282694.3 | 150 |
| 2434 | 13-SEP-07 05.49.30.647893 AM | 268651.8 | 149 |
| 2367 | 27-JUN-08 09.53.32.335522 PM | 144054.8 | 148 |
| 2361 | 13-NOV-07 01.34.21.986210 PM | 120131.3 | 108 |
| 2375 | 26-FEB-07 03.49.50.459233 AM | 103834.4 | 122 |
| 2446 | 27-JUL-07 07.03.08.302945 AM | 103679.3 | 117 |
| 2355 | 26-JAN-06 09.22.51.962632 AM | 94513.5 | 104 |
| 2362 | 13-NOV-07 02.41.10.619477 PM | 92829.4 | 109 |
| 2371 | 16-MAY-07 01.34.56.113356 AM | 79405.6 | 118 |
| 2458 | 16-AUG-07 03.34.12.234359 PM | 78279.6 | 101 |
| 2444 | 27-JUL-07 02.22.27.462632 PM | 77727.2 | 109 |
| 2421 | 12-MAR-07 09.53.54.562432 PM | 72836 | 109 |
| 2382 | 14-MAY-08 10.19.03.828321 AM | 71173 | 144 |
| 2440 | 31-AUG-07 09.53.06.008765 PM | 70576.9 | 107 |
| 2400 | 10-JUL-07 01.34.29.559387 AM | 69286.4 | 159 |
| 2395 | 02-FEB-06 08.19.11.227550 PM | 68501 | 156 |
| 2412 | 29-MAR-06 10.22.09.509801 AM | 66816 | 170 |
| 2435 | 02-SEP-07 11.22.53.134567 PM | 62303 | 144 |
| 2368 | 26-JUN-08 10.19.43.190089 PM | 60065 | 149 |
| 2357 | 08-JAN-06 08.19.44.123456 PM | 59872.4 | 108 |
| 2387 | 11-MAR-07 03.34.56.536966 PM | 52758.9 | 149 |
| 2442 | 27-JUL-06 12.22.59.662632 PM | 52471.9 | 107 |
| 2429 | 10-NOV-07 03.49.25.526321 AM | 50125 | 117 |
| 2413 | 29-MAR-08 01.34.04.525934 PM | 48552 | 101 |
| 2391 | 27-FEB-06 05.03.03.828330 PM | 48070.6 | 153 |
| 2354 | 14-JUL-08 06.18.23.234567 PM | 46257 | 104 |
| 2410 | 24-MAY-08 10.19.51.985501 AM | 45175 | 168 |
| 2397 | 19-NOV-07 02.41.54.696211 PM | 42283.2 | 102 |
| 2377 | 07-JUN-07 07.03.01.001100 AM | 38017.8 | 141 |
| 2366 | 28-AUG-07 08.59.23.144778 PM | 37319.4 | 147 |
| 2383 | 12-MAY-08 11.22.30.545103 AM | 36374.7 | 145 |
SELECT
oe.orders.order_id,
oe.orders.order_date,
oe.orders.order_total,
oe.orders.customer_id
FROM
oe.orders
WHERE
oe.orders.order_total >= (
SELECT
AVG(oe.orders.order_total)
FROM
oe.orders
)
ORDER BY
oe.orders.order_total DESC;
Problem 27
Building onto your solution from problem 25, include the line-item ID(s), product ID(s), unit price for each line item, quantity for each line item, and the line-item total. Line-item total is defined as the quantity ordered multiplied by unit the price for the corresponding line-item. Alias this derived column as “line_item_total.” Your solution should include order ID, order date, order total, line-item ID, product ID, unit price, quantity, and line-item total.
oe.orders
oe.order_items
| ORDER_ID | ORDER_DATE | ORDER_TOTAL | LINE_ITEM_ID | PRODUCT_ID | UNIT_PRICE | QUANTITY | LINE_ITEM_TOTAL |
|---|---|---|---|---|---|---|---|
| 2385 | 08-DEC-07 11.34.11.331392 AM | 295892 | 1 | 2289 | 43 | 200 | 8600 |
| 2385 | 08-DEC-07 11.34.11.331392 AM | 295892 | 2 | 2302 | 133.1 | 87 | 11579.7 |
| 2385 | 08-DEC-07 11.34.11.331392 AM | 295892 | 3 | 2311 | 86.9 | 96 | 8342.4 |
| 2385 | 08-DEC-07 11.34.11.331392 AM | 295892 | 4 | 2319 | 25 | 97 | 2425 |
| 2385 | 08-DEC-07 11.34.11.331392 AM | 295892 | 5 | 2335 | 91.3 | 106 | 9677.8 |
| 2385 | 08-DEC-07 11.34.11.331392 AM | 295892 | 6 | 2350 | 2341.9 | 109 | 255267.1 |
SELECT
oe.orders.order_id,
oe.orders.order_date,
oe.orders.order_total,
oe.orders.customer_id,
oe.order_items.line_item_id,
oe.order_items.product_id,
oe.order_items.unit_price,
oe.order_items.quantity,
oe.order_items.unit_price * oe.order_items.quantity AS line_item_total
FROM
oe.orders
INNER JOIN
oe.order_items
ON oe.orders.order_id = oe.order_items.order_id
WHERE
oe.orders.order_total = (
SELECT
MAX(oe.orders.order_total)
FROM
oe.orders
);
Problem 28
Retrieve the customer ID(s) and order total by customer for each customer. Only include customer(s) that have placed the most orders. For example, if the most orders placed by any single customer is 3, then include the customer ID(s) and sum of the order totals for those three orders in the output for each of the customers meeting the criteria. Alias the sum of the customer(s) order total(s) as “customer_order_total.” Sort the result set by customer order total, descending.
oe.orders
| CUSTOMER_ID | CUSTOMER_ORDER_TOTAL |
|---|---|
| 149 | 403119.7 |
| 147 | 371278.2 |
| 148 | 185700.5 |
| 144 | 160284.6 |
| 146 | 88462.6 |
| 145 | 71717.9 |
SELECT
oe.orders.customer_id,
SUM(oe.orders.order_total) AS customer_order_total
FROM
oe.orders
GROUP BY
oe.orders.customer_id
HAVING
COUNT(*) >= ALL (
SELECT
COUNT(*)
FROM
oe.orders
GROUP BY
oe.orders.customer_id
)
ORDER BY
customer_order_total DESC;
Problem 29
For each order, retrieve the customer ID, order ID, order total, minimum order total for the customer, and maximum order total for the customer. Alias the minimum and maximum order total as “min_order_total” and “max_order_total,” respectively. Only include customers that have placed more than 1 order. Sort the result set by customer ID (ascending) and order total (descending).
oe.orders
| CUSTOMER_ID | ORDER_ID | ORDER_TOTAL | MIN_ORDER_TOTAL | MAX_ORDER_TOTAL |
|---|---|---|---|---|
| 101 | 2458 | 78279.6 | 29669.9 | 78279.6 |
| 101 | 2413 | 48552 | 29669.9 | 78279.6 |
| 101 | 2447 | 33893.6 | 29669.9 | 78279.6 |
| 101 | 2430 | 29669.9 | 29669.9 | 78279.6 |
| 102 | 2397 | 42283.2 | 5610.6 | 42283.2 |
| 102 | 2414 | 10794.6 | 5610.6 | 42283.2 |
| 102 | 2432 | 10523 | 5610.6 | 42283.2 |
| 102 | 2431 | 5610.6 | 5610.6 | 42283.2 |
| 103 | 2437 | 13550 | 78 | 13550 |
| 103 | 2454 | 6653.4 | 78 | 13550 |
| 103 | 2415 | 310 | 78 | 13550 |
| 103 | 2433 | 78 | 78 | 13550 |
| 104 | 2355 | 94513.5 | 384 | 94513.5 |
| 104 | 2354 | 46257 | 384 | 94513.5 |
| 104 | 2438 | 5451 | 384 | 94513.5 |
| 104 | 2416 | 384 | 384 | 94513.5 |
| 105 | 2356 | 29473.8 | 1926.6 | 29473.8 |
| 105 | 2439 | 22150.1 | 1926.6 | 29473.8 |
| 105 | 2358 | 7826 | 1926.6 | 29473.8 |
| 105 | 2417 | 1926.6 | 1926.6 | 29473.8 |
| 106 | 2381 | 23034.6 | 2075.2 | 23034.6 |
| 106 | 2418 | 5546.6 | 2075.2 | 23034.6 |
| 106 | 2359 | 5543.1 | 2075.2 | 23034.6 |
| 106 | 2441 | 2075.2 | 2075.2 | 23034.6 |
| 107 | 2440 | 70576.9 | 990.4 | 70576.9 |
| 107 | 2442 | 52471.9 | 990.4 | 70576.9 |
| 107 | 2419 | 31574 | 990.4 | 70576.9 |
| 107 | 2360 | 990.4 | 990.4 | 70576.9 |
| 108 | 2361 | 120131.3 | 3646 | 120131.3 |
| 108 | 2357 | 59872.4 | 3646 | 120131.3 |
| 108 | 2420 | 29750 | 3646 | 120131.3 |
| 108 | 2443 | 3646 | 3646 | 120131.3 |
| 109 | 2362 | 92829.4 | 21863 | 92829.4 |
| 109 | 2444 | 77727.2 | 21863 | 92829.4 |
| 109 | 2421 | 72836 | 21863 | 92829.4 |
| 109 | 2394 | 21863 | 21863 | 92829.4 |
| 116 | 2428 | 14685.8 | 129 | 14685.8 |
| 116 | 2369 | 11097.4 | 129 | 14685.8 |
| 116 | 2436 | 6394.8 | 129 | 14685.8 |
| 116 | 2453 | 129 | 129 | 14685.8 |
| 117 | 2446 | 103679.3 | 126 | 103679.3 |
| 117 | 2429 | 50125 | 126 | 103679.3 |
| 117 | 2456 | 3878.4 | 126 | 103679.3 |
| 117 | 2370 | 126 | 126 | 103679.3 |
| 118 | 2371 | 79405.6 | 21586.2 | 79405.6 |
| 118 | 2457 | 21586.2 | 21586.2 | 79405.6 |
| 144 | 2382 | 71173 | 5537.8 | 71173 |
| 144 | 2435 | 62303 | 5537.8 | 71173 |
| 144 | 2422 | 11188.5 | 5537.8 | 71173 |
| 144 | 2363 | 10082.3 | 5537.8 | 71173 |
| 144 | 2445 | 5537.8 | 5537.8 | 71173 |
| 145 | 2383 | 36374.7 | 1388 | 36374.7 |
| 145 | 2455 | 14087.5 | 1388 | 36374.7 |
| 145 | 2423 | 10367.7 | 1388 | 36374.7 |
| 145 | 2364 | 9500 | 1388 | 36374.7 |
| 145 | 2448 | 1388 | 1388 | 36374.7 |
| 146 | 2384 | 29249.1 | 86 | 29249.1 |
| 146 | 2365 | 27455.3 | 86 | 29249.1 |
| 146 | 2379 | 17848.2 | 86 | 29249.1 |
| 146 | 2424 | 13824 | 86 | 29249.1 |
| 146 | 2449 | 86 | 86 | 29249.1 |
| 147 | 2385 | 295892 | 1500.8 | 295892 |
| 147 | 2366 | 37319.4 | 1500.8 | 295892 |
| 147 | 2396 | 34930 | 1500.8 | 295892 |
| 147 | 2450 | 1636 | 1500.8 | 295892 |
| 147 | 2425 | 1500.8 | 1500.8 | 295892 |
| 148 | 2367 | 144054.8 | 2854.2 | 144054.8 |
| 148 | 2386 | 21116.9 | 2854.2 | 144054.8 |
| 148 | 2451 | 10474.6 | 2854.2 | 144054.8 |
| 148 | 2426 | 7200 | 2854.2 | 144054.8 |
| 148 | 2406 | 2854.2 | 2854.2 | 144054.8 |
| 149 | 2434 | 268651.8 | 9055 | 268651.8 |
| 149 | 2368 | 60065 | 9055 | 268651.8 |
| 149 | 2387 | 52758.9 | 9055 | 268651.8 |
| 149 | 2452 | 12589 | 9055 | 268651.8 |
| 149 | 2427 | 9055 | 9055 | 268651.8 |
SELECT
oe.orders.customer_id,
oe.orders.order_id,
oe.orders.order_total,
min_max_order.min_order_total,
min_max_order.max_order_total
FROM
oe.orders
INNER JOIN (
SELECT
oe.orders.customer_id,
MIN(oe.orders.order_total) AS min_order_total,
MAX(oe.orders.order_total) AS max_order_total
FROM
oe.orders
GROUP BY
oe.orders.customer_id
HAVING
COUNT(oe.orders.customer_id) > 1
) min_max_order
ON oe.orders.customer_id = min_max_order.customer_id
ORDER BY
oe.orders.customer_id,
oe.orders.order_total DESC;
Problem 30
For each order, include the customer ID, customer first name, customer last name, order ID, order date, order total, line-item ID(s), product ID(s), unit price(s), and quantity. In each row, include the line-item count for the order. Line-item count is defined as the number of line-items in the order. Alias this derived column as “line_item_count.” Sort the result set by customer ID (ascending), order date (ascending), order ID (ascending), and line-item ID (ascending).
oe.customers
oe.orders
oe.order_items
| CUSTOMER_ID | CUST_FIRST_NAME | CUST_LAST_NAME | ORDER_ID | ORDER_DATE | ORDER_TOTAL | LINE_ITEM_ID | LINE_ITEM_COUNT | PRODUCT_ID | UNIT_PRICE | QUANTITY |
|---|---|---|---|---|---|---|---|---|---|---|
| 101 | Constantin | Welles | 2458 | 16-AUG-07 03.34.12.234359 PM | 78279.6 | 1 | 6 | 3117 | 38 | 140 |
| 101 | Constantin | Welles | 2458 | 16-AUG-07 03.34.12.234359 PM | 78279.6 | 2 | 6 | 3123 | 79 | 112 |
| 101 | Constantin | Welles | 2458 | 16-AUG-07 03.34.12.234359 PM | 78279.6 | 3 | 6 | 3127 | 488.4 | 114 |
| 101 | Constantin | Welles | 2458 | 16-AUG-07 03.34.12.234359 PM | 78279.6 | 4 | 6 | 3134 | 17 | 115 |
| 101 | Constantin | Welles | 2458 | 16-AUG-07 03.34.12.234359 PM | 78279.6 | 5 | 6 | 3143 | 15 | 129 |
| 101 | Constantin | Welles | 2458 | 16-AUG-07 03.34.12.234359 PM | 78279.6 | 6 | 6 | 3163 | 32 | 142 |
| 101 | Constantin | Welles | 2430 | 02-OCT-07 06.18.36.663332 AM | 29669.9 | 1 | 5 | 3350 | 693 | 6 |
| 101 | Constantin | Welles | 2430 | 02-OCT-07 06.18.36.663332 AM | 29669.9 | 2 | 5 | 3353 | 454.3 | 5 |
| 101 | Constantin | Welles | 2430 | 02-OCT-07 06.18.36.663332 AM | 29669.9 | 3 | 5 | 3359 | 111 | 10 |
| 101 | Constantin | Welles | 2430 | 02-OCT-07 06.18.36.663332 AM | 29669.9 | 4 | 5 | 3362 | 94 | 10 |
| 101 | Constantin | Welles | 2430 | 02-OCT-07 06.18.36.663332 AM | 29669.9 | 5 | 5 | 3501 | 492.8 | 43 |
| 101 | Constantin | Welles | 2413 | 29-MAR-08 01.34.04.525934 PM | 48552 | 1 | 7 | 3108 | 77 | 200 |
| 101 | Constantin | Welles | 2413 | 29-MAR-08 01.34.04.525934 PM | 48552 | 2 | 7 | 3112 | 75 | 40 |
| 101 | Constantin | Welles | 2413 | 29-MAR-08 01.34.04.525934 PM | 48552 | 3 | 7 | 3117 | 35 | 44 |
| 101 | Constantin | Welles | 2413 | 29-MAR-08 01.34.04.525934 PM | 48552 | 4 | 7 | 3127 | 492 | 44 |
| 101 | Constantin | Welles | 2413 | 29-MAR-08 01.34.04.525934 PM | 48552 | 5 | 7 | 3129 | 46 | 45 |
| 101 | Constantin | Welles | 2413 | 29-MAR-08 01.34.04.525934 PM | 48552 | 6 | 7 | 3155 | 47 | 62 |
| 101 | Constantin | Welles | 2413 | 29-MAR-08 01.34.04.525934 PM | 48552 | 7 | 7 | 3163 | 30 | 66 |
| 101 | Constantin | Welles | 2447 | 27-JUL-08 08.59.10.223344 AM | 33893.6 | 1 | 9 | 2264 | 199.1 | 29 |
| 101 | Constantin | Welles | 2447 | 27-JUL-08 08.59.10.223344 AM | 33893.6 | 2 | 9 | 2266 | 297 | 23 |
| 101 | Constantin | Welles | 2447 | 27-JUL-08 08.59.10.223344 AM | 33893.6 | 3 | 9 | 2272 | 121 | 24 |
| 101 | Constantin | Welles | 2447 | 27-JUL-08 08.59.10.223344 AM | 33893.6 | 4 | 9 | 2278 | 50 | 25 |
| 101 | Constantin | Welles | 2447 | 27-JUL-08 08.59.10.223344 AM | 33893.6 | 5 | 9 | 2293 | 97 | 34 |
| 101 | Constantin | Welles | 2447 | 27-JUL-08 08.59.10.223344 AM | 33893.6 | 6 | 9 | 2299 | 76 | 35 |
| 101 | Constantin | Welles | 2447 | 27-JUL-08 08.59.10.223344 AM | 33893.6 | 7 | 9 | 2302 | 133.1 | 37 |
| 101 | Constantin | Welles | 2447 | 27-JUL-08 08.59.10.223344 AM | 33893.6 | 8 | 9 | 2308 | 54 | 40 |
| 101 | Constantin | Welles | 2447 | 27-JUL-08 08.59.10.223344 AM | 33893.6 | 9 | 9 | 2311 | 93 | 44 |
| 102 | Harrison | Pacino | 2431 | 14-SEP-06 07.03.04.763452 AM | 5610.6 | 1 | 6 | 3097 | 2.2 | 3 |
| 102 | Harrison | Pacino | 2431 | 14-SEP-06 07.03.04.763452 AM | 5610.6 | 2 | 6 | 3106 | 48 | 1 |
| 102 | Harrison | Pacino | 2431 | 14-SEP-06 07.03.04.763452 AM | 5610.6 | 3 | 6 | 3114 | 101 | 3 |
| 102 | Harrison | Pacino | 2431 | 14-SEP-06 07.03.04.763452 AM | 5610.6 | 4 | 6 | 3117 | 41 | 7 |
| 102 | Harrison | Pacino | 2431 | 14-SEP-06 07.03.04.763452 AM | 5610.6 | 5 | 6 | 3127 | 498 | 9 |
| 102 | Harrison | Pacino | 2431 | 14-SEP-06 07.03.04.763452 AM | 5610.6 | 6 | 6 | 3129 | 44 | 11 |
| 102 | Harrison | Pacino | 2414 | 29-MAR-07 02.22.40.536996 PM | 10794.6 | 1 | 7 | 3208 | 1.1 | 8 |
| 102 | Harrison | Pacino | 2414 | 29-MAR-07 02.22.40.536996 PM | 10794.6 | 2 | 7 | 3216 | 30 | 7 |
| 102 | Harrison | Pacino | 2414 | 29-MAR-07 02.22.40.536996 PM | 10794.6 | 3 | 7 | 3220 | 41 | 9 |
| 102 | Harrison | Pacino | 2414 | 29-MAR-07 02.22.40.536996 PM | 10794.6 | 4 | 7 | 3234 | 39 | 11 |
| 102 | Harrison | Pacino | 2414 | 29-MAR-07 02.22.40.536996 PM | 10794.6 | 5 | 7 | 3246 | 212.3 | 18 |
| 102 | Harrison | Pacino | 2414 | 29-MAR-07 02.22.40.536996 PM | 10794.6 | 6 | 7 | 3253 | 206.8 | 23 |
| 102 | Harrison | Pacino | 2414 | 29-MAR-07 02.22.40.536996 PM | 10794.6 | 7 | 7 | 3260 | 50 | 24 |
| 102 | Harrison | Pacino | 2432 | 14-SEP-07 09.53.40.223345 AM | 10523 | 1 | 4 | 2976 | 49 | 3 |
| 102 | Harrison | Pacino | 2432 | 14-SEP-07 09.53.40.223345 AM | 10523 | 2 | 4 | 2982 | 43 | 2 |
| 102 | Harrison | Pacino | 2432 | 14-SEP-07 09.53.40.223345 AM | 10523 | 3 | 4 | 2986 | 122 | 5 |
| 102 | Harrison | Pacino | 2432 | 14-SEP-07 09.53.40.223345 AM | 10523 | 4 | 4 | 2999 | 880 | 11 |
| 102 | Harrison | Pacino | 2397 | 19-NOV-07 02.41.54.696211 PM | 42283.2 | 1 | 4 | 2976 | 52 | 2 |
| 102 | Harrison | Pacino | 2397 | 19-NOV-07 02.41.54.696211 PM | 42283.2 | 2 | 4 | 2986 | 120 | 8 |
| 102 | Harrison | Pacino | 2397 | 19-NOV-07 02.41.54.696211 PM | 42283.2 | 3 | 4 | 2999 | 880 | 16 |
| 102 | Harrison | Pacino | 2397 | 19-NOV-07 02.41.54.696211 PM | 42283.2 | 4 | 4 | 3000 | 1696.2 | 16 |
| 103 | Manisha | Taylor | 2415 | 29-MAR-06 01.34.50.545196 PM | 310 | 1 | 1 | 2751 | 62 | 5 |
| 103 | Manisha | Taylor | 2437 | 01-SEP-06 08.59.15.826132 AM | 13550 | 1 | 6 | 2423 | 83 | 8 |
| 103 | Manisha | Taylor | 2437 | 01-SEP-06 08.59.15.826132 AM | 13550 | 2 | 6 | 2430 | 157.3 | 4 |
| 103 | Manisha | Taylor | 2437 | 01-SEP-06 08.59.15.826132 AM | 13550 | 3 | 6 | 2457 | 4.4 | 17 |
| 103 | Manisha | Taylor | 2437 | 01-SEP-06 08.59.15.826132 AM | 13550 | 4 | 6 | 2462 | 76 | 19 |
| 103 | Manisha | Taylor | 2437 | 01-SEP-06 08.59.15.826132 AM | 13550 | 5 | 6 | 2464 | 64 | 21 |
| 103 | Manisha | Taylor | 2437 | 01-SEP-06 08.59.15.826132 AM | 13550 | 6 | 6 | 2496 | 268.4 | 35 |
| 103 | Manisha | Taylor | 2433 | 13-SEP-07 10.19.00.654279 AM | 78 | 1 | 1 | 1910 | 13 | 6 |
| 103 | Manisha | Taylor | 2454 | 02-OCT-07 05.49.34.678340 PM | 6653.4 | 1 | 7 | 2289 | 43 | 120 |
| 103 | Manisha | Taylor | 2454 | 02-OCT-07 05.49.34.678340 PM | 6653.4 | 2 | 7 | 2293 | 99 | 0 |
| 103 | Manisha | Taylor | 2454 | 02-OCT-07 05.49.34.678340 PM | 6653.4 | 3 | 7 | 2299 | 71 | 3 |
| 103 | Manisha | Taylor | 2454 | 02-OCT-07 05.49.34.678340 PM | 6653.4 | 4 | 7 | 2308 | 55 | 12 |
| 103 | Manisha | Taylor | 2454 | 02-OCT-07 05.49.34.678340 PM | 6653.4 | 5 | 7 | 2316 | 21 | 13 |
| 103 | Manisha | Taylor | 2454 | 02-OCT-07 05.49.34.678340 PM | 6653.4 | 6 | 7 | 2323 | 18 | 16 |
| 103 | Manisha | Taylor | 2454 | 02-OCT-07 05.49.34.678340 PM | 6653.4 | 7 | 7 | 2334 | 3.3 | 18 |
| 104 | Harrison | Sutherland | 2355 | 26-JAN-06 09.22.51.962632 AM | 94513.5 | 1 | 9 | 2289 | 46 | 200 |
| 104 | Harrison | Sutherland | 2355 | 26-JAN-06 09.22.51.962632 AM | 94513.5 | 2 | 9 | 2308 | 57 | 185 |
| 104 | Harrison | Sutherland | 2355 | 26-JAN-06 09.22.51.962632 AM | 94513.5 | 3 | 9 | 2311 | 86.9 | 188 |
| 104 | Harrison | Sutherland | 2355 | 26-JAN-06 09.22.51.962632 AM | 94513.5 | 4 | 9 | 2322 | 19 | 188 |
| 104 | Harrison | Sutherland | 2355 | 26-JAN-06 09.22.51.962632 AM | 94513.5 | 5 | 9 | 2323 | 17 | 190 |
| 104 | Harrison | Sutherland | 2355 | 26-JAN-06 09.22.51.962632 AM | 94513.5 | 6 | 9 | 2326 | 1.1 | 192 |
| 104 | Harrison | Sutherland | 2355 | 26-JAN-06 09.22.51.962632 AM | 94513.5 | 7 | 9 | 2330 | 1.1 | 197 |
| 104 | Harrison | Sutherland | 2355 | 26-JAN-06 09.22.51.962632 AM | 94513.5 | 8 | 9 | 2339 | 25 | 199 |
| 104 | Harrison | Sutherland | 2355 | 26-JAN-06 09.22.51.962632 AM | 94513.5 | 9 | 9 | 2359 | 226.6 | 204 |
| 104 | Harrison | Sutherland | 2416 | 29-MAR-07 04.41.20.945676 PM | 384 | 1 | 2 | 2870 | 4.4 | 10 |
| 104 | Harrison | Sutherland | 2416 | 29-MAR-07 04.41.20.945676 PM | 384 | 2 | 2 | 2878 | 340 | 1 |
| 104 | Harrison | Sutherland | 2438 | 01-SEP-07 09.53.26.934626 AM | 5451 | 1 | 2 | 2995 | 69 | 3 |
| 104 | Harrison | Sutherland | 2438 | 01-SEP-07 09.53.26.934626 AM | 5451 | 2 | 2 | 3000 | 1748 | 3 |
| 104 | Harrison | Sutherland | 2354 | 14-JUL-08 06.18.23.234567 PM | 46257 | 1 | 13 | 3106 | 48 | 61 |
| 104 | Harrison | Sutherland | 2354 | 14-JUL-08 06.18.23.234567 PM | 46257 | 2 | 13 | 3114 | 96.8 | 43 |
| 104 | Harrison | Sutherland | 2354 | 14-JUL-08 06.18.23.234567 PM | 46257 | 3 | 13 | 3123 | 79 | 47 |
| 104 | Harrison | Sutherland | 2354 | 14-JUL-08 06.18.23.234567 PM | 46257 | 4 | 13 | 3129 | 41 | 47 |
| 104 | Harrison | Sutherland | 2354 | 14-JUL-08 06.18.23.234567 PM | 46257 | 5 | 13 | 3139 | 21 | 48 |
| 104 | Harrison | Sutherland | 2354 | 14-JUL-08 06.18.23.234567 PM | 46257 | 6 | 13 | 3143 | 16 | 53 |
| 104 | Harrison | Sutherland | 2354 | 14-JUL-08 06.18.23.234567 PM | 46257 | 7 | 13 | 3150 | 17 | 58 |
| 104 | Harrison | Sutherland | 2354 | 14-JUL-08 06.18.23.234567 PM | 46257 | 8 | 13 | 3163 | 30 | 61 |
| 104 | Harrison | Sutherland | 2354 | 14-JUL-08 06.18.23.234567 PM | 46257 | 9 | 13 | 3165 | 37 | 64 |
| 104 | Harrison | Sutherland | 2354 | 14-JUL-08 06.18.23.234567 PM | 46257 | 10 | 13 | 3167 | 51 | 68 |
| 104 | Harrison | Sutherland | 2354 | 14-JUL-08 06.18.23.234567 PM | 46257 | 11 | 13 | 3170 | 145.2 | 70 |
| 104 | Harrison | Sutherland | 2354 | 14-JUL-08 06.18.23.234567 PM | 46257 | 12 | 13 | 3176 | 113.3 | 72 |
| 104 | Harrison | Sutherland | 2354 | 14-JUL-08 06.18.23.234567 PM | 46257 | 13 | 13 | 3182 | 61 | 77 |
| 105 | Matthias | MacGraw | 2417 | 20-MAR-07 05.49.10.974352 PM | 1926.6 | 1 | 2 | 2870 | 4.4 | 9 |
| 105 | Matthias | MacGraw | 2417 | 20-MAR-07 05.49.10.974352 PM | 1926.6 | 2 | 2 | 2976 | 51 | 37 |
| 105 | Matthias | MacGraw | 2439 | 31-AUG-07 10.19.37.811132 AM | 22150.1 | 1 | 4 | 1797 | 316.8 | 9 |
| 105 | Matthias | MacGraw | 2439 | 31-AUG-07 10.19.37.811132 AM | 22150.1 | 2 | 4 | 1806 | 45 | 4 |
| 105 | Matthias | MacGraw | 2439 | 31-AUG-07 10.19.37.811132 AM | 22150.1 | 3 | 4 | 1820 | 54 | 9 |
| 105 | Matthias | MacGraw | 2439 | 31-AUG-07 10.19.37.811132 AM | 22150.1 | 4 | 4 | 1822 | 1433.3 | 13 |
| 105 | Matthias | MacGraw | 2358 | 08-JAN-08 05.03.12.654278 PM | 7826 | 1 | 5 | 1781 | 226.6 | 9 |
| 105 | Matthias | MacGraw | 2358 | 08-JAN-08 05.03.12.654278 PM | 7826 | 2 | 5 | 1782 | 125 | 4 |
| 105 | Matthias | MacGraw | 2358 | 08-JAN-08 05.03.12.654278 PM | 7826 | 3 | 5 | 1797 | 316.8 | 12 |
| 105 | Matthias | MacGraw | 2358 | 08-JAN-08 05.03.12.654278 PM | 7826 | 4 | 5 | 1803 | 55 | 13 |
| 105 | Matthias | MacGraw | 2358 | 08-JAN-08 05.03.12.654278 PM | 7826 | 5 | 5 | 1808 | 55 | 14 |
| 105 | Matthias | MacGraw | 2356 | 26-JAN-08 09.22.41.934562 AM | 29473.8 | 1 | 8 | 2264 | 199.1 | 38 |
| 105 | Matthias | MacGraw | 2356 | 26-JAN-08 09.22.41.934562 AM | 29473.8 | 2 | 8 | 2274 | 148.5 | 34 |
| 105 | Matthias | MacGraw | 2356 | 26-JAN-08 09.22.41.934562 AM | 29473.8 | 3 | 8 | 2293 | 98 | 40 |
| 105 | Matthias | MacGraw | 2356 | 26-JAN-08 09.22.41.934562 AM | 29473.8 | 4 | 8 | 2299 | 72 | 44 |
| 105 | Matthias | MacGraw | 2356 | 26-JAN-08 09.22.41.934562 AM | 29473.8 | 5 | 8 | 2308 | 58 | 47 |
| 105 | Matthias | MacGraw | 2356 | 26-JAN-08 09.22.41.934562 AM | 29473.8 | 6 | 8 | 2311 | 95 | 51 |
| 105 | Matthias | MacGraw | 2356 | 26-JAN-08 09.22.41.934562 AM | 29473.8 | 7 | 8 | 2316 | 22 | 55 |
| 105 | Matthias | MacGraw | 2356 | 26-JAN-08 09.22.41.934562 AM | 29473.8 | 8 | 8 | 2323 | 18 | 55 |
| 106 | Matthias | Hannah | 2418 | 20-MAR-04 04.18.21.862632 PM | 5546.6 | 1 | 6 | 3082 | 75 | 15 |
| 106 | Matthias | Hannah | 2418 | 20-MAR-04 04.18.21.862632 PM | 5546.6 | 2 | 6 | 3090 | 187 | 12 |
| 106 | Matthias | Hannah | 2418 | 20-MAR-04 04.18.21.862632 PM | 5546.6 | 3 | 6 | 3097 | 2.2 | 13 |
| 106 | Matthias | Hannah | 2418 | 20-MAR-04 04.18.21.862632 PM | 5546.6 | 4 | 6 | 3110 | 45 | 20 |
| 106 | Matthias | Hannah | 2418 | 20-MAR-04 04.18.21.862632 PM | 5546.6 | 5 | 6 | 3140 | 20 | 31 |
| 106 | Matthias | Hannah | 2418 | 20-MAR-04 04.18.21.862632 PM | 5546.6 | 6 | 6 | 3150 | 17 | 37 |
| 106 | Matthias | Hannah | 2359 | 08-JAN-06 09.34.13.112233 PM | 5543.1 | 1 | 7 | 2337 | 270.6 | 1 |
| 106 | Matthias | Hannah | 2359 | 08-JAN-06 09.34.13.112233 PM | 5543.1 | 2 | 7 | 2359 | 249 | 1 |
| 106 | Matthias | Hannah | 2359 | 08-JAN-06 09.34.13.112233 PM | 5543.1 | 3 | 7 | 2370 | 91 | 17 |
| 106 | Matthias | Hannah | 2359 | 08-JAN-06 09.34.13.112233 PM | 5543.1 | 4 | 7 | 2373 | 6 | 17 |
| 106 | Matthias | Hannah | 2359 | 08-JAN-06 09.34.13.112233 PM | 5543.1 | 5 | 7 | 2377 | 96 | 17 |
| 106 | Matthias | Hannah | 2359 | 08-JAN-06 09.34.13.112233 PM | 5543.1 | 6 | 7 | 2380 | 5.5 | 17 |
| 106 | Matthias | Hannah | 2359 | 08-JAN-06 09.34.13.112233 PM | 5543.1 | 7 | 7 | 2381 | 97 | 17 |
| 106 | Matthias | Hannah | 2381 | 14-MAY-08 08.59.08.843679 PM | 23034.6 | 1 | 8 | 3117 | 38 | 110 |
| 106 | Matthias | Hannah | 2381 | 14-MAY-08 08.59.08.843679 PM | 23034.6 | 2 | 8 | 3124 | 77 | 44 |
| 106 | Matthias | Hannah | 2381 | 14-MAY-08 08.59.08.843679 PM | 23034.6 | 3 | 8 | 3133 | 44 | 44 |
| 106 | Matthias | Hannah | 2381 | 14-MAY-08 08.59.08.843679 PM | 23034.6 | 4 | 8 | 3139 | 20 | 45 |
| 106 | Matthias | Hannah | 2381 | 14-MAY-08 08.59.08.843679 PM | 23034.6 | 5 | 8 | 3143 | 15 | 48 |
| 106 | Matthias | Hannah | 2381 | 14-MAY-08 08.59.08.843679 PM | 23034.6 | 6 | 8 | 3163 | 35 | 55 |
| 106 | Matthias | Hannah | 2381 | 14-MAY-08 08.59.08.843679 PM | 23034.6 | 7 | 8 | 3176 | 113.3 | 62 |
| 106 | Matthias | Hannah | 2381 | 14-MAY-08 08.59.08.843679 PM | 23034.6 | 8 | 8 | 3183 | 47 | 63 |
| 106 | Matthias | Hannah | 2441 | 01-AUG-08 11.22.48.734526 AM | 2075.2 | 1 | 2 | 2536 | 80 | 9 |
| 106 | Matthias | Hannah | 2441 | 01-AUG-08 11.22.48.734526 AM | 2075.2 | 2 | 2 | 2537 | 193.6 | 7 |
| 107 | Matthias | Cruise | 2442 | 27-JUL-06 12.22.59.662632 PM | 52471.9 | 1 | 8 | 2402 | 127 | 26 |
| 107 | Matthias | Cruise | 2442 | 27-JUL-06 12.22.59.662632 PM | 52471.9 | 2 | 8 | 2410 | 350.9 | 21 |
| 107 | Matthias | Cruise | 2442 | 27-JUL-06 12.22.59.662632 PM | 52471.9 | 3 | 8 | 2418 | 60 | 23 |
| 107 | Matthias | Cruise | 2442 | 27-JUL-06 12.22.59.662632 PM | 52471.9 | 4 | 8 | 2422 | 144 | 25 |
| 107 | Matthias | Cruise | 2442 | 27-JUL-06 12.22.59.662632 PM | 52471.9 | 5 | 8 | 2430 | 173 | 28 |
| 107 | Matthias | Cruise | 2442 | 27-JUL-06 12.22.59.662632 PM | 52471.9 | 6 | 8 | 2439 | 115.5 | 30 |
| 107 | Matthias | Cruise | 2442 | 27-JUL-06 12.22.59.662632 PM | 52471.9 | 7 | 8 | 2459 | 624.8 | 40 |
| 107 | Matthias | Cruise | 2442 | 27-JUL-06 12.22.59.662632 PM | 52471.9 | 8 | 8 | 2467 | 80 | 44 |
| 107 | Matthias | Cruise | 2419 | 20-MAR-07 07.03.32.764632 PM | 31574 | 1 | 9 | 3106 | 46 | 150 |
| 107 | Matthias | Cruise | 2419 | 20-MAR-07 07.03.32.764632 PM | 31574 | 2 | 9 | 3114 | 99 | 45 |
| 107 | Matthias | Cruise | 2419 | 20-MAR-07 07.03.32.764632 PM | 31574 | 3 | 9 | 3123 | 71.5 | 48 |
| 107 | Matthias | Cruise | 2419 | 20-MAR-07 07.03.32.764632 PM | 31574 | 4 | 9 | 3129 | 43 | 57 |
| 107 | Matthias | Cruise | 2419 | 20-MAR-07 07.03.32.764632 PM | 31574 | 5 | 9 | 3133 | 45 | 61 |
| 107 | Matthias | Cruise | 2419 | 20-MAR-07 07.03.32.764632 PM | 31574 | 6 | 9 | 3150 | 17 | 69 |
| 107 | Matthias | Cruise | 2419 | 20-MAR-07 07.03.32.764632 PM | 31574 | 7 | 9 | 3155 | 47 | 72 |
| 107 | Matthias | Cruise | 2419 | 20-MAR-07 07.03.32.764632 PM | 31574 | 8 | 9 | 3165 | 35 | 76 |
| 107 | Matthias | Cruise | 2419 | 20-MAR-07 07.03.32.764632 PM | 31574 | 9 | 9 | 3167 | 54 | 81 |
| 107 | Matthias | Cruise | 2440 | 31-AUG-07 09.53.06.008765 PM | 70576.9 | 1 | 11 | 2289 | 48 | 19 |
| 107 | Matthias | Cruise | 2440 | 31-AUG-07 09.53.06.008765 PM | 70576.9 | 2 | 11 | 2293 | 98 | 2 |
| 107 | Matthias | Cruise | 2440 | 31-AUG-07 09.53.06.008765 PM | 70576.9 | 3 | 11 | 2302 | 150 | 2 |
| 107 | Matthias | Cruise | 2440 | 31-AUG-07 09.53.06.008765 PM | 70576.9 | 4 | 11 | 2311 | 86.9 | 7 |
| 107 | Matthias | Cruise | 2440 | 31-AUG-07 09.53.06.008765 PM | 70576.9 | 5 | 11 | 2322 | 23 | 10 |
| 107 | Matthias | Cruise | 2440 | 31-AUG-07 09.53.06.008765 PM | 70576.9 | 6 | 11 | 2330 | 1.1 | 13 |
| 107 | Matthias | Cruise | 2440 | 31-AUG-07 09.53.06.008765 PM | 70576.9 | 7 | 11 | 2334 | 3.3 | 15 |
| 107 | Matthias | Cruise | 2440 | 31-AUG-07 09.53.06.008765 PM | 70576.9 | 8 | 11 | 2337 | 270.6 | 19 |
| 107 | Matthias | Cruise | 2440 | 31-AUG-07 09.53.06.008765 PM | 70576.9 | 9 | 11 | 2339 | 25 | 23 |
| 107 | Matthias | Cruise | 2440 | 31-AUG-07 09.53.06.008765 PM | 70576.9 | 10 | 11 | 2350 | 2341.9 | 24 |
| 107 | Matthias | Cruise | 2440 | 31-AUG-07 09.53.06.008765 PM | 70576.9 | 11 | 11 | 2359 | 226.6 | 28 |
| 107 | Matthias | Cruise | 2360 | 14-NOV-07 12.22.31.223344 PM | 990.4 | 1 | 2 | 2058 | 23 | 29 |
| 107 | Matthias | Cruise | 2360 | 14-NOV-07 12.22.31.223344 PM | 990.4 | 2 | 2 | 2093 | 7.7 | 42 |
| 108 | Meenakshi | Mason | 2357 | 08-JAN-06 08.19.44.123456 PM | 59872.4 | 1 | 8 | 2211 | 3.3 | 140 |
| 108 | Meenakshi | Mason | 2357 | 08-JAN-06 08.19.44.123456 PM | 59872.4 | 2 | 8 | 2245 | 462 | 26 |
| 108 | Meenakshi | Mason | 2357 | 08-JAN-06 08.19.44.123456 PM | 59872.4 | 3 | 8 | 2252 | 788.7 | 26 |
| 108 | Meenakshi | Mason | 2357 | 08-JAN-06 08.19.44.123456 PM | 59872.4 | 4 | 8 | 2257 | 371.8 | 29 |
| 108 | Meenakshi | Mason | 2357 | 08-JAN-06 08.19.44.123456 PM | 59872.4 | 5 | 8 | 2262 | 95 | 29 |
| 108 | Meenakshi | Mason | 2357 | 08-JAN-06 08.19.44.123456 PM | 59872.4 | 6 | 8 | 2268 | 75 | 32 |
| 108 | Meenakshi | Mason | 2357 | 08-JAN-06 08.19.44.123456 PM | 59872.4 | 7 | 8 | 2276 | 236.5 | 38 |
| 108 | Meenakshi | Mason | 2357 | 08-JAN-06 08.19.44.123456 PM | 59872.4 | 8 | 8 | 2289 | 48 | 41 |
| 108 | Meenakshi | Mason | 2443 | 27-JUL-06 01.34.16.562632 PM | 3646 | 1 | 8 | 3106 | 44 | 3 |
| 108 | Meenakshi | Mason | 2443 | 27-JUL-06 01.34.16.562632 PM | 3646 | 2 | 8 | 3114 | 101 | 2 |
| 108 | Meenakshi | Mason | 2443 | 27-JUL-06 01.34.16.562632 PM | 3646 | 3 | 8 | 3124 | 82 | 6 |
| 108 | Meenakshi | Mason | 2443 | 27-JUL-06 01.34.16.562632 PM | 3646 | 4 | 8 | 3139 | 20 | 12 |
| 108 | Meenakshi | Mason | 2443 | 27-JUL-06 01.34.16.562632 PM | 3646 | 5 | 8 | 3143 | 15 | 17 |
| 108 | Meenakshi | Mason | 2443 | 27-JUL-06 01.34.16.562632 PM | 3646 | 6 | 8 | 3150 | 18 | 17 |
| 108 | Meenakshi | Mason | 2443 | 27-JUL-06 01.34.16.562632 PM | 3646 | 7 | 8 | 3155 | 43 | 21 |
| 108 | Meenakshi | Mason | 2443 | 27-JUL-06 01.34.16.562632 PM | 3646 | 8 | 8 | 3165 | 36 | 31 |
| 108 | Meenakshi | Mason | 2420 | 13-MAR-07 08.59.43.666320 PM | 29750 | 1 | 10 | 3106 | 46 | 110 |
| 108 | Meenakshi | Mason | 2420 | 13-MAR-07 08.59.43.666320 PM | 29750 | 2 | 10 | 3110 | 46 | 11 |
| 108 | Meenakshi | Mason | 2420 | 13-MAR-07 08.59.43.666320 PM | 29750 | 3 | 10 | 3114 | 101 | 15 |
| 108 | Meenakshi | Mason | 2420 | 13-MAR-07 08.59.43.666320 PM | 29750 | 4 | 10 | 3123 | 79 | 20 |
| 108 | Meenakshi | Mason | 2420 | 13-MAR-07 08.59.43.666320 PM | 29750 | 5 | 10 | 3127 | 496 | 22 |
| 108 | Meenakshi | Mason | 2420 | 13-MAR-07 08.59.43.666320 PM | 29750 | 6 | 10 | 3133 | 48 | 29 |
| 108 | Meenakshi | Mason | 2420 | 13-MAR-07 08.59.43.666320 PM | 29750 | 7 | 10 | 3140 | 19 | 34 |
| 108 | Meenakshi | Mason | 2420 | 13-MAR-07 08.59.43.666320 PM | 29750 | 8 | 10 | 3143 | 15 | 39 |
| 108 | Meenakshi | Mason | 2420 | 13-MAR-07 08.59.43.666320 PM | 29750 | 9 | 10 | 3163 | 30 | 45 |
| 108 | Meenakshi | Mason | 2420 | 13-MAR-07 08.59.43.666320 PM | 29750 | 10 | 10 | 3171 | 132 | 47 |
| 108 | Meenakshi | Mason | 2361 | 13-NOV-07 01.34.21.986210 PM | 120131.3 | 1 | 9 | 2289 | 46 | 180 |
| 108 | Meenakshi | Mason | 2361 | 13-NOV-07 01.34.21.986210 PM | 120131.3 | 2 | 9 | 2299 | 76 | 180 |
| 108 | Meenakshi | Mason | 2361 | 13-NOV-07 01.34.21.986210 PM | 120131.3 | 3 | 9 | 2308 | 53 | 182 |
| 108 | Meenakshi | Mason | 2361 | 13-NOV-07 01.34.21.986210 PM | 120131.3 | 4 | 9 | 2311 | 86.9 | 185 |
| 108 | Meenakshi | Mason | 2361 | 13-NOV-07 01.34.21.986210 PM | 120131.3 | 5 | 9 | 2316 | 22 | 187 |
| 108 | Meenakshi | Mason | 2361 | 13-NOV-07 01.34.21.986210 PM | 120131.3 | 6 | 9 | 2326 | 1.1 | 194 |
| 108 | Meenakshi | Mason | 2361 | 13-NOV-07 01.34.21.986210 PM | 120131.3 | 7 | 9 | 2334 | 3.3 | 198 |
| 108 | Meenakshi | Mason | 2361 | 13-NOV-07 01.34.21.986210 PM | 120131.3 | 8 | 9 | 2359 | 248 | 208 |
| 108 | Meenakshi | Mason | 2361 | 13-NOV-07 01.34.21.986210 PM | 120131.3 | 9 | 9 | 2365 | 76 | 209 |
| 109 | Christian | Cage | 2421 | 12-MAR-07 09.53.54.562432 PM | 72836 | 1 | 9 | 3106 | 46 | 160 |
| 109 | Christian | Cage | 2421 | 12-MAR-07 09.53.54.562432 PM | 72836 | 2 | 9 | 3108 | 78 | 160 |
| 109 | Christian | Cage | 2421 | 12-MAR-07 09.53.54.562432 PM | 72836 | 3 | 9 | 3112 | 72 | 164 |
| 109 | Christian | Cage | 2421 | 12-MAR-07 09.53.54.562432 PM | 72836 | 4 | 9 | 3117 | 41 | 165 |
| 109 | Christian | Cage | 2421 | 12-MAR-07 09.53.54.562432 PM | 72836 | 5 | 9 | 3123 | 80 | 168 |
| 109 | Christian | Cage | 2421 | 12-MAR-07 09.53.54.562432 PM | 72836 | 6 | 9 | 3129 | 43 | 172 |
| 109 | Christian | Cage | 2421 | 12-MAR-07 09.53.54.562432 PM | 72836 | 7 | 9 | 3143 | 15 | 176 |
| 109 | Christian | Cage | 2421 | 12-MAR-07 09.53.54.562432 PM | 72836 | 8 | 9 | 3150 | 17 | 176 |
| 109 | Christian | Cage | 2421 | 12-MAR-07 09.53.54.562432 PM | 72836 | 9 | 9 | 3155 | 43 | 185 |
| 109 | Christian | Cage | 2444 | 27-JUL-07 02.22.27.462632 PM | 77727.2 | 1 | 11 | 3117 | 36 | 110 |
| 109 | Christian | Cage | 2444 | 27-JUL-07 02.22.27.462632 PM | 77727.2 | 2 | 11 | 3127 | 488.4 | 88 |
| 109 | Christian | Cage | 2444 | 27-JUL-07 02.22.27.462632 PM | 77727.2 | 3 | 11 | 3133 | 43 | 90 |
| 109 | Christian | Cage | 2444 | 27-JUL-07 02.22.27.462632 PM | 77727.2 | 4 | 11 | 3139 | 21 | 93 |
| 109 | Christian | Cage | 2444 | 27-JUL-07 02.22.27.462632 PM | 77727.2 | 5 | 11 | 3140 | 19 | 95 |
| 109 | Christian | Cage | 2444 | 27-JUL-07 02.22.27.462632 PM | 77727.2 | 6 | 11 | 3143 | 15 | 97 |
| 109 | Christian | Cage | 2444 | 27-JUL-07 02.22.27.462632 PM | 77727.2 | 7 | 11 | 3150 | 17 | 100 |
| 109 | Christian | Cage | 2444 | 27-JUL-07 02.22.27.462632 PM | 77727.2 | 8 | 11 | 3155 | 43 | 104 |
| 109 | Christian | Cage | 2444 | 27-JUL-07 02.22.27.462632 PM | 77727.2 | 9 | 11 | 3165 | 37 | 112 |
| 109 | Christian | Cage | 2444 | 27-JUL-07 02.22.27.462632 PM | 77727.2 | 10 | 11 | 3172 | 37 | 112 |
| 109 | Christian | Cage | 2444 | 27-JUL-07 02.22.27.462632 PM | 77727.2 | 11 | 11 | 3182 | 63 | 115 |
| 109 | Christian | Cage | 2362 | 13-NOV-07 02.41.10.619477 PM | 92829.4 | 1 | 8 | 2289 | 48 | 200 |
| 109 | Christian | Cage | 2362 | 13-NOV-07 02.41.10.619477 PM | 92829.4 | 2 | 8 | 2299 | 76 | 160 |
| 109 | Christian | Cage | 2362 | 13-NOV-07 02.41.10.619477 PM | 92829.4 | 3 | 8 | 2311 | 93 | 164 |
| 109 | Christian | Cage | 2362 | 13-NOV-07 02.41.10.619477 PM | 92829.4 | 4 | 8 | 2316 | 22 | 168 |
| 109 | Christian | Cage | 2362 | 13-NOV-07 02.41.10.619477 PM | 92829.4 | 5 | 8 | 2326 | 1.1 | 173 |
| 109 | Christian | Cage | 2362 | 13-NOV-07 02.41.10.619477 PM | 92829.4 | 6 | 8 | 2334 | 3.3 | 177 |
| 109 | Christian | Cage | 2362 | 13-NOV-07 02.41.10.619477 PM | 92829.4 | 7 | 8 | 2339 | 25 | 179 |
| 109 | Christian | Cage | 2362 | 13-NOV-07 02.41.10.619477 PM | 92829.4 | 8 | 8 | 2359 | 248 | 189 |
| 109 | Christian | Cage | 2394 | 10-FEB-08 09.22.35.564789 PM | 21863 | 1 | 9 | 3117 | 41 | 90 |
| 109 | Christian | Cage | 2394 | 10-FEB-08 09.22.35.564789 PM | 21863 | 2 | 9 | 3123 | 77 | 36 |
| 109 | Christian | Cage | 2394 | 10-FEB-08 09.22.35.564789 PM | 21863 | 3 | 9 | 3124 | 82 | 39 |
| 109 | Christian | Cage | 2394 | 10-FEB-08 09.22.35.564789 PM | 21863 | 4 | 9 | 3129 | 46 | 41 |
| 109 | Christian | Cage | 2394 | 10-FEB-08 09.22.35.564789 PM | 21863 | 5 | 9 | 3133 | 46 | 45 |
| 109 | Christian | Cage | 2394 | 10-FEB-08 09.22.35.564789 PM | 21863 | 6 | 9 | 3134 | 18 | 45 |
| 109 | Christian | Cage | 2394 | 10-FEB-08 09.22.35.564789 PM | 21863 | 7 | 9 | 3140 | 19 | 48 |
| 109 | Christian | Cage | 2394 | 10-FEB-08 09.22.35.564789 PM | 21863 | 8 | 9 | 3155 | 49 | 61 |
| 109 | Christian | Cage | 2394 | 10-FEB-08 09.22.35.564789 PM | 21863 | 9 | 9 | 3167 | 52 | 68 |
| 116 | Geraldine | Martin | 2369 | 26-JUN-07 11.22.54.009932 PM | 11097.4 | 1 | 9 | 3150 | 18 | 3 |
| 116 | Geraldine | Martin | 2369 | 26-JUN-07 11.22.54.009932 PM | 11097.4 | 2 | 9 | 3155 | 43 | 1 |
| 116 | Geraldine | Martin | 2369 | 26-JUN-07 11.22.54.009932 PM | 11097.4 | 3 | 9 | 3163 | 32 | 5 |
| 116 | Geraldine | Martin | 2369 | 26-JUN-07 11.22.54.009932 PM | 11097.4 | 4 | 9 | 3165 | 34 | 10 |
| 116 | Geraldine | Martin | 2369 | 26-JUN-07 11.22.54.009932 PM | 11097.4 | 5 | 9 | 3170 | 145.2 | 24 |
| 116 | Geraldine | Martin | 2369 | 26-JUN-07 11.22.54.009932 PM | 11097.4 | 6 | 9 | 3176 | 113.3 | 24 |
| 116 | Geraldine | Martin | 2369 | 26-JUN-07 11.22.54.009932 PM | 11097.4 | 7 | 9 | 3187 | 2.2 | 24 |
| 116 | Geraldine | Martin | 2369 | 26-JUN-07 11.22.54.009932 PM | 11097.4 | 8 | 9 | 3193 | 2.2 | 28 |
| 116 | Geraldine | Martin | 2369 | 26-JUN-07 11.22.54.009932 PM | 11097.4 | 9 | 9 | 3204 | 123 | 34 |
| 116 | Geraldine | Martin | 2436 | 02-SEP-07 06.18.04.378034 AM | 6394.8 | 1 | 8 | 3208 | 1.1 | 8 |
| 116 | Geraldine | Martin | 2436 | 02-SEP-07 06.18.04.378034 AM | 6394.8 | 2 | 8 | 3209 | 13 | 2 |
| 116 | Geraldine | Martin | 2436 | 02-SEP-07 06.18.04.378034 AM | 6394.8 | 3 | 8 | 3216 | 30 | 3 |
| 116 | Geraldine | Martin | 2436 | 02-SEP-07 06.18.04.378034 AM | 6394.8 | 4 | 8 | 3224 | 32 | 6 |
| 116 | Geraldine | Martin | 2436 | 02-SEP-07 06.18.04.378034 AM | 6394.8 | 5 | 8 | 3245 | 214.5 | 16 |
| 116 | Geraldine | Martin | 2436 | 02-SEP-07 06.18.04.378034 AM | 6394.8 | 6 | 8 | 3250 | 27 | 18 |
| 116 | Geraldine | Martin | 2436 | 02-SEP-07 06.18.04.378034 AM | 6394.8 | 7 | 8 | 3256 | 36 | 18 |
| 116 | Geraldine | Martin | 2436 | 02-SEP-07 06.18.04.378034 AM | 6394.8 | 8 | 8 | 3290 | 63 | 24 |
| 116 | Geraldine | Martin | 2453 | 04-OCT-07 09.53.34.362632 PM | 129 | 1 | 1 | 2492 | 43 | 3 |
| 116 | Geraldine | Martin | 2428 | 10-NOV-07 02.41.34.463567 AM | 14685.8 | 1 | 11 | 3106 | 42 | 7 |
| 116 | Geraldine | Martin | 2428 | 10-NOV-07 02.41.34.463567 AM | 14685.8 | 2 | 11 | 3108 | 76 | 1 |
| 116 | Geraldine | Martin | 2428 | 10-NOV-07 02.41.34.463567 AM | 14685.8 | 3 | 11 | 3114 | 101 | 5 |
| 116 | Geraldine | Martin | 2428 | 10-NOV-07 02.41.34.463567 AM | 14685.8 | 4 | 11 | 3117 | 41 | 6 |
| 116 | Geraldine | Martin | 2428 | 10-NOV-07 02.41.34.463567 AM | 14685.8 | 5 | 11 | 3123 | 80 | 8 |
| 116 | Geraldine | Martin | 2428 | 10-NOV-07 02.41.34.463567 AM | 14685.8 | 6 | 11 | 3127 | 498 | 12 |
| 116 | Geraldine | Martin | 2428 | 10-NOV-07 02.41.34.463567 AM | 14685.8 | 7 | 11 | 3133 | 48 | 12 |
| 116 | Geraldine | Martin | 2428 | 10-NOV-07 02.41.34.463567 AM | 14685.8 | 8 | 11 | 3143 | 16 | 13 |
| 116 | Geraldine | Martin | 2428 | 10-NOV-07 02.41.34.463567 AM | 14685.8 | 9 | 11 | 3150 | 17 | 16 |
| 116 | Geraldine | Martin | 2428 | 10-NOV-07 02.41.34.463567 AM | 14685.8 | 10 | 11 | 3170 | 145.2 | 24 |
| 116 | Geraldine | Martin | 2428 | 10-NOV-07 02.41.34.463567 AM | 14685.8 | 11 | 11 | 3173 | 86 | 28 |
| 117 | Guillaume | Edwards | 2456 | 07-NOV-06 07.53.25.989889 PM | 3878.4 | 1 | 2 | 2522 | 40 | 5 |
| 117 | Guillaume | Edwards | 2456 | 07-NOV-06 07.53.25.989889 PM | 3878.4 | 2 | 2 | 2537 | 193.6 | 19 |
| 117 | Guillaume | Edwards | 2446 | 27-JUL-07 07.03.08.302945 AM | 103679.3 | 1 | 5 | 2289 | 48 | 47 |
| 117 | Guillaume | Edwards | 2446 | 27-JUL-07 07.03.08.302945 AM | 103679.3 | 2 | 5 | 2326 | 1.1 | 34 |
| 117 | Guillaume | Edwards | 2446 | 27-JUL-07 07.03.08.302945 AM | 103679.3 | 3 | 5 | 2330 | 1.1 | 36 |
| 117 | Guillaume | Edwards | 2446 | 27-JUL-07 07.03.08.302945 AM | 103679.3 | 4 | 5 | 2337 | 270.6 | 37 |
| 117 | Guillaume | Edwards | 2446 | 27-JUL-07 07.03.08.302945 AM | 103679.3 | 5 | 5 | 2350 | 2341.9 | 39 |
| 117 | Guillaume | Edwards | 2429 | 10-NOV-07 03.49.25.526321 AM | 50125 | 1 | 10 | 3106 | 42 | 200 |
| 117 | Guillaume | Edwards | 2429 | 10-NOV-07 03.49.25.526321 AM | 50125 | 2 | 10 | 3108 | 76 | 40 |
| 117 | Guillaume | Edwards | 2429 | 10-NOV-07 03.49.25.526321 AM | 50125 | 3 | 10 | 3110 | 45 | 43 |
| 117 | Guillaume | Edwards | 2429 | 10-NOV-07 03.49.25.526321 AM | 50125 | 4 | 10 | 3123 | 79 | 46 |
| 117 | Guillaume | Edwards | 2429 | 10-NOV-07 03.49.25.526321 AM | 50125 | 5 | 10 | 3127 | 497 | 49 |
| 117 | Guillaume | Edwards | 2429 | 10-NOV-07 03.49.25.526321 AM | 50125 | 6 | 10 | 3133 | 46 | 52 |
| 117 | Guillaume | Edwards | 2429 | 10-NOV-07 03.49.25.526321 AM | 50125 | 7 | 10 | 3139 | 21 | 54 |
| 117 | Guillaume | Edwards | 2429 | 10-NOV-07 03.49.25.526321 AM | 50125 | 8 | 10 | 3150 | 17 | 55 |
| 117 | Guillaume | Edwards | 2429 | 10-NOV-07 03.49.25.526321 AM | 50125 | 9 | 10 | 3163 | 30 | 63 |
| 117 | Guillaume | Edwards | 2429 | 10-NOV-07 03.49.25.526321 AM | 50125 | 10 | 10 | 3165 | 36 | 67 |
| 117 | Guillaume | Edwards | 2370 | 27-JUN-08 12.22.11.647398 AM | 126 | 1 | 1 | 1910 | 14 | 9 |
| 118 | Maurice | Mahoney | 2371 | 16-MAY-07 01.34.56.113356 AM | 79405.6 | 1 | 8 | 2274 | 157 | 6 |
| 118 | Maurice | Mahoney | 2371 | 16-MAY-07 01.34.56.113356 AM | 79405.6 | 2 | 8 | 2293 | 96 | 8 |
| 118 | Maurice | Mahoney | 2371 | 16-MAY-07 01.34.56.113356 AM | 79405.6 | 3 | 8 | 2299 | 73 | 15 |
| 118 | Maurice | Mahoney | 2371 | 16-MAY-07 01.34.56.113356 AM | 79405.6 | 4 | 8 | 2316 | 21 | 21 |
| 118 | Maurice | Mahoney | 2371 | 16-MAY-07 01.34.56.113356 AM | 79405.6 | 5 | 8 | 2323 | 17 | 24 |
| 118 | Maurice | Mahoney | 2371 | 16-MAY-07 01.34.56.113356 AM | 79405.6 | 6 | 8 | 2334 | 3.3 | 26 |
| 118 | Maurice | Mahoney | 2371 | 16-MAY-07 01.34.56.113356 AM | 79405.6 | 7 | 8 | 2339 | 25 | 29 |
| 118 | Maurice | Mahoney | 2371 | 16-MAY-07 01.34.56.113356 AM | 79405.6 | 8 | 8 | 2350 | 2341.9 | 32 |
| 118 | Maurice | Mahoney | 2457 | 31-OCT-07 11.22.16.162632 PM | 21586.2 | 1 | 7 | 3108 | 72 | 36 |
| 118 | Maurice | Mahoney | 2457 | 31-OCT-07 11.22.16.162632 PM | 21586.2 | 2 | 7 | 3123 | 79 | 14 |
| 118 | Maurice | Mahoney | 2457 | 31-OCT-07 11.22.16.162632 PM | 21586.2 | 3 | 7 | 3127 | 488.4 | 17 |
| 118 | Maurice | Mahoney | 2457 | 31-OCT-07 11.22.16.162632 PM | 21586.2 | 4 | 7 | 3150 | 17 | 27 |
| 118 | Maurice | Mahoney | 2457 | 31-OCT-07 11.22.16.162632 PM | 21586.2 | 5 | 7 | 3155 | 44 | 32 |
| 118 | Maurice | Mahoney | 2457 | 31-OCT-07 11.22.16.162632 PM | 21586.2 | 6 | 7 | 3170 | 145.2 | 42 |
| 118 | Maurice | Mahoney | 2457 | 31-OCT-07 11.22.16.162632 PM | 21586.2 | 7 | 7 | 3172 | 36 | 45 |
| 119 | Maurice | Hasan | 2372 | 27-FEB-07 12.22.33.356789 AM | 16447.2 | 1 | 10 | 3106 | 48 | 6 |
| 119 | Maurice | Hasan | 2372 | 27-FEB-07 12.22.33.356789 AM | 16447.2 | 2 | 10 | 3108 | 74 | 2 |
| 119 | Maurice | Hasan | 2372 | 27-FEB-07 12.22.33.356789 AM | 16447.2 | 3 | 10 | 3110 | 42 | 7 |
| 119 | Maurice | Hasan | 2372 | 27-FEB-07 12.22.33.356789 AM | 16447.2 | 4 | 10 | 3123 | 81 | 10 |
| 119 | Maurice | Hasan | 2372 | 27-FEB-07 12.22.33.356789 AM | 16447.2 | 5 | 10 | 3127 | 496 | 13 |
| 119 | Maurice | Hasan | 2372 | 27-FEB-07 12.22.33.356789 AM | 16447.2 | 6 | 10 | 3134 | 17 | 17 |
| 119 | Maurice | Hasan | 2372 | 27-FEB-07 12.22.33.356789 AM | 16447.2 | 7 | 10 | 3143 | 15 | 21 |
| 119 | Maurice | Hasan | 2372 | 27-FEB-07 12.22.33.356789 AM | 16447.2 | 8 | 10 | 3163 | 30 | 30 |
| 119 | Maurice | Hasan | 2372 | 27-FEB-07 12.22.33.356789 AM | 16447.2 | 9 | 10 | 3167 | 54 | 32 |
| 119 | Maurice | Hasan | 2372 | 27-FEB-07 12.22.33.356789 AM | 16447.2 | 10 | 10 | 3170 | 145.2 | 36 |
| 120 | Diane | Higgins | 2373 | 27-FEB-08 01.34.51.220065 AM | 416 | 1 | 2 | 1820 | 49 | 8 |
| 120 | Diane | Higgins | 2373 | 27-FEB-08 01.34.51.220065 AM | 416 | 2 | 2 | 1825 | 24 | 1 |
| 121 | Dianne | Sen | 2374 | 27-FEB-08 02.41.45.109654 AM | 4797 | 1 | 4 | 2422 | 150 | 10 |
| 121 | Dianne | Sen | 2374 | 27-FEB-08 02.41.45.109654 AM | 4797 | 2 | 4 | 2423 | 78 | 6 |
| 121 | Dianne | Sen | 2374 | 27-FEB-08 02.41.45.109654 AM | 4797 | 3 | 4 | 2449 | 78 | 15 |
| 121 | Dianne | Sen | 2374 | 27-FEB-08 02.41.45.109654 AM | 4797 | 4 | 4 | 2467 | 79 | 21 |
| 122 | Maurice | Daltrey | 2375 | 26-FEB-07 03.49.50.459233 AM | 103834.4 | 1 | 13 | 3106 | 42 | 140 |
| 122 | Maurice | Daltrey | 2375 | 26-FEB-07 03.49.50.459233 AM | 103834.4 | 2 | 13 | 3112 | 71 | 84 |
| 122 | Maurice | Daltrey | 2375 | 26-FEB-07 03.49.50.459233 AM | 103834.4 | 3 | 13 | 3117 | 38 | 85 |
| 122 | Maurice | Daltrey | 2375 | 26-FEB-07 03.49.50.459233 AM | 103834.4 | 4 | 13 | 3127 | 488.4 | 86 |
| 122 | Maurice | Daltrey | 2375 | 26-FEB-07 03.49.50.459233 AM | 103834.4 | 5 | 13 | 3133 | 45 | 88 |
| 122 | Maurice | Daltrey | 2375 | 26-FEB-07 03.49.50.459233 AM | 103834.4 | 6 | 13 | 3134 | 17 | 90 |
| 122 | Maurice | Daltrey | 2375 | 26-FEB-07 03.49.50.459233 AM | 103834.4 | 7 | 13 | 3143 | 15 | 93 |
| 122 | Maurice | Daltrey | 2375 | 26-FEB-07 03.49.50.459233 AM | 103834.4 | 8 | 13 | 3150 | 17 | 93 |
| 122 | Maurice | Daltrey | 2375 | 26-FEB-07 03.49.50.459233 AM | 103834.4 | 9 | 13 | 3155 | 45 | 98 |
| 122 | Maurice | Daltrey | 2375 | 26-FEB-07 03.49.50.459233 AM | 103834.4 | 10 | 13 | 3163 | 30 | 99 |
| 122 | Maurice | Daltrey | 2375 | 26-FEB-07 03.49.50.459233 AM | 103834.4 | 11 | 13 | 3165 | 36 | 103 |
| 122 | Maurice | Daltrey | 2375 | 26-FEB-07 03.49.50.459233 AM | 103834.4 | 12 | 13 | 3171 | 132 | 107 |
| 122 | Maurice | Daltrey | 2375 | 26-FEB-07 03.49.50.459233 AM | 103834.4 | 13 | 13 | 3176 | 120 | 109 |
| 123 | Elizabeth | Brown | 2376 | 07-JUN-07 06.18.08.883310 AM | 11006.2 | 1 | 10 | 2270 | 60 | 14 |
| 123 | Elizabeth | Brown | 2376 | 07-JUN-07 06.18.08.883310 AM | 11006.2 | 2 | 10 | 2276 | 236.5 | 4 |
| 123 | Elizabeth | Brown | 2376 | 07-JUN-07 06.18.08.883310 AM | 11006.2 | 3 | 10 | 2293 | 99 | 13 |
| 123 | Elizabeth | Brown | 2376 | 07-JUN-07 06.18.08.883310 AM | 11006.2 | 4 | 10 | 2299 | 73 | 17 |
| 123 | Elizabeth | Brown | 2376 | 07-JUN-07 06.18.08.883310 AM | 11006.2 | 5 | 10 | 2302 | 133.1 | 21 |
| 123 | Elizabeth | Brown | 2376 | 07-JUN-07 06.18.08.883310 AM | 11006.2 | 6 | 10 | 2311 | 95 | 25 |
| 123 | Elizabeth | Brown | 2376 | 07-JUN-07 06.18.08.883310 AM | 11006.2 | 7 | 10 | 2316 | 21 | 27 |
| 123 | Elizabeth | Brown | 2376 | 07-JUN-07 06.18.08.883310 AM | 11006.2 | 8 | 10 | 2319 | 25 | 32 |
| 123 | Elizabeth | Brown | 2376 | 07-JUN-07 06.18.08.883310 AM | 11006.2 | 9 | 10 | 2326 | 1.1 | 33 |
| 123 | Elizabeth | Brown | 2376 | 07-JUN-07 06.18.08.883310 AM | 11006.2 | 10 | 10 | 2334 | 3.3 | 36 |
| 141 | Maximilian | Henner | 2377 | 07-JUN-07 07.03.01.001100 AM | 38017.8 | 1 | 6 | 2289 | 42 | 130 |
| 141 | Maximilian | Henner | 2377 | 07-JUN-07 07.03.01.001100 AM | 38017.8 | 2 | 6 | 2302 | 147 | 119 |
| 141 | Maximilian | Henner | 2377 | 07-JUN-07 07.03.01.001100 AM | 38017.8 | 3 | 6 | 2311 | 95 | 121 |
| 141 | Maximilian | Henner | 2377 | 07-JUN-07 07.03.01.001100 AM | 38017.8 | 4 | 6 | 2319 | 25 | 131 |
| 141 | Maximilian | Henner | 2377 | 07-JUN-07 07.03.01.001100 AM | 38017.8 | 5 | 6 | 2326 | 1.1 | 132 |
| 141 | Maximilian | Henner | 2377 | 07-JUN-07 07.03.01.001100 AM | 38017.8 | 6 | 6 | 2330 | 1.1 | 136 |
| 142 | Sachin | Spielberg | 2378 | 24-MAY-07 08.59.10.010101 AM | 25691.3 | 1 | 8 | 2403 | 113.3 | 20 |
| 142 | Sachin | Spielberg | 2378 | 24-MAY-07 08.59.10.010101 AM | 25691.3 | 2 | 8 | 2412 | 95 | 2 |
| 142 | Sachin | Spielberg | 2378 | 24-MAY-07 08.59.10.010101 AM | 25691.3 | 3 | 8 | 2414 | 438.9 | 7 |
| 142 | Sachin | Spielberg | 2378 | 24-MAY-07 08.59.10.010101 AM | 25691.3 | 4 | 8 | 2417 | 27 | 11 |
| 142 | Sachin | Spielberg | 2378 | 24-MAY-07 08.59.10.010101 AM | 25691.3 | 5 | 8 | 2423 | 79 | 11 |
| 142 | Sachin | Spielberg | 2378 | 24-MAY-07 08.59.10.010101 AM | 25691.3 | 6 | 8 | 2424 | 217.8 | 15 |
| 142 | Sachin | Spielberg | 2378 | 24-MAY-07 08.59.10.010101 AM | 25691.3 | 7 | 8 | 2457 | 4.4 | 25 |
| 142 | Sachin | Spielberg | 2378 | 24-MAY-07 08.59.10.010101 AM | 25691.3 | 8 | 8 | 2459 | 624.8 | 25 |
| 143 | Sachin | Neeson | 2380 | 16-MAY-07 09.53.02.909090 AM | 27132.6 | 1 | 13 | 3106 | 42 | 26 |
| 143 | Sachin | Neeson | 2380 | 16-MAY-07 09.53.02.909090 AM | 27132.6 | 2 | 13 | 3108 | 75 | 18 |
| 143 | Sachin | Neeson | 2380 | 16-MAY-07 09.53.02.909090 AM | 27132.6 | 3 | 13 | 3117 | 38 | 23 |
| 143 | Sachin | Neeson | 2380 | 16-MAY-07 09.53.02.909090 AM | 27132.6 | 4 | 13 | 3127 | 488.4 | 24 |
| 143 | Sachin | Neeson | 2380 | 16-MAY-07 09.53.02.909090 AM | 27132.6 | 5 | 13 | 3133 | 46 | 28 |
| 143 | Sachin | Neeson | 2380 | 16-MAY-07 09.53.02.909090 AM | 27132.6 | 6 | 13 | 3140 | 20 | 30 |
| 143 | Sachin | Neeson | 2380 | 16-MAY-07 09.53.02.909090 AM | 27132.6 | 7 | 13 | 3143 | 15 | 31 |
| 143 | Sachin | Neeson | 2380 | 16-MAY-07 09.53.02.909090 AM | 27132.6 | 8 | 13 | 3150 | 17 | 33 |
| 143 | Sachin | Neeson | 2380 | 16-MAY-07 09.53.02.909090 AM | 27132.6 | 9 | 13 | 3155 | 45 | 33 |
| 143 | Sachin | Neeson | 2380 | 16-MAY-07 09.53.02.909090 AM | 27132.6 | 10 | 13 | 3163 | 32 | 36 |
| 143 | Sachin | Neeson | 2380 | 16-MAY-07 09.53.02.909090 AM | 27132.6 | 11 | 13 | 3167 | 52 | 37 |
| 143 | Sachin | Neeson | 2380 | 16-MAY-07 09.53.02.909090 AM | 27132.6 | 12 | 13 | 3176 | 113.3 | 40 |
| 143 | Sachin | Neeson | 2380 | 16-MAY-07 09.53.02.909090 AM | 27132.6 | 13 | 13 | 3187 | 2.2 | 40 |
| 144 | Sivaji | Landis | 2445 | 27-JUL-06 03.34.38.362632 PM | 5537.8 | 1 | 7 | 2270 | 66 | 5 |
| 144 | Sivaji | Landis | 2445 | 27-JUL-06 03.34.38.362632 PM | 5537.8 | 2 | 7 | 2278 | 49 | 3 |
| 144 | Sivaji | Landis | 2445 | 27-JUL-06 03.34.38.362632 PM | 5537.8 | 3 | 7 | 2293 | 97 | 11 |
| 144 | Sivaji | Landis | 2445 | 27-JUL-06 03.34.38.362632 PM | 5537.8 | 4 | 7 | 2299 | 72 | 14 |
| 144 | Sivaji | Landis | 2445 | 27-JUL-06 03.34.38.362632 PM | 5537.8 | 5 | 7 | 2311 | 95 | 24 |
| 144 | Sivaji | Landis | 2445 | 27-JUL-06 03.34.38.362632 PM | 5537.8 | 6 | 7 | 2319 | 25 | 27 |
| 144 | Sivaji | Landis | 2445 | 27-JUL-06 03.34.38.362632 PM | 5537.8 | 7 | 7 | 2326 | 1.1 | 28 |
| 144 | Sivaji | Landis | 2435 | 02-SEP-07 11.22.53.134567 PM | 62303 | 1 | 9 | 2289 | 48 | 35 |
| 144 | Sivaji | Landis | 2435 | 02-SEP-07 11.22.53.134567 PM | 62303 | 2 | 9 | 2299 | 75 | 4 |
| 144 | Sivaji | Landis | 2435 | 02-SEP-07 11.22.53.134567 PM | 62303 | 3 | 9 | 2311 | 86.9 | 8 |
| 144 | Sivaji | Landis | 2435 | 02-SEP-07 11.22.53.134567 PM | 62303 | 4 | 9 | 2316 | 21 | 10 |
| 144 | Sivaji | Landis | 2435 | 02-SEP-07 11.22.53.134567 PM | 62303 | 5 | 9 | 2323 | 18 | 12 |
| 144 | Sivaji | Landis | 2435 | 02-SEP-07 11.22.53.134567 PM | 62303 | 6 | 9 | 2334 | 3.3 | 14 |
| 144 | Sivaji | Landis | 2435 | 02-SEP-07 11.22.53.134567 PM | 62303 | 7 | 9 | 2339 | 25 | 19 |
| 144 | Sivaji | Landis | 2435 | 02-SEP-07 11.22.53.134567 PM | 62303 | 8 | 9 | 2350 | 2341.9 | 24 |
| 144 | Sivaji | Landis | 2435 | 02-SEP-07 11.22.53.134567 PM | 62303 | 9 | 9 | 2365 | 75 | 33 |
| 144 | Sivaji | Landis | 2363 | 23-OCT-07 05.49.56.346122 PM | 10082.3 | 1 | 9 | 2264 | 199.1 | 9 |
| 144 | Sivaji | Landis | 2363 | 23-OCT-07 05.49.56.346122 PM | 10082.3 | 2 | 9 | 2272 | 129 | 7 |
| 144 | Sivaji | Landis | 2363 | 23-OCT-07 05.49.56.346122 PM | 10082.3 | 3 | 9 | 2299 | 74 | 25 |
| 144 | Sivaji | Landis | 2363 | 23-OCT-07 05.49.56.346122 PM | 10082.3 | 4 | 9 | 2308 | 57 | 26 |
| 144 | Sivaji | Landis | 2363 | 23-OCT-07 05.49.56.346122 PM | 10082.3 | 5 | 9 | 2311 | 86.9 | 29 |
| 144 | Sivaji | Landis | 2363 | 23-OCT-07 05.49.56.346122 PM | 10082.3 | 6 | 9 | 2319 | 24 | 31 |
| 144 | Sivaji | Landis | 2363 | 23-OCT-07 05.49.56.346122 PM | 10082.3 | 7 | 9 | 2323 | 18 | 34 |
| 144 | Sivaji | Landis | 2363 | 23-OCT-07 05.49.56.346122 PM | 10082.3 | 8 | 9 | 2326 | 1.1 | 37 |
| 144 | Sivaji | Landis | 2363 | 23-OCT-07 05.49.56.346122 PM | 10082.3 | 9 | 9 | 2334 | 3.3 | 42 |
| 144 | Sivaji | Landis | 2422 | 16-DEC-07 08.19.55.462332 PM | 11188.5 | 1 | 9 | 3106 | 46 | 18 |
| 144 | Sivaji | Landis | 2422 | 16-DEC-07 08.19.55.462332 PM | 11188.5 | 2 | 9 | 3117 | 41 | 5 |
| 144 | Sivaji | Landis | 2422 | 16-DEC-07 08.19.55.462332 PM | 11188.5 | 3 | 9 | 3123 | 71.5 | 5 |
| 144 | Sivaji | Landis | 2422 | 16-DEC-07 08.19.55.462332 PM | 11188.5 | 4 | 9 | 3127 | 496 | 9 |
| 144 | Sivaji | Landis | 2422 | 16-DEC-07 08.19.55.462332 PM | 11188.5 | 5 | 9 | 3133 | 46 | 11 |
| 144 | Sivaji | Landis | 2422 | 16-DEC-07 08.19.55.462332 PM | 11188.5 | 6 | 9 | 3150 | 17 | 25 |
| 144 | Sivaji | Landis | 2422 | 16-DEC-07 08.19.55.462332 PM | 11188.5 | 7 | 9 | 3155 | 43 | 29 |
| 144 | Sivaji | Landis | 2422 | 16-DEC-07 08.19.55.462332 PM | 11188.5 | 8 | 9 | 3163 | 30 | 35 |
| 144 | Sivaji | Landis | 2422 | 16-DEC-07 08.19.55.462332 PM | 11188.5 | 9 | 9 | 3167 | 54 | 39 |
| 144 | Sivaji | Landis | 2382 | 14-MAY-08 10.19.03.828321 AM | 71173 | 1 | 11 | 3106 | 42 | 160 |
| 144 | Sivaji | Landis | 2382 | 14-MAY-08 10.19.03.828321 AM | 71173 | 2 | 11 | 3110 | 43 | 64 |
| 144 | Sivaji | Landis | 2382 | 14-MAY-08 10.19.03.828321 AM | 71173 | 3 | 11 | 3114 | 100 | 65 |
| 144 | Sivaji | Landis | 2382 | 14-MAY-08 10.19.03.828321 AM | 71173 | 4 | 11 | 3117 | 35 | 66 |
| 144 | Sivaji | Landis | 2382 | 14-MAY-08 10.19.03.828321 AM | 71173 | 5 | 11 | 3123 | 79 | 71 |
| 144 | Sivaji | Landis | 2382 | 14-MAY-08 10.19.03.828321 AM | 71173 | 6 | 11 | 3127 | 496 | 71 |
| 144 | Sivaji | Landis | 2382 | 14-MAY-08 10.19.03.828321 AM | 71173 | 7 | 11 | 3129 | 42 | 76 |
| 144 | Sivaji | Landis | 2382 | 14-MAY-08 10.19.03.828321 AM | 71173 | 8 | 11 | 3139 | 21 | 79 |
| 144 | Sivaji | Landis | 2382 | 14-MAY-08 10.19.03.828321 AM | 71173 | 9 | 11 | 3143 | 15 | 82 |
| 144 | Sivaji | Landis | 2382 | 14-MAY-08 10.19.03.828321 AM | 71173 | 10 | 11 | 3163 | 29 | 89 |
| 144 | Sivaji | Landis | 2382 | 14-MAY-08 10.19.03.828321 AM | 71173 | 11 | 11 | 3165 | 37 | 92 |
| 145 | Mammutti | Pacino | 2448 | 18-JUN-07 04.41.49.262632 PM | 1388 | 1 | 6 | 3106 | 44 | 3 |
| 145 | Mammutti | Pacino | 2448 | 18-JUN-07 04.41.49.262632 PM | 1388 | 2 | 6 | 3114 | 99 | 0 |
| 145 | Mammutti | Pacino | 2448 | 18-JUN-07 04.41.49.262632 PM | 1388 | 3 | 6 | 3133 | 42 | 11 |
| 145 | Mammutti | Pacino | 2448 | 18-JUN-07 04.41.49.262632 PM | 1388 | 4 | 6 | 3134 | 17 | 14 |
| 145 | Mammutti | Pacino | 2448 | 18-JUN-07 04.41.49.262632 PM | 1388 | 5 | 6 | 3139 | 20 | 15 |
| 145 | Mammutti | Pacino | 2448 | 18-JUN-07 04.41.49.262632 PM | 1388 | 6 | 6 | 3143 | 16 | 16 |
| 145 | Mammutti | Pacino | 2364 | 28-AUG-07 06.18.45.942399 PM | 9500 | 1 | 2 | 1910 | 14 | 6 |
| 145 | Mammutti | Pacino | 2364 | 28-AUG-07 06.18.45.942399 PM | 9500 | 2 | 2 | 1948 | 470.8 | 20 |
| 145 | Mammutti | Pacino | 2455 | 20-SEP-07 11.34.11.456789 AM | 14087.5 | 1 | 3 | 2471 | 482.9 | 3 |
| 145 | Mammutti | Pacino | 2455 | 20-SEP-07 11.34.11.456789 AM | 14087.5 | 2 | 3 | 2496 | 268.4 | 32 |
| 145 | Mammutti | Pacino | 2455 | 20-SEP-07 11.34.11.456789 AM | 14087.5 | 3 | 3 | 2536 | 75 | 54 |
| 145 | Mammutti | Pacino | 2423 | 21-NOV-07 10.22.33.362632 AM | 10367.7 | 1 | 7 | 3220 | 39 | 8 |
| 145 | Mammutti | Pacino | 2423 | 21-NOV-07 10.22.33.362632 AM | 10367.7 | 2 | 7 | 3224 | 32 | 3 |
| 145 | Mammutti | Pacino | 2423 | 21-NOV-07 10.22.33.362632 AM | 10367.7 | 3 | 7 | 3245 | 214.5 | 13 |
| 145 | Mammutti | Pacino | 2423 | 21-NOV-07 10.22.33.362632 AM | 10367.7 | 4 | 7 | 3246 | 212.3 | 14 |
| 145 | Mammutti | Pacino | 2423 | 21-NOV-07 10.22.33.362632 AM | 10367.7 | 5 | 7 | 3251 | 26 | 16 |
| 145 | Mammutti | Pacino | 2423 | 21-NOV-07 10.22.33.362632 AM | 10367.7 | 6 | 7 | 3258 | 78 | 21 |
| 145 | Mammutti | Pacino | 2423 | 21-NOV-07 10.22.33.362632 AM | 10367.7 | 7 | 7 | 3290 | 65 | 33 |
| 145 | Mammutti | Pacino | 2383 | 12-MAY-08 11.22.30.545103 AM | 36374.7 | 1 | 7 | 2409 | 194.7 | 37 |
| 145 | Mammutti | Pacino | 2383 | 12-MAY-08 11.22.30.545103 AM | 36374.7 | 2 | 7 | 2418 | 56 | 45 |
| 145 | Mammutti | Pacino | 2383 | 12-MAY-08 11.22.30.545103 AM | 36374.7 | 3 | 7 | 2422 | 146 | 46 |
| 145 | Mammutti | Pacino | 2383 | 12-MAY-08 11.22.30.545103 AM | 36374.7 | 4 | 7 | 2430 | 174 | 50 |
| 145 | Mammutti | Pacino | 2383 | 12-MAY-08 11.22.30.545103 AM | 36374.7 | 5 | 7 | 2439 | 115.5 | 54 |
| 145 | Mammutti | Pacino | 2383 | 12-MAY-08 11.22.30.545103 AM | 36374.7 | 6 | 7 | 2457 | 4.4 | 62 |
| 145 | Mammutti | Pacino | 2383 | 12-MAY-08 11.22.30.545103 AM | 36374.7 | 7 | 7 | 2462 | 75 | 63 |
| 146 | Elia | Fawcett | 2379 | 16-MAY-07 02.22.24.234567 AM | 17848.2 | 1 | 5 | 3106 | 42 | 92 |
| 146 | Elia | Fawcett | 2379 | 16-MAY-07 02.22.24.234567 AM | 17848.2 | 2 | 5 | 3114 | 98 | 14 |
| 146 | Elia | Fawcett | 2379 | 16-MAY-07 02.22.24.234567 AM | 17848.2 | 3 | 5 | 3127 | 488.4 | 23 |
| 146 | Elia | Fawcett | 2379 | 16-MAY-07 02.22.24.234567 AM | 17848.2 | 4 | 5 | 3139 | 21 | 34 |
| 146 | Elia | Fawcett | 2379 | 16-MAY-07 02.22.24.234567 AM | 17848.2 | 5 | 5 | 3140 | 19 | 35 |
| 146 | Elia | Fawcett | 2449 | 13-JUN-07 05.49.07.162632 PM | 86 | 1 | 1 | 2522 | 43 | 2 |
| 146 | Elia | Fawcett | 2365 | 28-AUG-07 07.03.34.003399 PM | 27455.3 | 1 | 12 | 2289 | 48 | 92 |
| 146 | Elia | Fawcett | 2365 | 28-AUG-07 07.03.34.003399 PM | 27455.3 | 2 | 12 | 2293 | 99 | 28 |
| 146 | Elia | Fawcett | 2365 | 28-AUG-07 07.03.34.003399 PM | 27455.3 | 3 | 12 | 2302 | 133.1 | 29 |
| 146 | Elia | Fawcett | 2365 | 28-AUG-07 07.03.34.003399 PM | 27455.3 | 4 | 12 | 2308 | 56 | 29 |
| 146 | Elia | Fawcett | 2365 | 28-AUG-07 07.03.34.003399 PM | 27455.3 | 5 | 12 | 2311 | 95 | 29 |
| 146 | Elia | Fawcett | 2365 | 28-AUG-07 07.03.34.003399 PM | 27455.3 | 6 | 12 | 2316 | 22 | 34 |
| 146 | Elia | Fawcett | 2365 | 28-AUG-07 07.03.34.003399 PM | 27455.3 | 7 | 12 | 2319 | 24 | 38 |
| 146 | Elia | Fawcett | 2365 | 28-AUG-07 07.03.34.003399 PM | 27455.3 | 8 | 12 | 2322 | 19 | 43 |
| 146 | Elia | Fawcett | 2365 | 28-AUG-07 07.03.34.003399 PM | 27455.3 | 9 | 12 | 2326 | 1.1 | 44 |
| 146 | Elia | Fawcett | 2365 | 28-AUG-07 07.03.34.003399 PM | 27455.3 | 10 | 12 | 2335 | 97 | 45 |
| 146 | Elia | Fawcett | 2365 | 28-AUG-07 07.03.34.003399 PM | 27455.3 | 11 | 12 | 2339 | 25 | 50 |
| 146 | Elia | Fawcett | 2365 | 28-AUG-07 07.03.34.003399 PM | 27455.3 | 12 | 12 | 2340 | 72 | 54 |
| 146 | Elia | Fawcett | 2424 | 21-NOV-07 10.22.33.263332 AM | 13824 | 1 | 3 | 3350 | 693 | 11 |
| 146 | Elia | Fawcett | 2424 | 21-NOV-07 10.22.33.263332 AM | 13824 | 2 | 3 | 3354 | 541 | 9 |
| 146 | Elia | Fawcett | 2424 | 21-NOV-07 10.22.33.263332 AM | 13824 | 3 | 3 | 3359 | 111 | 12 |
| 146 | Elia | Fawcett | 2384 | 12-MAY-08 12.22.34.525972 PM | 29249.1 | 1 | 6 | 2289 | 43 | 95 |
| 146 | Elia | Fawcett | 2384 | 12-MAY-08 12.22.34.525972 PM | 29249.1 | 2 | 6 | 2299 | 71 | 48 |
| 146 | Elia | Fawcett | 2384 | 12-MAY-08 12.22.34.525972 PM | 29249.1 | 3 | 6 | 2316 | 21 | 58 |
| 146 | Elia | Fawcett | 2384 | 12-MAY-08 12.22.34.525972 PM | 29249.1 | 4 | 6 | 2322 | 22 | 59 |
| 146 | Elia | Fawcett | 2384 | 12-MAY-08 12.22.34.525972 PM | 29249.1 | 5 | 6 | 2330 | 1.1 | 61 |
| 146 | Elia | Fawcett | 2384 | 12-MAY-08 12.22.34.525972 PM | 29249.1 | 6 | 6 | 2359 | 249 | 77 |
| 147 | Ishwarya | Roberts | 2396 | 02-FEB-06 01.34.56.345678 AM | 34930 | 1 | 8 | 3106 | 44 | 150 |
| 147 | Ishwarya | Roberts | 2396 | 02-FEB-06 01.34.56.345678 AM | 34930 | 2 | 8 | 3108 | 76 | 75 |
| 147 | Ishwarya | Roberts | 2396 | 02-FEB-06 01.34.56.345678 AM | 34930 | 3 | 8 | 3110 | 44 | 79 |
| 147 | Ishwarya | Roberts | 2396 | 02-FEB-06 01.34.56.345678 AM | 34930 | 4 | 8 | 3114 | 100 | 83 |
| 147 | Ishwarya | Roberts | 2396 | 02-FEB-06 01.34.56.345678 AM | 34930 | 5 | 8 | 3140 | 19 | 93 |
| 147 | Ishwarya | Roberts | 2396 | 02-FEB-06 01.34.56.345678 AM | 34930 | 6 | 8 | 3150 | 17 | 93 |
| 147 | Ishwarya | Roberts | 2396 | 02-FEB-06 01.34.56.345678 AM | 34930 | 7 | 8 | 3155 | 47 | 98 |
| 147 | Ishwarya | Roberts | 2396 | 02-FEB-06 01.34.56.345678 AM | 34930 | 8 | 8 | 3163 | 29 | 100 |
| 147 | Ishwarya | Roberts | 2425 | 16-NOV-06 11.34.22.162552 PM | 1500.8 | 1 | 3 | 3501 | 492.8 | 3 |
| 147 | Ishwarya | Roberts | 2425 | 16-NOV-06 11.34.22.162552 PM | 1500.8 | 2 | 3 | 3511 | 9 | 2 |
| 147 | Ishwarya | Roberts | 2425 | 16-NOV-06 11.34.22.162552 PM | 1500.8 | 3 | 3 | 3515 | 1.1 | 4 |
| 147 | Ishwarya | Roberts | 2450 | 11-APR-07 06.18.10.362632 PM | 1636 | 1 | 6 | 3191 | 1.1 | 4 |
| 147 | Ishwarya | Roberts | 2450 | 11-APR-07 06.18.10.362632 PM | 1636 | 2 | 6 | 3193 | 2.2 | 3 |
| 147 | Ishwarya | Roberts | 2450 | 11-APR-07 06.18.10.362632 PM | 1636 | 3 | 6 | 3197 | 44 | 5 |
| 147 | Ishwarya | Roberts | 2450 | 11-APR-07 06.18.10.362632 PM | 1636 | 4 | 6 | 3216 | 29 | 11 |
| 147 | Ishwarya | Roberts | 2450 | 11-APR-07 06.18.10.362632 PM | 1636 | 5 | 6 | 3220 | 41 | 14 |
| 147 | Ishwarya | Roberts | 2450 | 11-APR-07 06.18.10.362632 PM | 1636 | 6 | 6 | 3224 | 32 | 16 |
| 147 | Ishwarya | Roberts | 2366 | 28-AUG-07 08.59.23.144778 PM | 37319.4 | 1 | 10 | 2359 | 226.6 | 8 |
| 147 | Ishwarya | Roberts | 2366 | 28-AUG-07 08.59.23.144778 PM | 37319.4 | 2 | 10 | 2373 | 6 | 7 |
| 147 | Ishwarya | Roberts | 2366 | 28-AUG-07 08.59.23.144778 PM | 37319.4 | 3 | 10 | 2382 | 804.1 | 10 |
| 147 | Ishwarya | Roberts | 2366 | 28-AUG-07 08.59.23.144778 PM | 37319.4 | 4 | 10 | 2394 | 116.6 | 11 |
| 147 | Ishwarya | Roberts | 2366 | 28-AUG-07 08.59.23.144778 PM | 37319.4 | 5 | 10 | 2395 | 120 | 12 |
| 147 | Ishwarya | Roberts | 2366 | 28-AUG-07 08.59.23.144778 PM | 37319.4 | 6 | 10 | 2400 | 418 | 16 |
| 147 | Ishwarya | Roberts | 2366 | 28-AUG-07 08.59.23.144778 PM | 37319.4 | 7 | 10 | 2406 | 195.8 | 20 |
| 147 | Ishwarya | Roberts | 2366 | 28-AUG-07 08.59.23.144778 PM | 37319.4 | 8 | 10 | 2409 | 194.7 | 22 |
| 147 | Ishwarya | Roberts | 2366 | 28-AUG-07 08.59.23.144778 PM | 37319.4 | 9 | 10 | 2415 | 339.9 | 24 |
| 147 | Ishwarya | Roberts | 2366 | 28-AUG-07 08.59.23.144778 PM | 37319.4 | 10 | 10 | 2419 | 69 | 24 |
| 147 | Ishwarya | Roberts | 2385 | 08-DEC-07 11.34.11.331392 AM | 295892 | 1 | 6 | 2289 | 43 | 200 |
| 147 | Ishwarya | Roberts | 2385 | 08-DEC-07 11.34.11.331392 AM | 295892 | 2 | 6 | 2302 | 133.1 | 87 |
| 147 | Ishwarya | Roberts | 2385 | 08-DEC-07 11.34.11.331392 AM | 295892 | 3 | 6 | 2311 | 86.9 | 96 |
| 147 | Ishwarya | Roberts | 2385 | 08-DEC-07 11.34.11.331392 AM | 295892 | 4 | 6 | 2319 | 25 | 97 |
| 147 | Ishwarya | Roberts | 2385 | 08-DEC-07 11.34.11.331392 AM | 295892 | 5 | 6 | 2335 | 91.3 | 106 |
| 147 | Ishwarya | Roberts | 2385 | 08-DEC-07 11.34.11.331392 AM | 295892 | 6 | 6 | 2350 | 2341.9 | 109 |
| 148 | Gustav | Steenburgen | 2426 | 17-NOV-06 12.22.11.262552 AM | 7200 | 1 | 5 | 3193 | 2.2 | 6 |
| 148 | Gustav | Steenburgen | 2426 | 17-NOV-06 12.22.11.262552 AM | 7200 | 2 | 5 | 3216 | 30 | 11 |
| 148 | Gustav | Steenburgen | 2426 | 17-NOV-06 12.22.11.262552 AM | 7200 | 3 | 5 | 3234 | 34 | 18 |
| 148 | Gustav | Steenburgen | 2426 | 17-NOV-06 12.22.11.262552 AM | 7200 | 4 | 5 | 3248 | 212.3 | 26 |
| 148 | Gustav | Steenburgen | 2426 | 17-NOV-06 12.22.11.262552 AM | 7200 | 5 | 5 | 3252 | 25 | 29 |
| 148 | Gustav | Steenburgen | 2406 | 29-JUN-07 04.41.20.098765 AM | 2854.2 | 1 | 4 | 2721 | 85 | 5 |
| 148 | Gustav | Steenburgen | 2406 | 29-JUN-07 04.41.20.098765 AM | 2854.2 | 2 | 4 | 2725 | 3.3 | 4 |
| 148 | Gustav | Steenburgen | 2406 | 29-JUN-07 04.41.20.098765 AM | 2854.2 | 3 | 4 | 2761 | 26 | 19 |
| 148 | Gustav | Steenburgen | 2406 | 29-JUN-07 04.41.20.098765 AM | 2854.2 | 4 | 4 | 2782 | 62 | 31 |
| 148 | Gustav | Steenburgen | 2386 | 06-DEC-07 12.22.34.225609 PM | 21116.9 | 1 | 8 | 2330 | 1.1 | 7 |
| 148 | Gustav | Steenburgen | 2386 | 06-DEC-07 12.22.34.225609 PM | 21116.9 | 2 | 8 | 2334 | 3.3 | 5 |
| 148 | Gustav | Steenburgen | 2386 | 06-DEC-07 12.22.34.225609 PM | 21116.9 | 3 | 8 | 2340 | 71 | 14 |
| 148 | Gustav | Steenburgen | 2386 | 06-DEC-07 12.22.34.225609 PM | 21116.9 | 4 | 8 | 2365 | 77 | 27 |
| 148 | Gustav | Steenburgen | 2386 | 06-DEC-07 12.22.34.225609 PM | 21116.9 | 5 | 8 | 2370 | 90 | 28 |
| 148 | Gustav | Steenburgen | 2386 | 06-DEC-07 12.22.34.225609 PM | 21116.9 | 6 | 8 | 2375 | 73 | 32 |
| 148 | Gustav | Steenburgen | 2386 | 06-DEC-07 12.22.34.225609 PM | 21116.9 | 7 | 8 | 2378 | 271.7 | 33 |
| 148 | Gustav | Steenburgen | 2386 | 06-DEC-07 12.22.34.225609 PM | 21116.9 | 8 | 8 | 2394 | 116.6 | 36 |
| 148 | Gustav | Steenburgen | 2451 | 17-DEC-07 05.03.52.562632 PM | 10474.6 | 1 | 2 | 1910 | 13 | 9 |
| 148 | Gustav | Steenburgen | 2451 | 17-DEC-07 05.03.52.562632 PM | 10474.6 | 2 | 2 | 1948 | 470.8 | 22 |
| 148 | Gustav | Steenburgen | 2367 | 27-JUN-08 09.53.32.335522 PM | 144054.8 | 1 | 8 | 2289 | 48 | 99 |
| 148 | Gustav | Steenburgen | 2367 | 27-JUN-08 09.53.32.335522 PM | 144054.8 | 2 | 8 | 2302 | 147 | 32 |
| 148 | Gustav | Steenburgen | 2367 | 27-JUN-08 09.53.32.335522 PM | 144054.8 | 3 | 8 | 2308 | 54 | 39 |
| 148 | Gustav | Steenburgen | 2367 | 27-JUN-08 09.53.32.335522 PM | 144054.8 | 4 | 8 | 2322 | 22 | 45 |
| 148 | Gustav | Steenburgen | 2367 | 27-JUN-08 09.53.32.335522 PM | 144054.8 | 5 | 8 | 2326 | 1.1 | 48 |
| 148 | Gustav | Steenburgen | 2367 | 27-JUN-08 09.53.32.335522 PM | 144054.8 | 6 | 8 | 2330 | 1.1 | 52 |
| 148 | Gustav | Steenburgen | 2367 | 27-JUN-08 09.53.32.335522 PM | 144054.8 | 7 | 8 | 2335 | 91.3 | 54 |
| 148 | Gustav | Steenburgen | 2367 | 27-JUN-08 09.53.32.335522 PM | 144054.8 | 8 | 8 | 2350 | 2341.9 | 54 |
| 149 | Markus | Rampling | 2387 | 11-MAR-07 03.34.56.536966 PM | 52758.9 | 1 | 6 | 2211 | 3.3 | 52 |
| 149 | Markus | Rampling | 2387 | 11-MAR-07 03.34.56.536966 PM | 52758.9 | 2 | 6 | 2243 | 332.2 | 20 |
| 149 | Markus | Rampling | 2387 | 11-MAR-07 03.34.56.536966 PM | 52758.9 | 3 | 6 | 2245 | 462 | 22 |
| 149 | Markus | Rampling | 2387 | 11-MAR-07 03.34.56.536966 PM | 52758.9 | 4 | 6 | 2252 | 788.7 | 27 |
| 149 | Markus | Rampling | 2387 | 11-MAR-07 03.34.56.536966 PM | 52758.9 | 5 | 6 | 2253 | 354.2 | 32 |
| 149 | Markus | Rampling | 2387 | 11-MAR-07 03.34.56.536966 PM | 52758.9 | 6 | 6 | 2268 | 75 | 42 |
| 149 | Markus | Rampling | 2434 | 13-SEP-07 05.49.30.647893 AM | 268651.8 | 1 | 7 | 2211 | 3.3 | 81 |
| 149 | Markus | Rampling | 2434 | 13-SEP-07 05.49.30.647893 AM | 268651.8 | 2 | 7 | 2236 | 949.3 | 84 |
| 149 | Markus | Rampling | 2434 | 13-SEP-07 05.49.30.647893 AM | 268651.8 | 3 | 7 | 2245 | 462 | 86 |
| 149 | Markus | Rampling | 2434 | 13-SEP-07 05.49.30.647893 AM | 268651.8 | 4 | 7 | 2252 | 788.7 | 87 |
| 149 | Markus | Rampling | 2434 | 13-SEP-07 05.49.30.647893 AM | 268651.8 | 5 | 7 | 2254 | 408.1 | 92 |
| 149 | Markus | Rampling | 2434 | 13-SEP-07 05.49.30.647893 AM | 268651.8 | 6 | 7 | 2257 | 371.8 | 94 |
| 149 | Markus | Rampling | 2434 | 13-SEP-07 05.49.30.647893 AM | 268651.8 | 7 | 7 | 2268 | 75 | 104 |
| 149 | Markus | Rampling | 2452 | 06-OCT-07 08.59.43.462632 PM | 12589 | 1 | 9 | 3117 | 38 | 140 |
| 149 | Markus | Rampling | 2452 | 06-OCT-07 08.59.43.462632 PM | 12589 | 2 | 9 | 3139 | 20 | 10 |
| 149 | Markus | Rampling | 2452 | 06-OCT-07 08.59.43.462632 PM | 12589 | 3 | 9 | 3143 | 15 | 12 |
| 149 | Markus | Rampling | 2452 | 06-OCT-07 08.59.43.462632 PM | 12589 | 4 | 9 | 3150 | 17 | 13 |
| 149 | Markus | Rampling | 2452 | 06-OCT-07 08.59.43.462632 PM | 12589 | 5 | 9 | 3155 | 44 | 13 |
| 149 | Markus | Rampling | 2452 | 06-OCT-07 08.59.43.462632 PM | 12589 | 6 | 9 | 3165 | 34 | 18 |
| 149 | Markus | Rampling | 2452 | 06-OCT-07 08.59.43.462632 PM | 12589 | 7 | 9 | 3170 | 145.2 | 20 |
| 149 | Markus | Rampling | 2452 | 06-OCT-07 08.59.43.462632 PM | 12589 | 8 | 9 | 3172 | 37 | 20 |
| 149 | Markus | Rampling | 2452 | 06-OCT-07 08.59.43.462632 PM | 12589 | 9 | 9 | 3173 | 80 | 23 |
| 149 | Markus | Rampling | 2427 | 10-NOV-07 01.34.22.362124 AM | 9055 | 1 | 7 | 2430 | 173 | 12 |
| 149 | Markus | Rampling | 2427 | 10-NOV-07 01.34.22.362124 AM | 9055 | 2 | 7 | 2439 | 121 | 1 |
| 149 | Markus | Rampling | 2427 | 10-NOV-07 01.34.22.362124 AM | 9055 | 3 | 7 | 2457 | 4.4 | 6 |
| 149 | Markus | Rampling | 2427 | 10-NOV-07 01.34.22.362124 AM | 9055 | 4 | 7 | 2464 | 66 | 6 |
| 149 | Markus | Rampling | 2427 | 10-NOV-07 01.34.22.362124 AM | 9055 | 5 | 7 | 2470 | 76 | 6 |
| 149 | Markus | Rampling | 2427 | 10-NOV-07 01.34.22.362124 AM | 9055 | 6 | 7 | 2496 | 268.4 | 19 |
| 149 | Markus | Rampling | 2427 | 10-NOV-07 01.34.22.362124 AM | 9055 | 7 | 7 | 2522 | 40 | 22 |
| 149 | Markus | Rampling | 2368 | 26-JUN-08 10.19.43.190089 PM | 60065 | 1 | 8 | 3106 | 48 | 150 |
| 149 | Markus | Rampling | 2368 | 26-JUN-08 10.19.43.190089 PM | 60065 | 2 | 8 | 3110 | 42 | 60 |
| 149 | Markus | Rampling | 2368 | 26-JUN-08 10.19.43.190089 PM | 60065 | 3 | 8 | 3117 | 38 | 62 |
| 149 | Markus | Rampling | 2368 | 26-JUN-08 10.19.43.190089 PM | 60065 | 4 | 8 | 3123 | 81 | 70 |
| 149 | Markus | Rampling | 2368 | 26-JUN-08 10.19.43.190089 PM | 60065 | 5 | 8 | 3127 | 496 | 70 |
| 149 | Markus | Rampling | 2368 | 26-JUN-08 10.19.43.190089 PM | 60065 | 6 | 8 | 3129 | 42 | 72 |
| 149 | Markus | Rampling | 2368 | 26-JUN-08 10.19.43.190089 PM | 60065 | 7 | 8 | 3143 | 16 | 75 |
| 149 | Markus | Rampling | 2368 | 26-JUN-08 10.19.43.190089 PM | 60065 | 8 | 8 | 3155 | 45 | 75 |
| 150 | Goldie | Slater | 2388 | 04-JUN-07 04.41.12.554435 PM | 282694.3 | 1 | 5 | 2289 | 43 | 150 |
| 150 | Goldie | Slater | 2388 | 04-JUN-07 04.41.12.554435 PM | 282694.3 | 2 | 5 | 2293 | 94 | 90 |
| 150 | Goldie | Slater | 2388 | 04-JUN-07 04.41.12.554435 PM | 282694.3 | 3 | 5 | 2308 | 56 | 96 |
| 150 | Goldie | Slater | 2388 | 04-JUN-07 04.41.12.554435 PM | 282694.3 | 4 | 5 | 2330 | 1.1 | 105 |
| 150 | Goldie | Slater | 2388 | 04-JUN-07 04.41.12.554435 PM | 282694.3 | 5 | 5 | 2350 | 2341.9 | 112 |
| 151 | Divine | Aykroyd | 2389 | 04-JUN-08 05.49.43.546954 PM | 17620 | 1 | 8 | 3106 | 43 | 180 |
| 151 | Divine | Aykroyd | 2389 | 04-JUN-08 05.49.43.546954 PM | 17620 | 2 | 8 | 3112 | 73 | 18 |
| 151 | Divine | Aykroyd | 2389 | 04-JUN-08 05.49.43.546954 PM | 17620 | 3 | 8 | 3123 | 80 | 21 |
| 151 | Divine | Aykroyd | 2389 | 04-JUN-08 05.49.43.546954 PM | 17620 | 4 | 8 | 3129 | 46 | 22 |
| 151 | Divine | Aykroyd | 2389 | 04-JUN-08 05.49.43.546954 PM | 17620 | 5 | 8 | 3143 | 15 | 30 |
| 151 | Divine | Aykroyd | 2389 | 04-JUN-08 05.49.43.546954 PM | 17620 | 6 | 8 | 3155 | 46 | 33 |
| 151 | Divine | Aykroyd | 2389 | 04-JUN-08 05.49.43.546954 PM | 17620 | 7 | 8 | 3165 | 34 | 43 |
| 151 | Divine | Aykroyd | 2389 | 04-JUN-08 05.49.43.546954 PM | 17620 | 8 | 8 | 3167 | 52 | 47 |
| 152 | Dieter | Matthau | 2390 | 18-NOV-07 04.18.50.546851 PM | 7616.8 | 1 | 3 | 1910 | 14 | 4 |
| 152 | Dieter | Matthau | 2390 | 18-NOV-07 04.18.50.546851 PM | 7616.8 | 2 | 3 | 1912 | 14 | 2 |
| 152 | Dieter | Matthau | 2390 | 18-NOV-07 04.18.50.546851 PM | 7616.8 | 3 | 3 | 1948 | 470.8 | 16 |
| 153 | Divine | Sheen | 2391 | 27-FEB-06 05.03.03.828330 PM | 48070.6 | 1 | 7 | 1787 | 101 | 5 |
| 153 | Divine | Sheen | 2391 | 27-FEB-06 05.03.03.828330 PM | 48070.6 | 2 | 7 | 1791 | 262.9 | 3 |
| 153 | Divine | Sheen | 2391 | 27-FEB-06 05.03.03.828330 PM | 48070.6 | 3 | 7 | 1797 | 348 | 7 |
| 153 | Divine | Sheen | 2391 | 27-FEB-06 05.03.03.828330 PM | 48070.6 | 4 | 7 | 1799 | 961.4 | 10 |
| 153 | Divine | Sheen | 2391 | 27-FEB-06 05.03.03.828330 PM | 48070.6 | 5 | 7 | 1808 | 55 | 15 |
| 153 | Divine | Sheen | 2391 | 27-FEB-06 05.03.03.828330 PM | 48070.6 | 6 | 7 | 1820 | 52 | 18 |
| 153 | Divine | Sheen | 2391 | 27-FEB-06 05.03.03.828330 PM | 48070.6 | 7 | 7 | 1822 | 1433.3 | 23 |
| 154 | Frederic | Grodin | 2392 | 21-JUL-07 08.59.57.571057 PM | 26632 | 1 | 9 | 3106 | 43 | 63 |
| 154 | Frederic | Grodin | 2392 | 21-JUL-07 08.59.57.571057 PM | 26632 | 2 | 9 | 3112 | 73 | 57 |
| 154 | Frederic | Grodin | 2392 | 21-JUL-07 08.59.57.571057 PM | 26632 | 3 | 9 | 3117 | 38 | 58 |
| 154 | Frederic | Grodin | 2392 | 21-JUL-07 08.59.57.571057 PM | 26632 | 4 | 9 | 3124 | 77 | 63 |
| 154 | Frederic | Grodin | 2392 | 21-JUL-07 08.59.57.571057 PM | 26632 | 5 | 9 | 3133 | 45 | 66 |
| 154 | Frederic | Grodin | 2392 | 21-JUL-07 08.59.57.571057 PM | 26632 | 6 | 9 | 3139 | 21 | 68 |
| 154 | Frederic | Grodin | 2392 | 21-JUL-07 08.59.57.571057 PM | 26632 | 7 | 9 | 3150 | 18 | 72 |
| 154 | Frederic | Grodin | 2392 | 21-JUL-07 08.59.57.571057 PM | 26632 | 8 | 9 | 3155 | 49 | 77 |
| 154 | Frederic | Grodin | 2392 | 21-JUL-07 08.59.57.571057 PM | 26632 | 9 | 9 | 3165 | 40 | 81 |
| 155 | Frederico | Romero | 2393 | 10-FEB-08 07.53.19.528202 PM | 23431.9 | 1 | 11 | 3051 | 12 | 10 |
| 155 | Frederico | Romero | 2393 | 10-FEB-08 07.53.19.528202 PM | 23431.9 | 2 | 11 | 3060 | 295 | 2 |
| 155 | Frederico | Romero | 2393 | 10-FEB-08 07.53.19.528202 PM | 23431.9 | 3 | 11 | 3064 | 1017 | 5 |
| 155 | Frederico | Romero | 2393 | 10-FEB-08 07.53.19.528202 PM | 23431.9 | 4 | 11 | 3069 | 385 | 8 |
| 155 | Frederico | Romero | 2393 | 10-FEB-08 07.53.19.528202 PM | 23431.9 | 5 | 11 | 3077 | 260.7 | 8 |
| 155 | Frederico | Romero | 2393 | 10-FEB-08 07.53.19.528202 PM | 23431.9 | 6 | 11 | 3082 | 78 | 10 |
| 155 | Frederico | Romero | 2393 | 10-FEB-08 07.53.19.528202 PM | 23431.9 | 7 | 11 | 3086 | 211 | 13 |
| 155 | Frederico | Romero | 2393 | 10-FEB-08 07.53.19.528202 PM | 23431.9 | 8 | 11 | 3087 | 108.9 | 14 |
| 155 | Frederico | Romero | 2393 | 10-FEB-08 07.53.19.528202 PM | 23431.9 | 9 | 11 | 3091 | 278 | 19 |
| 155 | Frederico | Romero | 2393 | 10-FEB-08 07.53.19.528202 PM | 23431.9 | 10 | 11 | 3099 | 3.3 | 19 |
| 155 | Frederico | Romero | 2393 | 10-FEB-08 07.53.19.528202 PM | 23431.9 | 11 | 11 | 3108 | 69.3 | 30 |
| 156 | Goldie | Montand | 2395 | 02-FEB-06 08.19.11.227550 PM | 68501 | 1 | 7 | 2211 | 3.3 | 110 |
| 156 | Goldie | Montand | 2395 | 02-FEB-06 08.19.11.227550 PM | 68501 | 2 | 7 | 2243 | 332.2 | 27 |
| 156 | Goldie | Montand | 2395 | 02-FEB-06 08.19.11.227550 PM | 68501 | 3 | 7 | 2252 | 788.7 | 30 |
| 156 | Goldie | Montand | 2395 | 02-FEB-06 08.19.11.227550 PM | 68501 | 4 | 7 | 2255 | 690.8 | 34 |
| 156 | Goldie | Montand | 2395 | 02-FEB-06 08.19.11.227550 PM | 68501 | 5 | 7 | 2264 | 199.1 | 34 |
| 156 | Goldie | Montand | 2395 | 02-FEB-06 08.19.11.227550 PM | 68501 | 6 | 7 | 2268 | 71 | 37 |
| 156 | Goldie | Montand | 2395 | 02-FEB-06 08.19.11.227550 PM | 68501 | 7 | 7 | 2270 | 64 | 41 |
| 157 | Sidney | Capshaw | 2398 | 19-NOV-07 09.22.53.224175 PM | 7110.3 | 1 | 3 | 2471 | 482.9 | 5 |
| 157 | Sidney | Capshaw | 2398 | 19-NOV-07 09.22.53.224175 PM | 7110.3 | 2 | 3 | 2537 | 193.6 | 23 |
| 157 | Sidney | Capshaw | 2398 | 19-NOV-07 09.22.53.224175 PM | 7110.3 | 3 | 3 | 2594 | 9 | 27 |
| 158 | Frederico | Lyon | 2399 | 19-NOV-07 10.22.38.340990 PM | 25270.3 | 1 | 11 | 2289 | 44 | 120 |
| 158 | Frederico | Lyon | 2399 | 19-NOV-07 10.22.38.340990 PM | 25270.3 | 2 | 11 | 2293 | 94 | 12 |
| 158 | Frederico | Lyon | 2399 | 19-NOV-07 10.22.38.340990 PM | 25270.3 | 3 | 11 | 2299 | 76 | 15 |
| 158 | Frederico | Lyon | 2399 | 19-NOV-07 10.22.38.340990 PM | 25270.3 | 4 | 11 | 2302 | 149 | 17 |
| 158 | Frederico | Lyon | 2399 | 19-NOV-07 10.22.38.340990 PM | 25270.3 | 5 | 11 | 2308 | 56 | 17 |
| 158 | Frederico | Lyon | 2399 | 19-NOV-07 10.22.38.340990 PM | 25270.3 | 6 | 11 | 2311 | 86.9 | 20 |
| 158 | Frederico | Lyon | 2399 | 19-NOV-07 10.22.38.340990 PM | 25270.3 | 7 | 11 | 2316 | 22 | 24 |
| 158 | Frederico | Lyon | 2399 | 19-NOV-07 10.22.38.340990 PM | 25270.3 | 8 | 11 | 2326 | 1.1 | 27 |
| 158 | Frederico | Lyon | 2399 | 19-NOV-07 10.22.38.340990 PM | 25270.3 | 9 | 11 | 2330 | 1.1 | 28 |
| 158 | Frederico | Lyon | 2399 | 19-NOV-07 10.22.38.340990 PM | 25270.3 | 10 | 11 | 2335 | 100 | 33 |
| 158 | Frederico | Lyon | 2399 | 19-NOV-07 10.22.38.340990 PM | 25270.3 | 11 | 11 | 2359 | 226.6 | 38 |
| 159 | Eddie | Boyer | 2400 | 10-JUL-07 01.34.29.559387 AM | 69286.4 | 1 | 5 | 2976 | 52 | 4 |
| 159 | Eddie | Boyer | 2400 | 10-JUL-07 01.34.29.559387 AM | 69286.4 | 2 | 5 | 2982 | 41 | 1 |
| 159 | Eddie | Boyer | 2400 | 10-JUL-07 01.34.29.559387 AM | 69286.4 | 3 | 5 | 2986 | 123 | 4 |
| 159 | Eddie | Boyer | 2400 | 10-JUL-07 01.34.29.559387 AM | 69286.4 | 4 | 5 | 2999 | 880 | 16 |
| 159 | Eddie | Boyer | 2400 | 10-JUL-07 01.34.29.559387 AM | 69286.4 | 5 | 5 | 3003 | 2866.6 | 19 |
| 160 | Eddie | Stern | 2401 | 10-JUL-07 02.22.53.554822 AM | 969.2 | 1 | 2 | 2492 | 41 | 4 |
| 160 | Eddie | Stern | 2401 | 10-JUL-07 02.22.53.554822 AM | 969.2 | 2 | 2 | 2496 | 268.4 | 3 |
| 161 | Ernest | Weaver | 2402 | 02-JUL-07 03.34.44.665170 AM | 600 | 1 | 1 | 2536 | 75 | 8 |
| 162 | Ernest | George | 2403 | 01-JUL-07 04.49.13.615512 PM | 220 | 1 | 1 | 2522 | 44 | 5 |
| 163 | Ernest | Chandar | 2404 | 01-JUL-07 04.49.13.664085 PM | 510 | 1 | 2 | 2721 | 85 | 6 |
| 163 | Ernest | Chandar | 2404 | 01-JUL-07 04.49.13.664085 PM | 510 | 2 | 2 | 2808 | 0 | 37 |
| 164 | Charlotte | Kazan | 2405 | 01-JUL-07 04.49.13.678123 PM | 1233 | 1 | 1 | 2638 | 137 | 9 |
| 165 | Charlotte | Fonda | 2407 | 29-JUN-07 07.03.21.526005 AM | 2519 | 1 | 3 | 2721 | 85 | 5 |
| 165 | Charlotte | Fonda | 2407 | 29-JUN-07 07.03.21.526005 AM | 2519 | 2 | 3 | 2752 | 86 | 18 |
| 165 | Charlotte | Fonda | 2407 | 29-JUN-07 07.03.21.526005 AM | 2519 | 3 | 3 | 2761 | 26 | 21 |
| 166 | Dheeraj | Alexander | 2408 | 29-JUN-07 08.59.31.333617 AM | 309 | 1 | 3 | 2751 | 61 | 3 |
| 166 | Dheeraj | Alexander | 2408 | 29-JUN-07 08.59.31.333617 AM | 309 | 2 | 3 | 2761 | 26 | 1 |
| 166 | Dheeraj | Alexander | 2408 | 29-JUN-07 08.59.31.333617 AM | 309 | 3 | 3 | 2783 | 10 | 10 |
| 167 | Gerard | Hershey | 2409 | 29-JUN-07 09.53.41.984501 AM | 48 | 1 | 1 | 2810 | 6 | 8 |
| 168 | Hema | Voight | 2410 | 24-MAY-08 10.19.51.985501 AM | 45175 | 1 | 6 | 2976 | 46 | 10 |
| 168 | Hema | Voight | 2410 | 24-MAY-08 10.19.51.985501 AM | 45175 | 2 | 6 | 2982 | 40 | 5 |
| 168 | Hema | Voight | 2410 | 24-MAY-08 10.19.51.985501 AM | 45175 | 3 | 6 | 2986 | 120 | 6 |
| 168 | Hema | Voight | 2410 | 24-MAY-08 10.19.51.985501 AM | 45175 | 4 | 6 | 2995 | 68 | 8 |
| 168 | Hema | Voight | 2410 | 24-MAY-08 10.19.51.985501 AM | 45175 | 5 | 6 | 3003 | 2866.6 | 15 |
| 168 | Hema | Voight | 2410 | 24-MAY-08 10.19.51.985501 AM | 45175 | 6 | 6 | 3051 | 12 | 21 |
| 169 | Dheeraj | Davis | 2411 | 24-MAY-07 11.22.10.548639 AM | 15760.5 | 1 | 12 | 3082 | 81 | 2 |
| 169 | Dheeraj | Davis | 2411 | 24-MAY-07 11.22.10.548639 AM | 15760.5 | 2 | 12 | 3086 | 208 | 2 |
| 169 | Dheeraj | Davis | 2411 | 24-MAY-07 11.22.10.548639 AM | 15760.5 | 3 | 12 | 3097 | 2.2 | 6 |
| 169 | Dheeraj | Davis | 2411 | 24-MAY-07 11.22.10.548639 AM | 15760.5 | 4 | 12 | 3099 | 3.3 | 7 |
| 169 | Dheeraj | Davis | 2411 | 24-MAY-07 11.22.10.548639 AM | 15760.5 | 5 | 12 | 3101 | 73 | 8 |
| 169 | Dheeraj | Davis | 2411 | 24-MAY-07 11.22.10.548639 AM | 15760.5 | 6 | 12 | 3106 | 45 | 11 |
| 169 | Dheeraj | Davis | 2411 | 24-MAY-07 11.22.10.548639 AM | 15760.5 | 7 | 12 | 3112 | 72 | 17 |
| 169 | Dheeraj | Davis | 2411 | 24-MAY-07 11.22.10.548639 AM | 15760.5 | 8 | 12 | 3123 | 75 | 17 |
| 169 | Dheeraj | Davis | 2411 | 24-MAY-07 11.22.10.548639 AM | 15760.5 | 9 | 12 | 3124 | 84 | 17 |
| 169 | Dheeraj | Davis | 2411 | 24-MAY-07 11.22.10.548639 AM | 15760.5 | 10 | 12 | 3127 | 488.4 | 18 |
| 169 | Dheeraj | Davis | 2411 | 24-MAY-07 11.22.10.548639 AM | 15760.5 | 11 | 12 | 3133 | 43 | 23 |
| 169 | Dheeraj | Davis | 2411 | 24-MAY-07 11.22.10.548639 AM | 15760.5 | 12 | 12 | 3143 | 15 | 24 |
| 170 | Harry Dean | Fonda | 2412 | 29-MAR-06 10.22.09.509801 AM | 66816 | 1 | 9 | 3106 | 46 | 170 |
| 170 | Harry Dean | Fonda | 2412 | 29-MAR-06 10.22.09.509801 AM | 66816 | 2 | 9 | 3114 | 98 | 68 |
| 170 | Harry Dean | Fonda | 2412 | 29-MAR-06 10.22.09.509801 AM | 66816 | 3 | 9 | 3123 | 71.5 | 68 |
| 170 | Harry Dean | Fonda | 2412 | 29-MAR-06 10.22.09.509801 AM | 66816 | 4 | 9 | 3127 | 492 | 72 |
| 170 | Harry Dean | Fonda | 2412 | 29-MAR-06 10.22.09.509801 AM | 66816 | 5 | 9 | 3134 | 18 | 75 |
| 170 | Harry Dean | Fonda | 2412 | 29-MAR-06 10.22.09.509801 AM | 66816 | 6 | 9 | 3139 | 20 | 79 |
| 170 | Harry Dean | Fonda | 2412 | 29-MAR-06 10.22.09.509801 AM | 66816 | 7 | 9 | 3143 | 16 | 80 |
| 170 | Harry Dean | Fonda | 2412 | 29-MAR-06 10.22.09.509801 AM | 66816 | 8 | 9 | 3163 | 30 | 92 |
| 170 | Harry Dean | Fonda | 2412 | 29-MAR-06 10.22.09.509801 AM | 66816 | 9 | 9 | 3167 | 54 | 94 |
SELECT
oe.customers.customer_id,
oe.customers.cust_first_name,
oe.customers.cust_last_name,
oe.orders.order_id,
oe.orders.order_date,
oe.orders.order_total,
oe.order_items.line_item_id,
line_item.line_item_count,
oe.order_items.product_id,
oe.order_items.unit_price,
oe.order_items.quantity
FROM
oe.customers
INNER JOIN
oe.orders
ON oe.customers.customer_id = oe.orders.customer_id
INNER JOIN
oe.order_items
ON oe.orders.order_id = oe.order_items.order_id
INNER JOIN (
SELECT
oe.order_items.order_id,
COUNT(*) AS line_item_count
FROM
oe.order_items
GROUP BY
oe.order_items.order_id
) line_item
ON oe.orders.order_id = line_item.order_id
ORDER BY
oe.orders.customer_id,
oe.orders.order_date,
oe.order_items.order_id,
oe.order_items.line_item_id;
Problem 31
For each order, retrieve the customer ID, order ID, order date, and order total. In addition to this data, create a derived column that assigns an integer value based on the order date for each customer’s orders. The value of 1 should be assigned to the customer’s first order placed, 2 to the second order placed, and so on. Alias this column as “order_date_sequence.” Assign the same integer value to ties in order date. Use consecutive integers (e.g., 1, 1, 2, 3, 4, 4, 5). Sort the result set by customer ID (ascending) and order date (ascending).
oe.orders
| CUSTOMER_ID | ORDER_ID | ORDER_DATE | ORDER_TOTAL | ORDER_DATE_SEQUENCE |
|---|---|---|---|---|
| 101 | 2458 | 16-AUG-07 03.34.12.234359 PM | 78279.6 | 1 |
| 101 | 2430 | 02-OCT-07 06.18.36.663332 AM | 29669.9 | 2 |
| 101 | 2413 | 29-MAR-08 01.34.04.525934 PM | 48552 | 3 |
| 101 | 2447 | 27-JUL-08 08.59.10.223344 AM | 33893.6 | 4 |
| 102 | 2431 | 14-SEP-06 07.03.04.763452 AM | 5610.6 | 1 |
| 102 | 2414 | 29-MAR-07 02.22.40.536996 PM | 10794.6 | 2 |
| 102 | 2432 | 14-SEP-07 09.53.40.223345 AM | 10523 | 3 |
| 102 | 2397 | 19-NOV-07 02.41.54.696211 PM | 42283.2 | 4 |
| 103 | 2415 | 29-MAR-06 01.34.50.545196 PM | 310 | 1 |
| 103 | 2437 | 01-SEP-06 08.59.15.826132 AM | 13550 | 2 |
| 103 | 2433 | 13-SEP-07 10.19.00.654279 AM | 78 | 3 |
| 103 | 2454 | 02-OCT-07 05.49.34.678340 PM | 6653.4 | 4 |
| 104 | 2355 | 26-JAN-06 09.22.51.962632 AM | 94513.5 | 1 |
| 104 | 2416 | 29-MAR-07 04.41.20.945676 PM | 384 | 2 |
| 104 | 2438 | 01-SEP-07 09.53.26.934626 AM | 5451 | 3 |
| 104 | 2354 | 14-JUL-08 06.18.23.234567 PM | 46257 | 4 |
| 105 | 2417 | 20-MAR-07 05.49.10.974352 PM | 1926.6 | 1 |
| 105 | 2439 | 31-AUG-07 10.19.37.811132 AM | 22150.1 | 2 |
| 105 | 2358 | 08-JAN-08 05.03.12.654278 PM | 7826 | 3 |
| 105 | 2356 | 26-JAN-08 09.22.41.934562 AM | 29473.8 | 4 |
| 106 | 2418 | 20-MAR-04 04.18.21.862632 PM | 5546.6 | 1 |
| 106 | 2359 | 08-JAN-06 09.34.13.112233 PM | 5543.1 | 2 |
| 106 | 2381 | 14-MAY-08 08.59.08.843679 PM | 23034.6 | 3 |
| 106 | 2441 | 01-AUG-08 11.22.48.734526 AM | 2075.2 | 4 |
| 107 | 2442 | 27-JUL-06 12.22.59.662632 PM | 52471.9 | 1 |
| 107 | 2419 | 20-MAR-07 07.03.32.764632 PM | 31574 | 2 |
| 107 | 2440 | 31-AUG-07 09.53.06.008765 PM | 70576.9 | 3 |
| 107 | 2360 | 14-NOV-07 12.22.31.223344 PM | 990.4 | 4 |
| 108 | 2357 | 08-JAN-06 08.19.44.123456 PM | 59872.4 | 1 |
| 108 | 2443 | 27-JUL-06 01.34.16.562632 PM | 3646 | 2 |
| 108 | 2420 | 13-MAR-07 08.59.43.666320 PM | 29750 | 3 |
| 108 | 2361 | 13-NOV-07 01.34.21.986210 PM | 120131.3 | 4 |
| 109 | 2421 | 12-MAR-07 09.53.54.562432 PM | 72836 | 1 |
| 109 | 2444 | 27-JUL-07 02.22.27.462632 PM | 77727.2 | 2 |
| 109 | 2362 | 13-NOV-07 02.41.10.619477 PM | 92829.4 | 3 |
| 109 | 2394 | 10-FEB-08 09.22.35.564789 PM | 21863 | 4 |
| 116 | 2369 | 26-JUN-07 11.22.54.009932 PM | 11097.4 | 1 |
| 116 | 2436 | 02-SEP-07 06.18.04.378034 AM | 6394.8 | 2 |
| 116 | 2453 | 04-OCT-07 09.53.34.362632 PM | 129 | 3 |
| 116 | 2428 | 10-NOV-07 02.41.34.463567 AM | 14685.8 | 4 |
| 117 | 2456 | 07-NOV-06 07.53.25.989889 PM | 3878.4 | 1 |
| 117 | 2446 | 27-JUL-07 07.03.08.302945 AM | 103679.3 | 2 |
| 117 | 2429 | 10-NOV-07 03.49.25.526321 AM | 50125 | 3 |
| 117 | 2370 | 27-JUN-08 12.22.11.647398 AM | 126 | 4 |
| 118 | 2371 | 16-MAY-07 01.34.56.113356 AM | 79405.6 | 1 |
| 118 | 2457 | 31-OCT-07 11.22.16.162632 PM | 21586.2 | 2 |
| 119 | 2372 | 27-FEB-07 12.22.33.356789 AM | 16447.2 | 1 |
| 120 | 2373 | 27-FEB-08 01.34.51.220065 AM | 416 | 1 |
| 121 | 2374 | 27-FEB-08 02.41.45.109654 AM | 4797 | 1 |
| 122 | 2375 | 26-FEB-07 03.49.50.459233 AM | 103834.4 | 1 |
| 123 | 2376 | 07-JUN-07 06.18.08.883310 AM | 11006.2 | 1 |
| 141 | 2377 | 07-JUN-07 07.03.01.001100 AM | 38017.8 | 1 |
| 142 | 2378 | 24-MAY-07 08.59.10.010101 AM | 25691.3 | 1 |
| 143 | 2380 | 16-MAY-07 09.53.02.909090 AM | 27132.6 | 1 |
| 144 | 2445 | 27-JUL-06 03.34.38.362632 PM | 5537.8 | 1 |
| 144 | 2435 | 02-SEP-07 11.22.53.134567 PM | 62303 | 2 |
| 144 | 2363 | 23-OCT-07 05.49.56.346122 PM | 10082.3 | 3 |
| 144 | 2422 | 16-DEC-07 08.19.55.462332 PM | 11188.5 | 4 |
| 144 | 2382 | 14-MAY-08 10.19.03.828321 AM | 71173 | 5 |
| 145 | 2448 | 18-JUN-07 04.41.49.262632 PM | 1388 | 1 |
| 145 | 2364 | 28-AUG-07 06.18.45.942399 PM | 9500 | 2 |
| 145 | 2455 | 20-SEP-07 11.34.11.456789 AM | 14087.5 | 3 |
| 145 | 2423 | 21-NOV-07 10.22.33.362632 AM | 10367.7 | 4 |
| 145 | 2383 | 12-MAY-08 11.22.30.545103 AM | 36374.7 | 5 |
| 146 | 2379 | 16-MAY-07 02.22.24.234567 AM | 17848.2 | 1 |
| 146 | 2449 | 13-JUN-07 05.49.07.162632 PM | 86 | 2 |
| 146 | 2365 | 28-AUG-07 07.03.34.003399 PM | 27455.3 | 3 |
| 146 | 2424 | 21-NOV-07 10.22.33.263332 AM | 13824 | 4 |
| 146 | 2384 | 12-MAY-08 12.22.34.525972 PM | 29249.1 | 5 |
| 147 | 2396 | 02-FEB-06 01.34.56.345678 AM | 34930 | 1 |
| 147 | 2425 | 16-NOV-06 11.34.22.162552 PM | 1500.8 | 2 |
| 147 | 2450 | 11-APR-07 06.18.10.362632 PM | 1636 | 3 |
| 147 | 2366 | 28-AUG-07 08.59.23.144778 PM | 37319.4 | 4 |
| 147 | 2385 | 08-DEC-07 11.34.11.331392 AM | 295892 | 5 |
| 148 | 2426 | 17-NOV-06 12.22.11.262552 AM | 7200 | 1 |
| 148 | 2406 | 29-JUN-07 04.41.20.098765 AM | 2854.2 | 2 |
| 148 | 2386 | 06-DEC-07 12.22.34.225609 PM | 21116.9 | 3 |
| 148 | 2451 | 17-DEC-07 05.03.52.562632 PM | 10474.6 | 4 |
| 148 | 2367 | 27-JUN-08 09.53.32.335522 PM | 144054.8 | 5 |
| 149 | 2387 | 11-MAR-07 03.34.56.536966 PM | 52758.9 | 1 |
| 149 | 2434 | 13-SEP-07 05.49.30.647893 AM | 268651.8 | 2 |
| 149 | 2452 | 06-OCT-07 08.59.43.462632 PM | 12589 | 3 |
| 149 | 2427 | 10-NOV-07 01.34.22.362124 AM | 9055 | 4 |
| 149 | 2368 | 26-JUN-08 10.19.43.190089 PM | 60065 | 5 |
| 150 | 2388 | 04-JUN-07 04.41.12.554435 PM | 282694.3 | 1 |
| 151 | 2389 | 04-JUN-08 05.49.43.546954 PM | 17620 | 1 |
| 152 | 2390 | 18-NOV-07 04.18.50.546851 PM | 7616.8 | 1 |
| 153 | 2391 | 27-FEB-06 05.03.03.828330 PM | 48070.6 | 1 |
| 154 | 2392 | 21-JUL-07 08.59.57.571057 PM | 26632 | 1 |
| 155 | 2393 | 10-FEB-08 07.53.19.528202 PM | 23431.9 | 1 |
| 156 | 2395 | 02-FEB-06 08.19.11.227550 PM | 68501 | 1 |
| 157 | 2398 | 19-NOV-07 09.22.53.224175 PM | 7110.3 | 1 |
| 158 | 2399 | 19-NOV-07 10.22.38.340990 PM | 25270.3 | 1 |
| 159 | 2400 | 10-JUL-07 01.34.29.559387 AM | 69286.4 | 1 |
| 160 | 2401 | 10-JUL-07 02.22.53.554822 AM | 969.2 | 1 |
| 161 | 2402 | 02-JUL-07 03.34.44.665170 AM | 600 | 1 |
| 162 | 2403 | 01-JUL-07 04.49.13.615512 PM | 220 | 1 |
| 163 | 2404 | 01-JUL-07 04.49.13.664085 PM | 510 | 1 |
| 164 | 2405 | 01-JUL-07 04.49.13.678123 PM | 1233 | 1 |
| 165 | 2407 | 29-JUN-07 07.03.21.526005 AM | 2519 | 1 |
| 166 | 2408 | 29-JUN-07 08.59.31.333617 AM | 309 | 1 |
| 167 | 2409 | 29-JUN-07 09.53.41.984501 AM | 48 | 1 |
| 168 | 2410 | 24-MAY-08 10.19.51.985501 AM | 45175 | 1 |
| 169 | 2411 | 24-MAY-07 11.22.10.548639 AM | 15760.5 | 1 |
| 170 | 2412 | 29-MAR-06 10.22.09.509801 AM | 66816 | 1 |
SELECT
oe.orders.customer_id,
oe.orders.order_id,
oe.orders.order_date,
oe.orders.order_total,
DENSE_RANK() OVER (
PARTITION BY oe.orders.customer_id
ORDER BY oe.orders.order_date
) AS order_date_sequence
FROM
oe.orders
ORDER BY
oe.orders.customer_id,
oe.orders.order_date;
Problem 32
Building onto your solution from problem 31, only include each customer’s first order.
oe.orders
| CUSTOMER_ID | ORDER_ID | ORDER_DATE | ORDER_TOTAL | ORDER_DATE_SEQUENCE |
|---|---|---|---|---|
| 101 | 2458 | 16-AUG-07 03.34.12.234359 PM | 78279.6 | 1 |
| 102 | 2431 | 14-SEP-06 07.03.04.763452 AM | 5610.6 | 1 |
| 103 | 2415 | 29-MAR-06 01.34.50.545196 PM | 310 | 1 |
| 104 | 2355 | 26-JAN-06 09.22.51.962632 AM | 94513.5 | 1 |
| 105 | 2417 | 20-MAR-07 05.49.10.974352 PM | 1926.6 | 1 |
| 106 | 2418 | 20-MAR-04 04.18.21.862632 PM | 5546.6 | 1 |
| 107 | 2442 | 27-JUL-06 12.22.59.662632 PM | 52471.9 | 1 |
| 108 | 2357 | 08-JAN-06 08.19.44.123456 PM | 59872.4 | 1 |
| 109 | 2421 | 12-MAR-07 09.53.54.562432 PM | 72836 | 1 |
| 116 | 2369 | 26-JUN-07 11.22.54.009932 PM | 11097.4 | 1 |
| 117 | 2456 | 07-NOV-06 07.53.25.989889 PM | 3878.4 | 1 |
| 118 | 2371 | 16-MAY-07 01.34.56.113356 AM | 79405.6 | 1 |
| 119 | 2372 | 27-FEB-07 12.22.33.356789 AM | 16447.2 | 1 |
| 120 | 2373 | 27-FEB-08 01.34.51.220065 AM | 416 | 1 |
| 121 | 2374 | 27-FEB-08 02.41.45.109654 AM | 4797 | 1 |
| 122 | 2375 | 26-FEB-07 03.49.50.459233 AM | 103834.4 | 1 |
| 123 | 2376 | 07-JUN-07 06.18.08.883310 AM | 11006.2 | 1 |
| 141 | 2377 | 07-JUN-07 07.03.01.001100 AM | 38017.8 | 1 |
| 142 | 2378 | 24-MAY-07 08.59.10.010101 AM | 25691.3 | 1 |
| 143 | 2380 | 16-MAY-07 09.53.02.909090 AM | 27132.6 | 1 |
| 144 | 2445 | 27-JUL-06 03.34.38.362632 PM | 5537.8 | 1 |
| 145 | 2448 | 18-JUN-07 04.41.49.262632 PM | 1388 | 1 |
| 146 | 2379 | 16-MAY-07 02.22.24.234567 AM | 17848.2 | 1 |
| 147 | 2396 | 02-FEB-06 01.34.56.345678 AM | 34930 | 1 |
| 148 | 2426 | 17-NOV-06 12.22.11.262552 AM | 7200 | 1 |
| 149 | 2387 | 11-MAR-07 03.34.56.536966 PM | 52758.9 | 1 |
| 150 | 2388 | 04-JUN-07 04.41.12.554435 PM | 282694.3 | 1 |
| 151 | 2389 | 04-JUN-08 05.49.43.546954 PM | 17620 | 1 |
| 152 | 2390 | 18-NOV-07 04.18.50.546851 PM | 7616.8 | 1 |
| 153 | 2391 | 27-FEB-06 05.03.03.828330 PM | 48070.6 | 1 |
| 154 | 2392 | 21-JUL-07 08.59.57.571057 PM | 26632 | 1 |
| 155 | 2393 | 10-FEB-08 07.53.19.528202 PM | 23431.9 | 1 |
| 156 | 2395 | 02-FEB-06 08.19.11.227550 PM | 68501 | 1 |
| 157 | 2398 | 19-NOV-07 09.22.53.224175 PM | 7110.3 | 1 |
| 158 | 2399 | 19-NOV-07 10.22.38.340990 PM | 25270.3 | 1 |
| 159 | 2400 | 10-JUL-07 01.34.29.559387 AM | 69286.4 | 1 |
| 160 | 2401 | 10-JUL-07 02.22.53.554822 AM | 969.2 | 1 |
| 161 | 2402 | 02-JUL-07 03.34.44.665170 AM | 600 | 1 |
| 162 | 2403 | 01-JUL-07 04.49.13.615512 PM | 220 | 1 |
| 163 | 2404 | 01-JUL-07 04.49.13.664085 PM | 510 | 1 |
| 164 | 2405 | 01-JUL-07 04.49.13.678123 PM | 1233 | 1 |
| 165 | 2407 | 29-JUN-07 07.03.21.526005 AM | 2519 | 1 |
| 166 | 2408 | 29-JUN-07 08.59.31.333617 AM | 309 | 1 |
| 167 | 2409 | 29-JUN-07 09.53.41.984501 AM | 48 | 1 |
| 168 | 2410 | 24-MAY-08 10.19.51.985501 AM | 45175 | 1 |
| 169 | 2411 | 24-MAY-07 11.22.10.548639 AM | 15760.5 | 1 |
| 170 | 2412 | 29-MAR-06 10.22.09.509801 AM | 66816 | 1 |
SELECT
customer_order.customer_id,
customer_order.order_id,
customer_order.order_date,
customer_order.order_total,
customer_order.order_date_sequence
FROM (
SELECT
oe.orders.customer_id,
oe.orders.order_id,
oe.orders.order_date,
oe.orders.order_total,
DENSE_RANK() OVER (
PARTITION BY oe.orders.customer_id
ORDER BY oe.orders.order_date
) AS order_date_sequence
FROM
oe.orders
) customer_order
WHERE
customer_order.order_date_sequence = 1
ORDER BY
customer_order.customer_id,
customer_order.order_date;
Problem 33
For each customer, rank the customer’s order totals among all other order totals for the customer. Include customer ID, order ID, order total, and the derived column used to rank the order totals for each customer. Alias the ranking column as “order_total_sequence.” Assign the same integer value to ties in order total. Use consecutive integers (e.g., 1, 1, 2, 3, 4, 4, 5). Sort the result set by customer ID (ascending) and order total (ascending).
oe.orders
| CUSTOMER_ID | ORDER_ID | ORDER_TOTAL | ORDER_TOTAL_SEQUENCE |
|---|---|---|---|
| 101 | 2430 | 29669.9 | 1 |
| 101 | 2447 | 33893.6 | 2 |
| 101 | 2413 | 48552 | 3 |
| 101 | 2458 | 78279.6 | 4 |
| 102 | 2431 | 5610.6 | 1 |
| 102 | 2432 | 10523 | 2 |
| 102 | 2414 | 10794.6 | 3 |
| 102 | 2397 | 42283.2 | 4 |
| 103 | 2433 | 78 | 1 |
| 103 | 2415 | 310 | 2 |
| 103 | 2454 | 6653.4 | 3 |
| 103 | 2437 | 13550 | 4 |
| 104 | 2416 | 384 | 1 |
| 104 | 2438 | 5451 | 2 |
| 104 | 2354 | 46257 | 3 |
| 104 | 2355 | 94513.5 | 4 |
| 105 | 2417 | 1926.6 | 1 |
| 105 | 2358 | 7826 | 2 |
| 105 | 2439 | 22150.1 | 3 |
| 105 | 2356 | 29473.8 | 4 |
| 106 | 2441 | 2075.2 | 1 |
| 106 | 2359 | 5543.1 | 2 |
| 106 | 2418 | 5546.6 | 3 |
| 106 | 2381 | 23034.6 | 4 |
| 107 | 2360 | 990.4 | 1 |
| 107 | 2419 | 31574 | 2 |
| 107 | 2442 | 52471.9 | 3 |
| 107 | 2440 | 70576.9 | 4 |
| 108 | 2443 | 3646 | 1 |
| 108 | 2420 | 29750 | 2 |
| 108 | 2357 | 59872.4 | 3 |
| 108 | 2361 | 120131.3 | 4 |
| 109 | 2394 | 21863 | 1 |
| 109 | 2421 | 72836 | 2 |
| 109 | 2444 | 77727.2 | 3 |
| 109 | 2362 | 92829.4 | 4 |
| 116 | 2453 | 129 | 1 |
| 116 | 2436 | 6394.8 | 2 |
| 116 | 2369 | 11097.4 | 3 |
| 116 | 2428 | 14685.8 | 4 |
| 117 | 2370 | 126 | 1 |
| 117 | 2456 | 3878.4 | 2 |
| 117 | 2429 | 50125 | 3 |
| 117 | 2446 | 103679.3 | 4 |
| 118 | 2457 | 21586.2 | 1 |
| 118 | 2371 | 79405.6 | 2 |
| 119 | 2372 | 16447.2 | 1 |
| 120 | 2373 | 416 | 1 |
| 121 | 2374 | 4797 | 1 |
| 122 | 2375 | 103834.4 | 1 |
| 123 | 2376 | 11006.2 | 1 |
| 141 | 2377 | 38017.8 | 1 |
| 142 | 2378 | 25691.3 | 1 |
| 143 | 2380 | 27132.6 | 1 |
| 144 | 2445 | 5537.8 | 1 |
| 144 | 2363 | 10082.3 | 2 |
| 144 | 2422 | 11188.5 | 3 |
| 144 | 2435 | 62303 | 4 |
| 144 | 2382 | 71173 | 5 |
| 145 | 2448 | 1388 | 1 |
| 145 | 2364 | 9500 | 2 |
| 145 | 2423 | 10367.7 | 3 |
| 145 | 2455 | 14087.5 | 4 |
| 145 | 2383 | 36374.7 | 5 |
| 146 | 2449 | 86 | 1 |
| 146 | 2424 | 13824 | 2 |
| 146 | 2379 | 17848.2 | 3 |
| 146 | 2365 | 27455.3 | 4 |
| 146 | 2384 | 29249.1 | 5 |
| 147 | 2425 | 1500.8 | 1 |
| 147 | 2450 | 1636 | 2 |
| 147 | 2396 | 34930 | 3 |
| 147 | 2366 | 37319.4 | 4 |
| 147 | 2385 | 295892 | 5 |
| 148 | 2406 | 2854.2 | 1 |
| 148 | 2426 | 7200 | 2 |
| 148 | 2451 | 10474.6 | 3 |
| 148 | 2386 | 21116.9 | 4 |
| 148 | 2367 | 144054.8 | 5 |
| 149 | 2427 | 9055 | 1 |
| 149 | 2452 | 12589 | 2 |
| 149 | 2387 | 52758.9 | 3 |
| 149 | 2368 | 60065 | 4 |
| 149 | 2434 | 268651.8 | 5 |
| 150 | 2388 | 282694.3 | 1 |
| 151 | 2389 | 17620 | 1 |
| 152 | 2390 | 7616.8 | 1 |
| 153 | 2391 | 48070.6 | 1 |
| 154 | 2392 | 26632 | 1 |
| 155 | 2393 | 23431.9 | 1 |
| 156 | 2395 | 68501 | 1 |
| 157 | 2398 | 7110.3 | 1 |
| 158 | 2399 | 25270.3 | 1 |
| 159 | 2400 | 69286.4 | 1 |
| 160 | 2401 | 969.2 | 1 |
| 161 | 2402 | 600 | 1 |
| 162 | 2403 | 220 | 1 |
| 163 | 2404 | 510 | 1 |
| 164 | 2405 | 1233 | 1 |
| 165 | 2407 | 2519 | 1 |
| 166 | 2408 | 309 | 1 |
| 167 | 2409 | 48 | 1 |
| 168 | 2410 | 45175 | 1 |
| 169 | 2411 | 15760.5 | 1 |
| 170 | 2412 | 66816 | 1 |
SELECT
oe.orders.customer_id,
oe.orders.order_id,
oe.orders.order_total,
DENSE_RANK() OVER (
PARTITION BY oe.orders.customer_id
ORDER BY oe.orders.order_total
) AS order_total_sequence
FROM
oe.orders
ORDER BY
oe.orders.customer_id,
oe.orders.order_total;
Problem 34
Retrieve the product ID, product name, list price, and minimum price for each product. In addition to this data, create a derived column that ranks the markup (i.e., list price – minimum price) for each product among all other products. Alias this column as “product_markup_sequence.” Assign the same integer value to ties in markup values. Use consecutive integers (e.g., 1, 1, 2, 3, 4, 4, 5). Only include products where both, list price and minimum price, are available. Sort/order the result set by markup (i.e., list price – min price), ascending.
oe.product_information
| PRODUCT_ID | PRODUCT_NAME | LIST_PRICE | MIN_PRICE | PRODUCT_MARKUP_SEQUENCE |
|---|---|---|---|---|
| 2870 | Pencil – Mech | 5 | 4 | 1 |
| 3097 | Cable Connector – 32R | 3 | 2 | 1 |
| 3099 | Cable Harness | 4 | 3 | 1 |
| 2380 | Cable PR/15/P | 6 | 5 | 1 |
| 2408 | Cable PR/P/6 | 4 | 3 | 1 |
| 2457 | Cable PR/S/6 | 5 | 4 | 1 |
| 1734 | Cable RS232 10/AM | 6 | 5 | 1 |
| 2211 | Wrist Pad | 4 | 3 | 1 |
| 2944 | Wrist Pad /CL | 3 | 2 | 1 |
| 3208 | Pencils – Wood | 2 | 1 | 1 |
| 3515 | Lead Replacement | 2 | 1 | 1 |
| 2326 | Plastic Stock – Y | 2 | 1 | 1 |
| 2330 | Plastic Stock – R | 2 | 1 | 1 |
| 2334 | Resin | 4 | 3 | 1 |
| 2725 | Machine Oil | 4 | 3 | 1 |
| 3187 | Plastic Stock – B/HD | 3 | 2 | 1 |
| 3189 | Plastic Stock – G | 2 | 1 | 1 |
| 3191 | Plastic Stock – O | 2 | 1 | 1 |
| 3193 | Plastic Stock – W/HD | 3 | 2 | 1 |
| 2091 | Paper Tablet LW 8 1/2 x 11 | 1 | 0 | 1 |
| 2093 | Pens – 10/FP | 8 | 7 | 1 |
| 2808 | Paper Tablet LY 8 1/2 x 11 | 1 | 0 | 1 |
| 2810 | Inkvisible Pens | 6 | 4 | 2 |
| 2373 | Cable RS232 10/AF | 6 | 4 | 2 |
| 1737 | Cable SCSI 10/FW/ADS | 8 | 6 | 2 |
| 1745 | Cable SCSI 20/WD->D | 9 | 7 | 2 |
| 2056 | Mouse Pad /CL | 8 | 6 | 2 |
| 3051 | Pens – 10/MP | 12 | 10 | 2 |
| 3209 | Sharpener – Pencil | 13 | 11 | 2 |
| 3511 | Paper – HQ Printer | 9 | 7 | 2 |
| 2030 | Latex Gloves | 12 | 10 | 2 |
| 2594 | FG Stock – L | 9 | 7 | 2 |
| 2596 | SS Stock – 1mm | 12 | 10 | 2 |
| 2783 | Clips – Paper | 10 | 8 | 2 |
| 3150 | Card Holder – 25 | 18 | 15 | 3 |
| 1910 | FG Stock – H | 14 | 11 | 3 |
| 1912 | SS Stock – 3mm | 15 | 12 | 3 |
| 2631 | ESD Bracelet/QR | 15 | 12 | 3 |
| 3301 | Screws <B.28.P> | 15 | 12 | 3 |
| 3143 | Screws <B.28.S> | 16 | 13 | 3 |
| 3134 | Screws <B.32.S> | 18 | 15 | 3 |
| 2316 | Screws <S.32.S> | 22 | 19 | 3 |
| 2493 | SPNIX3.3 C/DU | 25 | 22 | 3 |
| 3252 | Project Management – S3.3 | 26 | 23 | 3 |
| 2058 | Mouse +WP | 23 | 19 | 4 |
| 2761 | Mouse +WP/CL | 27 | 23 | 4 |
| 3224 | Card Organizer – 250 | 32 | 28 | 4 |
| 3216 | Manual – Vision Net6.3 | 30 | 26 | 4 |
| 1940 | ESD Bracelet/Clip | 18 | 14 | 4 |
| 2323 | Screws <B.32.P> | 18 | 14 | 4 |
| 3139 | Screws <S.16.S> | 21 | 17 | 4 |
| 3300 | Screws <S.32.P> | 23 | 19 | 4 |
| 2319 | Screws <Z.24.S> | 25 | 21 | 4 |
| 3503 | C for SPNIX3.3 – Seat/U | 22 | 18 | 4 |
| 1825 | X25 – 1 Line License | 25 | 21 | 4 |
| 3250 | Graphics – DIK | 28 | 24 | 4 |
| 2144 | Card Organizer Cover | 18 | 14 | 4 |
| 2339 | Paper – Std Printer | 25 | 21 | 4 |
| 3234 | Monitor Hinge – STD | 39 | 34 | 5 |
| 2261 | FD 1.44/3.5/E | 42 | 37 | 5 |
| 2522 | Battery – EL | 44 | 39 | 5 |
| 3140 | Screws <Z.16.S> | 24 | 19 | 5 |
| 2322 | Screws <Z.28.P> | 23 | 18 | 5 |
| 3255 | Spreadsheet – SSS/CD 2.2B | 35 | 30 | 5 |
| 2494 | SPNIX3.3 NU | 25 | 20 | 5 |
| 1775 | Client ISO CP – S | 27 | 22 | 5 |
| 2416 | Client ISO CP – S | 41 | 36 | 5 |
| 3175 | Project Management – S4.0 | 37 | 32 | 5 |
| 3251 | Project Management – V | 31 | 26 | 5 |
| 3117 | Mouse C/E | 41 | 35 | 6 |
| 3163 | Manual – Vision Net6.3/US | 35 | 29 | 6 |
| 3165 | Manual – Vision Tools2.0 | 40 | 34 | 6 |
| 3179 | Spreadsheet – SSS/S 2.1 | 50 | 44 | 6 |
| 3256 | Spreadsheet – SSS/V 2.0 | 40 | 34 | 6 |
| 3361 | Spreadsheet – SSP/S 1.5 | 40 | 34 | 6 |
| 2417 | Client ISO CP – V | 33 | 27 | 6 |
| 2336 | Business Cards Box – 250 | 55 | 49 | 6 |
| 3155 | Monitor Hinge – HD | 49 | 42 | 7 |
| 2259 | FD 1.44/3.5 | 39 | 32 | 7 |
| 2278 | Battery – NiHM | 55 | 48 | 7 |
| 3277 | Drive Mount – A/T | 36 | 29 | 7 |
| 3129 | Sound Card STD | 46 | 39 | 7 |
| 3133 | Video Card /32 | 48 | 41 | 7 |
| 3106 | KB 101/EN | 48 | 41 | 7 |
| 2492 | SPNIX3.3 AU | 45 | 38 | 7 |
| 2976 | Drive Mount – D | 52 | 44 | 8 |
| 2049 | MB – S300 | 55 | 47 | 8 |
| 3225 | Card Organizer – 1000 | 47 | 39 | 8 |
| 3167 | Manual – Vision OS/2.x | 55 | 47 | 8 |
| 3178 | Spreadsheet – SSP/V 2.0 | 45 | 37 | 8 |
| 1805 | SPNIX3.3 – UL/A | 50 | 42 | 8 |
| 1806 | SPNIX3.3 – UL/C | 50 | 42 | 8 |
| 2464 | SPNIX4.0 – UL/A | 70 | 62 | 8 |
| 2468 | SPNIX4.0 – UL/C | 75 | 67 | 8 |
| 2995 | SPNIX3.3 SAU | 70 | 62 | 8 |
| 3101 | IC Browser – V | 75 | 67 | 8 |
| 3172 | Graphics – DIK+ | 42 | 34 | 8 |
| 3257 | Web Browser – SB/S 2.1 | 66 | 58 | 8 |
| 3082 | Modem – 56/90/E | 81 | 72 | 9 |
| 2418 | Battery Backup (DA-130) | 61 | 52 | 9 |
| 2982 | Drive Mount – A | 44 | 35 | 9 |
| 2375 | GP 1024×768 | 78 | 69 | 9 |
| 3110 | KB 101/FR | 48 | 39 | 9 |
| 3220 | Manual – Vision OS/1.2 | 45 | 36 | 9 |
| 2365 | Chemicals – TCS | 78 | 69 | 9 |
| 3197 | Spreadsheet – SSS/V 2.1 | 45 | 36 | 9 |
| 3260 | Word Processing – SWP/S 4.4 | 50 | 41 | 9 |
| 3262 | Spreadsheet – SSS/S 2.2 | 50 | 41 | 9 |
| 1803 | SPNIX3.3 – DL | 60 | 51 | 9 |
| 1804 | SPNIX3.3 – UL/N | 65 | 56 | 9 |
| 1808 | SPNIX3.3 – UL/D | 55 | 46 | 9 |
| 2462 | SPNIX4.0 – UL/N | 80 | 71 | 9 |
| 2270 | Modem – 56/90/I | 66 | 56 | 10 |
| 2268 | Modem – 56/H/E | 77 | 67 | 10 |
| 3391 | PS 110/220 | 85 | 75 | 10 |
| 2308 | Video Card /E32 | 58 | 48 | 10 |
| 2289 | KB 101/ES | 48 | 38 | 10 |
| 3183 | Word Processing – SWS/V 4.5 | 50 | 40 | 10 |
| 1820 | SPNIX3.3 – NL | 55 | 45 | 10 |
| 2470 | SPNIX4.0 – NL | 80 | 70 | 10 |
| 3290 | SPNIX3.3 DU | 65 | 55 | 10 |
| 1778 | C for SPNIX3.3 – 1 Seat | 62 | 52 | 10 |
| 2004 | IC Browser – S | 90 | 80 | 10 |
| 3258 | Web Browser – SB/V 1.0 | 80 | 70 | 10 |
| 3083 | Modem – 56/H/I | 67 | 56 | 11 |
| 2374 | Modem – C/100 | 65 | 54 | 11 |
| 1787 | CPU D300 | 101 | 90 | 11 |
| 3112 | MB – S500 | 77 | 66 | 11 |
| 3182 | Word Processing – SWP/V 4.5 | 65 | 54 | 11 |
| 2423 | C for SPNIX4.0 – 1 Seat | 84 | 73 | 11 |
| 2449 | OSI 1-4/IL | 83 | 72 | 11 |
| 2419 | Battery Backup (DA-290) | 72 | 60 | 12 |
| 2299 | PS 12V /P | 76 | 64 | 12 |
| 3359 | SDRAM – 16 MB | 111 | 99 | 12 |
| 2751 | MB – S450 | 66 | 54 | 12 |
| 2752 | MB – S550 | 88 | 76 | 12 |
| 2293 | MB – S600 | 99 | 87 | 12 |
| 2782 | PC Bag – C/S | 62 | 50 | 12 |
| 1801 | SPNIX3.3 – AL | 100 | 88 | 12 |
| 2452 | SPNIX4.0 – DL | 100 | 88 | 12 |
| 2536 | Business Cards – 250/2L | 80 | 68 | 12 |
| 2260 | DFD 1.44/3.5 | 67 | 54 | 13 |
| 3114 | MB – S900/650+ | 101 | 88 | 13 |
| 2340 | Chemicals – SW | 72 | 59 | 13 |
| 2722 | PC Bag – L/D | 112 | 99 | 13 |
| 1748 | PS 220V /EUR | 83 | 70 | 13 |
| 1733 | PS 220V /UK | 89 | 76 | 13 |
| 3124 | PS 110V /T | 84 | 70 | 14 |
| 2395 | 32MB Cache /M | 123 | 109 | 14 |
| 2402 | CD-ROM 600/E/24x | 127 | 113 | 14 |
| 2403 | CD-ROM 600/I/24x | 117 | 103 | 14 |
| 2986 | Manual – Vision OS/2x + | 125 | 111 | 14 |
| 1729 | Chemicals – RCP | 80 | 66 | 14 |
| 3173 | Graphics – SA | 86 | 72 | 14 |
| 2377 | PS 110V HS/US | 97 | 82 | 15 |
| 2412 | 8MB EDO Memory | 98 | 83 | 15 |
| 3108 | KB E/EN | 78 | 63 | 15 |
| 1761 | CD-ROM 600/I/32x | 134 | 119 | 15 |
| 2005 | IC Browser Doc – S | 115 | 100 | 15 |
| 1738 | PS 110V /US | 86 | 70 | 16 |
| 3123 | PS 220V /D | 81 | 65 | 16 |
| 2370 | PS 220V /HS/FR | 91 | 75 | 16 |
| 2311 | PS 220V /L | 95 | 79 | 16 |
| 2467 | SPNIX4.0 – UL/D | 80 | 64 | 16 |
| 1779 | C for SPNIX3.3 – Doc | 128 | 112 | 16 |
| 1794 | OSI 8-16/IL | 128 | 112 | 16 |
| 1782 | Compact 400/DQ | 125 | 108 | 17 |
| 2262 | ZIP 100 | 98 | 81 | 17 |
| 2381 | CD-ROM 8x | 99 | 82 | 17 |
| 2721 | PC Bag – L/S | 87 | 70 | 17 |
| 2387 | PS 220V /FR | 83 | 66 | 17 |
| 3502 | C for SPNIX3.3 -Sys/U | 105 | 88 | 17 |
| 1774 | Base ISO CP – BL | 110 | 93 | 17 |
| 3176 | Smart Suite – V/EN | 120 | 103 | 17 |
| 2335 | Mobile phone | 100 | 83 | 17 |
| 2439 | CPU D400 | 123 | 105 | 18 |
| 3177 | Smart Suite – V/FR | 120 | 102 | 18 |
| 3362 | Web Browser – SB/S 4.0 | 99 | 81 | 18 |
| 3204 | Envoy DS | 126 | 107 | 19 |
| 2411 | GP 1280×1024 | 98 | 78 | 20 |
| 1742 | CD-ROM 500/16x | 101 | 81 | 20 |
| 2422 | SPNIX4.0 – SAL | 150 | 130 | 20 |
| 2453 | Inkjet C/4 | 195 | 174 | 21 |
| 1755 | 32MB Cache /NM | 121 | 99 | 22 |
| 2394 | DIMM – 32MB | 128 | 106 | 22 |
| 1740 | TD 12GB/DAT | 134 | 111 | 23 |
| 3090 | RAM – 48 MB | 193 | 170 | 23 |
| 2424 | CDW 12/24 | 221 | 198 | 23 |
| 3247 | Smart Suite – V/DE | 120 | 96 | 24 |
| 2537 | Business Cards Box – 1000 | 200 | 176 | 24 |
| 3087 | DIMM – 16 MB | 124 | 99 | 25 |
| 2272 | RAM – 16 MB | 135 | 110 | 25 |
| 3086 | VRAM – 16 MB | 211 | 186 | 25 |
| 2638 | Envoy DS/E | 137 | 111 | 26 |
| 2274 | RAM – 32 MB | 161 | 135 | 26 |
| 3073 | HD 6GB /I | 224 | 197 | 27 |
| 1781 | CDW 20/48/E | 233 | 206 | 27 |
| 2371 | C for SPNIX4.0 – Doc | 146 | 119 | 27 |
| 3245 | Smart Suite – S4.0/FR | 222 | 195 | 27 |
| 3171 | Smart Suite – S3.3/EN | 148 | 120 | 28 |
| 2302 | Inkjet B/6 | 150 | 121 | 29 |
| 1788 | CPU D600 | 178 | 149 | 29 |
| 3170 | Smart Suite – V/SP | 161 | 132 | 29 |
| 3246 | Smart Suite – S4.0/SP | 222 | 193 | 29 |
| 3248 | Smart Suite – S4.0/DE | 222 | 193 | 29 |
| 2396 | EDO – 32MB | 179 | 149 | 30 |
| 2430 | Compact 400/LQ | 175 | 143 | 31 |
| 2409 | TD 7GB/8 | 210 | 177 | 32 |
| 3253 | Smart Suite – S4.0/EN | 222 | 188 | 33 |
| 1791 | Industrial 700/HD | 275 | 239 | 34 |
| 3091 | VRAM – 64 MB | 279 | 243 | 34 |
| 3077 | DVD 8x | 274 | 237 | 35 |
| 1749 | DIMM – 256MB | 337 | 300 | 35 |
| 2410 | HD 8.4GB @5400 | 357 | 319 | 36 |
| 3088 | SDRAM – 32 MB | 258 | 220 | 36 |
| 1768 | HD 8.2GB @5400 | 345 | 306 | 37 |
| 2878 | Router – ASR/2W | 345 | 305 | 38 |
| 2152 | Router – DTMF4 | 231 | 191 | 38 |
| 2404 | 64MB Cache /NM | 221 | 180 | 39 |
| 2264 | CDW 20/48/I | 223 | 181 | 40 |
| 2359 | LCD Monitor 9/PM | 249 | 206 | 41 |
| 2497 | WSP DA-290 | 399 | 355 | 42 |
| 1792 | Industrial 600/DQ | 225 | 180 | 43 |
| 1763 | DIMM – 64MB | 247 | 202 | 43 |
| 2406 | 64MB Cache /M | 223 | 178 | 43 |
| 2243 | Monitor 17/HR/F | 350 | 302 | 44 |
| 3060 | Monitor 17/HR | 299 | 250 | 45 |
| 3057 | Monitor 17/SD | 369 | 320 | 45 |
| 2415 | HD 9.1GB @7200 | 359 | 309 | 46 |
| 1739 | SDRAM – 128 MB | 299 | 248 | 47 |
| 1726 | LCD Monitor 11/PM | 259 | 208 | 47 |
| 3400 | HD 8GB /SE | 389 | 337 | 48 |
| 3127 | LaserPro 600/6/BW | 498 | 444 | 49 |
| 2337 | Business Cards – 1000/2L | 300 | 246 | 49 |
| 2276 | SDRAM – 48 MB | 269 | 215 | 49 |
| 2496 | WSP DA-130 | 299 | 244 | 50 |
| 2414 | HD 9.1GB @10000 /I | 454 | 399 | 50 |
| 2378 | DIMM – 128 MB | 305 | 247 | 51 |
| 3072 | HD 12GB /N | 567 | 507 | 52 |
| 2257 | HD 8GB /I | 399 | 338 | 53 |
| 1797 | Inkjet C/8/HQ | 349 | 288 | 53 |
| 2471 | SPNIX3.3 SU | 500 | 439 | 53 |
| 3061 | Monitor 19/SD | 499 | 437 | 54 |
| 1772 | HD 9.1GB @10000 | 456 | 393 | 55 |
| 2266 | DVD 12x | 333 | 270 | 55 |
| 3354 | HD 12GB /I | 543 | 478 | 56 |
| 1780 | C for SPNIX3.3 – Sys | 450 | 385 | 56 |
| 2400 | DIMM – 512 MB | 448 | 380 | 57 |
| 1948 | Envoy IC/58 | 498 | 428 | 58 |
| 2879 | Router – ASR/3W | 456 | 384 | 59 |
| 3353 | HD 10GB /R | 489 | 413 | 60 |
| 2253 | HD 10GB @5400 /SE | 399 | 322 | 61 |
| 3071 | HD 12GB /S | 633 | 553 | 62 |
| 3054 | Plasma Monitor 10/XGA | 600 | 519 | 63 |
| 2254 | HD 10GB /I | 453 | 371 | 64 |
| 3020 | Envoy IC | 449 | 366 | 65 |
| 3069 | HD 10GB /S | 436 | 350 | 66 |
| 2245 | Monitor 19/SD/M | 512 | 420 | 67 |
| 3331 | Monitor 21/HR | 879 | 785 | 68 |
| 3334 | HD 12GB /R | 612 | 512 | 69 |
| 2236 | Plasma Monitor 10/TFT/XGA | 964 | 863 | 70 |
| 3501 | C for SPNIX4.0 – Sys | 555 | 448 | 71 |
| 3399 | HD 18GB /SE | 815 | 706 | 72 |
| 3350 | Plasma Monitor 10/LE/VGA | 740 | 630 | 73 |
| 3064 | Monitor 21/SD | 1023 | 909 | 74 |
| 2382 | HD 18.2GB@10000 /I | 850 | 731 | 75 |
| 2384 | DIMM – 1GB | 599 | 479 | 76 |
| 3065 | Monitor 21/D | 999 | 875 | 77 |
| 1799 | SPNIX3.3 – SL | 1000 | 874 | 78 |
| 2459 | LaserPro 1200/8/BW | 699 | 568 | 79 |
| 3337 | Mobile Web Phone | 800 | 666 | 80 |
| 1743 | HD 18.2GB @10000 /E | 800 | 661 | 81 |
| 1750 | DIMM – 2GB | 699 | 560 | 81 |
| 2255 | HD 12GB @7200 /SE | 775 | 628 | 82 |
| 2252 | Monitor 21/HR/M | 889 | 717 | 83 |
| 1822 | SPNIX4.0 – SL | 1500 | 1303 | 84 |
| 2999 | Laptop 16/8/110 | 999 | 800 | 85 |
| 3000 | Laptop 32/10/56 | 1749 | 1542 | 86 |
| 2350 | Desk – W/48 | 2500 | 2129 | 87 |
| 2231 | Desk – S/V | 2510 | 2114 | 88 |
| 3001 | Laptop 48/10/56/110 | 2556 | 2073 | 89 |
| 3004 | Laptop 64/10/56/220 | 2768 | 2275 | 90 |
| 2351 | Desk – W/48/R | 2900 | 2386 | 91 |
| 3003 | Laptop 128/12/56/v90/110 | 3219 | 2606 | 92 |
| 2779 | Desk – OS/O/F | 3980 | 3347 | 93 |
SELECT
oe.product_information.product_id,
oe.product_information.product_name,
oe.product_information.list_price,
oe.product_information.min_price,
DENSE_RANK() OVER (
ORDER BY oe.product_information.list_price - oe.product_information.min_price
) AS product_markup_sequence
FROM
oe.product_information
WHERE
oe.product_information.list_price IS NOT NULL
AND oe.product_information.min_price IS NOT NULL
ORDER BY
product_markup_sequence;
Problem 35
Adjust your solution to problem 34 slightly and build on to it to retrieve the products with the largest markup. Include the product ID, product name, list price, minimum price, category name, and product markup sequence in the output.
oe.product_information
oe.categories_tab
| PRODUCT_ID | PRODUCT_NAME | LIST_PRICE | MIN_PRICE | CATEGORY_NAME | PRODUCT_MARKUP_SEQUENCE |
|---|---|---|---|---|---|
| 2779 | Desk – OS/O/F | 3980 | 3347 | office1 | 1 |
SELECT
product_markup.product_id,
product_markup.product_name,
product_markup.list_price,
product_markup.min_price,
product_markup.category_name,
product_markup.product_markup_sequence
FROM (
SELECT
oe.product_information.product_id,
oe.product_information.product_name,
oe.product_information.list_price,
oe.product_information.min_price,
oe.categories_tab.category_name,
DENSE_RANK() OVER (
ORDER BY oe.product_information.list_price - oe.product_information.min_price DESC
) AS product_markup_sequence
FROM
oe.product_information
INNER JOIN
oe.categories_tab
ON oe.product_information.category_id = oe.categories_tab.category_id
AND oe.product_information.list_price IS NOT NULL
AND oe.product_information.min_price IS NOT NULL
) product_markup
WHERE
product_markup.product_markup_sequence = 1;
Problem 36
Using the north_america_sale and europe_sale tables, retrieve the total sale value for each product category. The output should include an additional column indicating the origin of the row produced. For example, any row originating from the north_america_sale table should contain a value of “North America.” Rows originating from the europe_sale table should contain a value of “Europe.” Alias this column as “sales_region.”
north_america_sale
europe_sale
| sales_region | product_category | total_sale |
|---|---|---|
| North America | Office Supplies | 110578733 |
| North America | Software | 109730709 |
| North America | Hardware | 110083856 |
| Europe | Office Supplies | 110578733 |
| Europe | Software | 109730709 |
| Europe | Hardware | 110083856 |
SELECT
'North America' AS sales_region,
north_america_sale.product_category,
SUM(north_america_sale.total_sale) AS total_sale
FROM
north_america_sale
GROUP BY
north_america_sale.product_category
UNION ALL
SELECT
'Europe',
europe_sale.product_category,
SUM(europe_sale.total_sale)
FROM
europe_sale
GROUP BY
europe_sale.product_category;
Problem 37
Using the north_america_sale table, develop a common table expression (CTE) producing the ranking of each product category based on total sales within each month. In the output, include the month, product category rank, product category, and total sale value. Ensure the CTE’s output is sorted in ascending order by reporting month and product category rank.
north_america_sale
| reporting_month | product_category_rank | product_category | total_sale |
|---|---|---|---|
| 01-JAN-23 | 1 | Hardware | 10532049 |
| 01-JAN-23 | 2 | Software | 10032955 |
| 01-JAN-23 | 3 | Office Supplies | 9527596 |
| 01-FEB-23 | 1 | Office Supplies | 8636016 |
| 01-FEB-23 | 2 | Software | 8266828 |
| 01-FEB-23 | 3 | Hardware | 8145411 |
| 01-MAR-23 | 1 | Hardware | 10107952 |
| 01-MAR-23 | 2 | Software | 9566038 |
| 01-MAR-23 | 3 | Office Supplies | 9308036 |
| 01-APR-23 | 1 | Hardware | 9981157 |
| 01-APR-23 | 2 | Office Supplies | 9101319 |
| 01-APR-23 | 3 | Software | 8094593 |
| 01-MAY-23 | 1 | Office Supplies | 9854939 |
| 01-MAY-23 | 2 | Software | 8719227 |
| 01-MAY-23 | 3 | Hardware | 8224588 |
| 01-JUN-23 | 1 | Software | 9837380 |
| 01-JUN-23 | 2 | Office Supplies | 9033310 |
| 01-JUN-23 | 3 | Hardware | 8983925 |
| 01-JUL-23 | 1 | Hardware | 8956408 |
| 01-JUL-23 | 2 | Software | 8850498 |
| 01-JUL-23 | 3 | Office Supplies | 8742601 |
| 01-AUG-23 | 1 | Software | 9848671 |
| 01-AUG-23 | 2 | Hardware | 9718295 |
| 01-AUG-23 | 3 | Office Supplies | 8566646 |
| 01-SEP-23 | 1 | Software | 9532093 |
| 01-SEP-23 | 2 | Hardware | 9198295 |
| 01-SEP-23 | 3 | Office Supplies | 8742664 |
| 01-OCT-23 | 1 | Hardware | 9408886 |
| 01-OCT-23 | 2 | Office Supplies | 9149671 |
| 01-OCT-23 | 3 | Software | 8922649 |
| 01-NOV-23 | 1 | Office Supplies | 9474652 |
| 01-NOV-23 | 2 | Hardware | 8334058 |
| 01-NOV-23 | 3 | Software | 8327729 |
| 01-DEC-23 | 1 | Office Supplies | 10441283 |
| 01-DEC-23 | 2 | Software | 9732048 |
| 01-DEC-23 | 3 | Hardware | 8492832 |
WITH product_category_performance AS (
SELECT
TRUNC(north_america_sale.report_date, 'MONTH') AS reporting_month,
DENSE_RANK() OVER (
PARTITION BY TRUNC(north_america_sale.report_date, 'MONTH')
ORDER BY SUM(north_america_sale.total_sale) DESC
) AS product_category_rank,
north_america_sale.product_category,
SUM(north_america_sale.total_sale) AS total_sale
FROM
north_america_sale
GROUP BY
TRUNC(north_america_sale.report_date, 'MONTH'),
north_america_sale.product_category
ORDER BY
reporting_month,
product_category_rank
)
SELECT
product_category_performance.reporting_month,
product_category_performance.product_category_rank,
product_category_performance.product_category,
product_category_performance.total_sale
FROM
product_category_performance;
Problem 38
Using the europe_sale table, write a query returning a result set containing the total monthly sales for each product category. The sales for each product category should be represented as columns. In other words, pivot the row values to columns. For example, given that there are three distinct product category values within the table, there should be one column per product category and the corresponding monthly sale value captured within the column for each month. Use report friendly column names by renaming the columns to “Reporting Month,”, “Software Sales,” “Hardware Sales,” and “Office Supply Sales.” Sort the result set in ascending order by reporting month.
europe_sale
| Reporting Month | Software Sales | Hardware Sales | Office Supply Sales |
|---|---|---|---|
| 01-JAN-23 | 10032955 | 10532049 | 9527596 |
| 01-FEB-23 | 8266828 | 8145411 | 8636016 |
| 01-MAR-23 | 9566038 | 10107952 | 9308036 |
| 01-APR-23 | 8094593 | 9981157 | 9101319 |
| 01-MAY-23 | 8719227 | 8224588 | 9854939 |
| 01-JUN-23 | 9837380 | 8983925 | 9033310 |
| 01-JUL-23 | 8850498 | 8956408 | 8742601 |
| 01-AUG-23 | 9848671 | 9718295 | 8566646 |
| 01-SEP-23 | 9532093 | 9198295 | 8742664 |
| 01-OCT-23 | 8922649 | 9408886 | 9149671 |
| 01-NOV-23 | 8327729 | 8334058 | 9474652 |
| 01-DEC-23 | 9732048 | 8492832 | 10441283 |
-- Solution 1
SELECT
TRUNC(europe_sale.report_date, 'MONTH') AS "Reporting Month",
SUM(
CASE europe_sale.product_category
WHEN 'Software'
THEN europe_sale.total_sale
ELSE 0
END
) AS "Software Sales",
SUM(
CASE europe_sale.product_category
WHEN 'Hardware'
THEN europe_sale.total_sale
ELSE 0
END
) AS "Hardware Sales",
SUM(
CASE europe_sale.product_category
WHEN 'Office Supplies'
THEN europe_sale.total_sale
ELSE 0
END
) AS "Office Supply Sales"
FROM
europe_sale
GROUP BY
TRUNC(europe_sale.report_date, 'MONTH')
ORDER BY
"Reporting Month";
-- Solution 2
SELECT
pivoted_sale."Reporting Month",
pivoted_sale."Software Sales",
pivoted_sale."Hardware Sales",
pivoted_sale."Office Supply Sales"
FROM (
SELECT
TRUNC(europe_sale.report_date, 'MONTH') AS "Reporting Month",
europe_sale.product_category,
europe_sale.total_sale AS total_sale
FROM
europe_sale
) product_category_sale
PIVOT (
SUM(total_sale)
FOR product_category IN (
'Software' AS "Software Sales",
'Hardware' AS "Hardware Sales",
'Office Supplies' AS "Office Supply Sales"
)
) pivoted_sale
ORDER BY
pivoted_sale."Reporting Month";
Problem 39
Using common table expressions, generate a report containing a summary of each customer’s order history along with the customer’s personal information. The order history summary should consist of the number of orders placed by the customer along with the total, average, minimum, and maximum sales values associated with those orders. The required personal information for each customer is the customer ID, first name, last name, email, date of birth, marital status, income level, and credit limit. In your solution, use separate CTEs for the customer’s order history and the customer’s personal information. Additionally, only include customers that have placed at least one order.
oe.customers
oe.orders
| customer_id | cust_first_name | cust_last_name | cust_email | date_of_birth | marital_status | gender | income_level | credit_limit | order_count | total_sale | average_sale | minimum_sale | maximum_sale |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 144 | Sivaji | Landis | Sivaji.Landis@GOLDENEYE.EXAMPLE.COM | 09-FEB-70 | married | M | F: 110,000 – 129,999 | 500 | 5 | 160284.6 | 32056.92 | 5537.8 | 71173 |
| 145 | Mammutti | Pacino | Mammutti.Pacino@GREBE.EXAMPLE.COM | 19-FEB-46 | single | M | F: 110,000 – 129,999 | 500 | 5 | 71717.9 | 14343.58 | 1388 | 36374.7 |
| 146 | Elia | Fawcett | Elia.Fawcett@JACANA.EXAMPLE.COM | 12-MAR-63 | married | F | L: 300,000 and above | 500 | 5 | 88462.6 | 17692.52 | 86 | 29249.1 |
| 147 | Ishwarya | Roberts | Ishwarya.Roberts@LAPWING.EXAMPLE.COM | 21-MAR-44 | single | F | G: 130,000 – 149,999 | 600 | 5 | 371278.2 | 74255.64 | 1500.8 | 295892 |
| 148 | Gustav | Steenburgen | Gustav.Steenburgen@PINTAIL.EXAMPLE.COM | 10-APR-50 | married | M | F: 110,000 – 129,999 | 600 | 5 | 185700.5 | 37140.1 | 2854.2 | 144054.8 |
| 149 | Markus | Rampling | Markus.Rampling@PUFFIN.EXAMPLE.COM | 20-APR-41 | single | M | D: 70,000 – 89,999 | 600 | 5 | 403119.7 | 80623.94 | 9055 | 268651.8 |
| 150 | Goldie | Slater | Goldie.Slater@PYRRHULOXIA.EXAMPLE.COM | 11-MAY-51 | married | M | D: 70,000 – 89,999 | 700 | 1 | 282694.3 | 282694.3 | 282694.3 | 282694.3 |
| 151 | Divine | Aykroyd | Divine.Aykroyd@REDSTART.EXAMPLE.COM | 20-MAY-76 | single | M | F: 110,000 – 129,999 | 700 | 1 | 17620 | 17620 | 17620 | 17620 |
| 152 | Dieter | Matthau | Dieter.Matthau@VERDIN.EXAMPLE.COM | 09-JUN-22 | married | M | A: Below 30,000 | 700 | 1 | 7616.8 | 7616.8 | 7616.8 | 7616.8 |
| 153 | Divine | Sheen | Divine.Sheen@COWBIRD.EXAMPLE.COM | 20-JUN-67 | single | M | I: 170,000 – 189,999 | 700 | 1 | 48070.6 | 48070.6 | 48070.6 | 48070.6 |
| 154 | Frederic | Grodin | Frederic.Grodin@CREEPER.EXAMPLE.COM | 29-JUN-65 | single | F | L: 300,000 and above | 700 | 1 | 26632 | 26632 | 26632 | 26632 |
| 155 | Frederico | Romero | Frederico.Romero@CURLEW.EXAMPLE.COM | 09-JUL-42 | married | M | E: 90,000 – 109,999 | 700 | 1 | 23431.9 | 23431.9 | 23431.9 | 23431.9 |
| 156 | Goldie | Montand | Goldie.Montand@DIPPER.EXAMPLE.COM | 09-AUG-55 | married | F | F: 110,000 – 129,999 | 700 | 1 | 68501 | 68501 | 68501 | 68501 |
| 157 | Sidney | Capshaw | Sidney.Capshaw@DUNLIN.EXAMPLE.COM | 18-AUG-69 | single | M | G: 130,000 – 149,999 | 700 | 1 | 7110.3 | 7110.3 | 7110.3 | 7110.3 |
| 158 | Frederico | Lyon | Frederico.Lyon@FLICKER.EXAMPLE.COM | 07-SEP-70 | married | M | J: 190,000 – 249,999 | 700 | 1 | 25270.3 | 25270.3 | 25270.3 | 25270.3 |
| 159 | Eddie | Boyer | Eddie.Boyer@GALLINULE.EXAMPLE.COM | 07-OCT-53 | married | M | G: 130,000 – 149,999 | 700 | 1 | 69286.4 | 69286.4 | 69286.4 | 69286.4 |
| 160 | Eddie | Stern | Eddie.Stern@GODWIT.EXAMPLE.COM | 06-NOV-50 | married | M | G: 130,000 – 149,999 | 700 | 1 | 969.2 | 969.2 | 969.2 | 969.2 |
| 161 | Ernest | Weaver | Ernest.Weaver@GROSBEAK.EXAMPLE.COM | 16-NOV-42 | single | M | B: 30,000 – 49,999 | 900 | 1 | 600 | 600 | 600 | 600 |
| 162 | Ernest | George | Ernest.George@LAPWING.EXAMPLE.COM | 07-DEC-75 | married | M | D: 70,000 – 89,999 | 900 | 1 | 220 | 220 | 220 | 220 |
| 164 | Charlotte | Kazan | Charlotte.Kazan@MERGANSER.EXAMPLE.COM | 05-JAN-54 | married | M | I: 170,000 – 189,999 | 1200 | 1 | 1233 | 1233 | 1233 | 1233 |
| 165 | Charlotte | Fonda | Charlotte.Fonda@MOORHEN.EXAMPLE.COM | 05-FEB-56 | married | M | J: 190,000 – 249,999 | 1200 | 1 | 2519 | 2519 | 2519 | 2519 |
| 166 | Dheeraj | Alexander | Dheeraj.Alexander@NUTHATCH.EXAMPLE.COM | 14-FEB-50 | single | F | G: 130,000 – 149,999 | 1200 | 1 | 309 | 309 | 309 | 309 |
| 167 | Gerard | Hershey | Gerard.Hershey@PARULA.EXAMPLE.COM | 06-MAR-48 | married | M | D: 70,000 – 89,999 | 1200 | 1 | 48 | 48 | 48 | 48 |
| 169 | Dheeraj | Davis | Dheeraj.Davis@PIPIT.EXAMPLE.COM | 05-APR-81 | married | F | F: 110,000 – 129,999 | 1200 | 1 | 15760.5 | 15760.5 | 15760.5 | 15760.5 |
| 170 | Harry Dean | Fonda | HarryDean.Fonda@PLOVER.EXAMPLE.COM | 15-APR-88 | single | M | G: 130,000 – 149,999 | 1200 | 1 | 66816 | 66816 | 66816 | 66816 |
| 101 | Constantin | Welles | Constantin.Welles@ANHINGA.EXAMPLE.COM | 20-FEB-72 | married | M | B: 30,000 – 49,999 | 100 | 4 | 190395.1 | 47598.775 | 29669.9 | 78279.6 |
| 102 | Harrison | Pacino | Harrison.Pacino@ANI.EXAMPLE.COM | 02-MAR-53 | single | M | I: 170,000 – 189,999 | 100 | 4 | 69211.4 | 17302.85 | 5610.6 | 42283.2 |
| 103 | Manisha | Taylor | Manisha.Taylor@AUKLET.EXAMPLE.COM | 22-MAR-83 | married | F | H: 150,000 – 169,999 | 100 | 4 | 20591.4 | 5147.85 | 78 | 13550 |
| 104 | Harrison | Sutherland | Harrison.Sutherland@GODWIT.EXAMPLE.COM | 31-MAR-72 | single | F | H: 150,000 – 169,999 | 100 | 4 | 146605.5 | 36651.375 | 384 | 94513.5 |
| 105 | Matthias | MacGraw | Matthias.MacGraw@GOLDENEYE.EXAMPLE.COM | 21-APR-69 | married | F | C: 50,000 – 69,999 | 100 | 4 | 61376.5 | 15344.125 | 1926.6 | 29473.8 |
| 106 | Matthias | Hannah | Matthias.Hannah@GREBE.EXAMPLE.COM | 30-APR-60 | single | M | F: 110,000 – 129,999 | 100 | 4 | 36199.5 | 9049.875 | 2075.2 | 23034.6 |
| 107 | Matthias | Cruise | Matthias.Cruise@GROSBEAK.EXAMPLE.COM | 21-MAY-69 | married | F | G: 130,000 – 149,999 | 100 | 4 | 155613.2 | 38903.3 | 990.4 | 70576.9 |
| 108 | Meenakshi | Mason | Meenakshi.Mason@JACANA.EXAMPLE.COM | 20-JUN-57 | married | M | H: 150,000 – 169,999 | 100 | 4 | 213399.7 | 53349.925 | 3646 | 120131.3 |
| 109 | Christian | Cage | Christian.Cage@KINGLET.EXAMPLE.COM | 30-JUN-38 | single | M | F: 110,000 – 129,999 | 100 | 4 | 265255.6 | 66313.9 | 21863 | 92829.4 |
| 116 | Geraldine | Martin | Geraldine.Martin@SCOTER.EXAMPLE.COM | 28-OCT-27 | single | M | A: Below 30,000 | 200 | 4 | 32307 | 8076.75 | 129 | 14685.8 |
| 117 | Guillaume | Edwards | Guillaume.Edwards@SHRIKE.EXAMPLE.COM | 16-NOV-52 | married | M | E: 90,000 – 109,999 | 200 | 4 | 157808.7 | 39452.175 | 126 | 103679.3 |
| 118 | Maurice | Mahoney | Maurice.Mahoney@SNIPE.EXAMPLE.COM | 27-NOV-66 | single | M | F: 110,000 – 129,999 | 200 | 2 | 100991.8 | 50495.9 | 21586.2 | 79405.6 |
| 119 | Maurice | Hasan | Maurice.Hasan@STILT.EXAMPLE.COM | 17-DEC-65 | married | M | G: 130,000 – 149,999 | 200 | 1 | 16447.2 | 16447.2 | 16447.2 | 16447.2 |
| 120 | Diane | Higgins | Diane.Higgins@TANAGER.EXAMPLE.COM | 26-DEC-84 | single | M | H: 150,000 – 169,999 | 200 | 1 | 416 | 416 | 416 | 416 |
| 121 | Dianne | Sen | Dianne.Sen@TATTLER.EXAMPLE.COM | 15-JAN-53 | married | M | H: 150,000 – 169,999 | 200 | 1 | 4797 | 4797 | 4797 | 4797 |
| 122 | Maurice | Daltrey | Maurice.Daltrey@TEAL.EXAMPLE.COM | 15-FEB-43 | married | M | A: Below 30,000 | 200 | 1 | 103834.4 | 103834.4 | 103834.4 | 103834.4 |
| 141 | Maximilian | Henner | Maximilian.Henner@DUNLIN.EXAMPLE.COM | 21-DEC-73 | single | M | H: 150,000 – 169,999 | 500 | 1 | 38017.8 | 38017.8 | 38017.8 | 38017.8 |
| 143 | Sachin | Neeson | Sachin.Neeson@GALLINULE.EXAMPLE.COM | 20-JAN-62 | single | M | F: 110,000 – 129,999 | 500 | 1 | 27132.6 | 27132.6 | 27132.6 | 27132.6 |
| 123 | Elizabeth | Brown | Elizabeth.Brown@THRASHER.EXAMPLE.COM | 24-FEB-49 | single | F | F: 110,000 – 129,999 | 200 | 1 | 11006.2 | 11006.2 | 11006.2 | 11006.2 |
| 142 | Sachin | Spielberg | Sachin.Spielberg@GADWALL.EXAMPLE.COM | 11-JAN-71 | married | M | C: 50,000 – 69,999 | 500 | 1 | 25691.3 | 25691.3 | 25691.3 | 25691.3 |
| 163 | Ernest | Chandar | Ernest.Chandar@LIMPKIN.EXAMPLE.COM | 16-DEC-62 | single | M | H: 150,000 – 169,999 | 900 | 1 | 510 | 510 | 510 | 510 |
| 168 | Hema | Voight | Hema.Voight@PHALAROPE.EXAMPLE.COM | 16-MAR-50 | single | M | H: 150,000 – 169,999 | 1200 | 1 | 45175 | 45175 | 45175 | 45175 |
WITH customer_order_summary AS (
SELECT
oe.orders.customer_id,
COUNT(oe.orders.order_id) AS order_count,
SUM(oe.orders.order_total) AS total_sale,
AVG(oe.orders.order_total) AS average_sale,
MIN(oe.orders.order_total) AS minimum_sale,
MAX(oe.orders.order_total) AS maximum_sale
FROM
oe.orders
GROUP BY
oe.orders.customer_id
),
customer AS (
SELECT
oe.customers.customer_id,
oe.customers.cust_first_name,
oe.customers.cust_last_name,
oe.customers.cust_email,
oe.customers.date_of_birth,
oe.customers.marital_status,
oe.customers.gender,
oe.customers.income_level,
oe.customers.credit_limit
FROM
oe.customers
)
SELECT
customer.customer_id,
customer.cust_first_name,
customer.cust_last_name,
customer.cust_email,
customer.date_of_birth,
customer.marital_status,
customer.gender,
customer.income_level,
customer.credit_limit,
customer_order_summary.order_count,
customer_order_summary.total_sale,
customer_order_summary.average_sale,
customer_order_summary.minimum_sale,
customer_order_summary.maximum_sale
FROM
customer_order_summary
INNER JOIN
customer
ON customer_order_summary.customer_id = customer.customer_id;
Problem 40
Compute the average number of members enrolled per employee. Round this value to 2 decimal places and alias it as “average_enrollment.”
member
| average_enrollment |
|---|
| 11.11 |
-- Solution 1
SELECT
ROUND(
AVG(employee_member_enrollment.enrollment_count),
2
) AS average_enrollment
FROM (
SELECT
COUNT(member.member_id) AS enrollment_count
FROM
member
GROUP BY
member.employee_id
) employee_member_enrollment;
-- Solution 2
SELECT
ROUND(
AVG(COUNT(member.member_id)),
2
) AS average_enrollment
FROM
member
GROUP BY
member.employee_id;
Problem 41
For each member type description, compute the number of members and total revenue generated from the annual membership costs. Alias the number of members and revenue generated corresponding to each member type description as “member_count” and “total_revenue”, respectively. Do not include free members. In the output, include the member type description, member count, and total revenue. Sort the result set in descending order by total revenue.
member
member_type
| description | member_count | total_revenue |
|---|---|---|
| Platinum | 25 | 750 |
| Silver | 19 | 380 |
| Gold | 15 | 375 |
| Bronze | 22 | 330 |
| Free | 19 | 0 |
SELECT
member_type.description,
COUNT(member.member_id) AS member_count,
SUM(member_type.annual_cost) AS total_revenue
FROM
member
INNER JOIN
member_type
ON member.member_type_id = member_type.member_type_id
GROUP BY
member_type.description
ORDER BY
SUM(member_type.annual_cost) DESC;
Problem 42
Generate the purchase history for the member with an ID value of 1. In the output, include the member ID, purchase date, product description, quantity of the corresponding product purchased, each product’s price, and the item total (i.e., price * quantity for each product in a single purchase). Sort the result set in ascending order by purchase date. Hint: There should be one row per purchase per item purchased in the output. For example, if a member made a single purchase of three items, then there should be three rows in the output.
purchase
purchase_item
product
| member_id | purchase_date | description | quantity | price | item_total |
|---|---|---|---|---|---|
| 1 | 01-JAN-24 | Chocolate | 4 | 2 | 8 |
| 1 | 01-JAN-24 | Cookie Dough | 2 | 3.5 | 7 |
| 1 | 02-JAN-24 | Strawberry | 1 | 2 | 2 |
SELECT
purchase.member_id,
purchase.purchase_date,
product.description,
purchase_item.quantity,
product.price,
purchase_item.item_total
FROM
purchase
INNER JOIN
purchase_item
ON purchase.purchase_id = purchase_item.purchase_id
AND purchase.member_id = 1
INNER JOIN
product
ON purchase_item.product_id = product.product_id
ORDER BY
purchase.purchase_date;
Problem 43
Using a common table expression (CTE), compute each product’s (i.e., ice cream flavor) rank value in terms of total quantity sold across all member purchases. The product with the largest total quantity value should receive a rank value of 1. Assign the same rank in instances of ties and use consecutive integers. For example, the quantity values 100, 100, 95, 85, 80, and 80 should receive the rank values of 1, 1, 2, 3, 4, and 4, respectively. In the output, include the product description, the total quantity purchased, and the product ranking value. Alias the total quantity purchased as “total_quantity” and the product ranking value as “quantity_rank.” Sort the result set in descending order by total quantity.
purchase_item
product
| description | total_quantity | quantity_rank |
|---|---|---|
| Cookies N’ Cream | 164 | 1 |
| Cookie Dough | 134 | 2 |
| Mint Chocolate Chip | 134 | 2 |
| Buttered Pecan | 127 | 3 |
| Chocolate Chip Cookie Dough | 111 | 4 |
| Strawberry | 110 | 5 |
| Chocolate | 103 | 6 |
| Vanilla | 99 | 7 |
WITH product_ranking AS (
SELECT
product.description,
SUM(purchase_item.quantity) AS total_quantity,
DENSE_RANK() OVER (
ORDER BY SUM(purchase_item.quantity) DESC
) AS quantity_rank
FROM
purchase_item
INNER JOIN
product
ON purchase_item.product_id = product.product_id
GROUP BY
product.description
)
SELECT
product_ranking.description,
product_ranking.total_quantity,
product_ranking.quantity_rank
FROM
product_ranking
ORDER BY
product_ranking.total_quantity DESC;
Problem 44
Building on your solution from the previous problem, only include the top two and bottom two products in terms of quantity purchased. In the output, Include the product description, total quantity, and the product ranking column(s) . Keep the result set sorted in descending order by total quantity.
purchase_item
product
| description | total_quantity | quantity_rank_asc | quantity_rank_desc |
|---|---|---|---|
| Cookies N’ Cream | 164 | 7 | 1 |
| Mint Chocolate Chip | 134 | 6 | 2 |
| Cookie Dough | 134 | 6 | 2 |
| Chocolate | 103 | 2 | 6 |
| Vanilla | 99 | 1 | 7 |
WITH product_ranking AS (
SELECT
product.description,
SUM(purchase_item.quantity) AS total_quantity,
DENSE_RANK() OVER (
ORDER BY SUM(purchase_item.quantity) ASC
) AS quantity_rank_asc,
DENSE_RANK() OVER (
ORDER BY SUM(purchase_item.quantity) DESC
) AS quantity_rank_desc
FROM
purchase_item
INNER JOIN
product
ON purchase_item.product_id = product.product_id
GROUP BY
product.description
)
SELECT
product_ranking.description,
product_ranking.total_quantity,
product_ranking.quantity_rank_asc,
product_ranking.quantity_rank_desc
FROM
product_ranking
WHERE
product_ranking.quantity_rank_asc <= 2
OR product_ranking.quantity_rank_desc <= 2
ORDER BY
product_ranking.total_quantity DESC;
Problem 45
For each member, generate a summary containing the member’s ID, member type, annual member cost, member discount, amount spent across purchases, and amount saved across purchases. Provide report-friendly column names through the use of aliases. Round the amount saved to two decimal places. Sort the result set in ascending order by member ID.
member
member_type
purchase
| Member ID | Member Type ID | Member Type | Annual Member Cost | Member Discount | Amount Spent | Amount Saved |
|---|---|---|---|---|---|---|
| 1 | 1 | Free | 0 | 0 | 17 | 0 |
| 2 | 5 | Platinum | 30 | .1 | 28.8 | 3.2 |
| 3 | 2 | Bronze | 15 | .03 | 45.6 | 1.41 |
| 4 | 5 | Platinum | 30 | .1 | 25.2 | 2.8 |
| 5 | 5 | Platinum | 30 | .1 | 50.85 | 5.65 |
| 6 | 3 | Silver | 20 | .05 | 50.84 | 2.68 |
| 7 | 3 | Silver | 20 | .05 | 13.78 | .73 |
| 8 | 5 | Platinum | 30 | .1 | 3.6 | .4 |
| 9 | 4 | Gold | 25 | .07 | 10.23 | .77 |
| 10 | 1 | Free | 0 | 0 | 19 | 0 |
| 11 | 2 | Bronze | 15 | .03 | 14.55 | .45 |
| 12 | 3 | Silver | 20 | .05 | 18.05 | .95 |
| 13 | 5 | Platinum | 30 | .1 | 30.6 | 3.4 |
| 14 | 5 | Platinum | 30 | .1 | 44.55 | 4.95 |
| 15 | 5 | Platinum | 30 | .1 | 27 | 3 |
| 16 | 2 | Bronze | 15 | .03 | 25.22 | .78 |
| 17 | 5 | Platinum | 30 | .1 | 11.25 | 1.25 |
| 18 | 3 | Silver | 20 | .05 | 5.23 | .28 |
| 19 | 3 | Silver | 20 | .05 | 23.75 | 1.25 |
| 20 | 2 | Bronze | 15 | .03 | 13.59 | .42 |
| 21 | 2 | Bronze | 15 | .03 | 10.19 | .32 |
| 22 | 2 | Bronze | 15 | .03 | 24.25 | .75 |
| 23 | 4 | Gold | 25 | .07 | 6.52 | .49 |
| 24 | 2 | Bronze | 15 | .03 | 23.28 | .72 |
| 25 | 1 | Free | 0 | 0 | 25.5 | 0 |
| 26 | 3 | Silver | 20 | .05 | 5.23 | .28 |
| 27 | 3 | Silver | 20 | .05 | 39.9 | 2.1 |
| 28 | 4 | Gold | 25 | .07 | 6.51 | .49 |
| 29 | 4 | Gold | 25 | .07 | 9.3 | .7 |
| 30 | 5 | Platinum | 30 | .1 | 24.75 | 2.75 |
| 31 | 4 | Gold | 25 | .07 | 66.5 | 5.01 |
| 32 | 5 | Platinum | 30 | .1 | 28.8 | 3.2 |
| 33 | 5 | Platinum | 30 | .1 | 35.55 | 3.95 |
| 34 | 2 | Bronze | 15 | .03 | 4.85 | .15 |
| 35 | 1 | Free | 0 | 0 | 9 | 0 |
| 36 | 3 | Silver | 20 | .05 | 11.4 | .6 |
| 37 | 5 | Platinum | 30 | .1 | 16.2 | 1.8 |
| 38 | 5 | Platinum | 30 | .1 | 21.6 | 2.4 |
| 39 | 2 | Bronze | 15 | .03 | 56.75 | 1.76 |
| 40 | 3 | Silver | 20 | .05 | 24.7 | 1.3 |
| 41 | 2 | Bronze | 15 | .03 | 7.76 | .24 |
| 42 | 4 | Gold | 25 | .07 | 22.33 | 1.68 |
| 43 | 2 | Bronze | 15 | .03 | 8.73 | .27 |
| 44 | 2 | Bronze | 15 | .03 | 29.59 | .92 |
| 45 | 5 | Platinum | 30 | .1 | 33.3 | 3.7 |
| 46 | 4 | Gold | 25 | .07 | 33.48 | 2.52 |
| 47 | 2 | Bronze | 15 | .03 | 44.14 | 1.37 |
| 48 | 1 | Free | 0 | 0 | 35 | 0 |
| 49 | 5 | Platinum | 30 | .1 | 28.35 | 3.15 |
| 50 | 4 | Gold | 25 | .07 | 33.02 | 2.49 |
| 51 | 1 | Free | 0 | 0 | 17.5 | 0 |
| 52 | 4 | Gold | 25 | .07 | 22.32 | 1.68 |
| 53 | 4 | Gold | 25 | .07 | 41.85 | 3.15 |
| 54 | 1 | Free | 0 | 0 | 14 | 0 |
| 55 | 3 | Silver | 20 | .05 | 16.63 | .88 |
| 56 | 2 | Bronze | 15 | .03 | 30.56 | .95 |
| 57 | 1 | Free | 0 | 0 | 27 | 0 |
| 58 | 3 | Silver | 20 | .05 | 7.13 | .38 |
| 59 | 2 | Bronze | 15 | .03 | 60.15 | 1.86 |
| 60 | 5 | Platinum | 30 | .1 | 58.05 | 6.45 |
| 61 | 1 | Free | 0 | 0 | 38.5 | 0 |
| 62 | 2 | Bronze | 15 | .03 | 13.58 | .42 |
| 63 | 1 | Free | 0 | 0 | 30 | 0 |
| 64 | 3 | Silver | 20 | .05 | 11.4 | .6 |
| 65 | 5 | Platinum | 30 | .1 | 2.7 | .3 |
| 66 | 5 | Platinum | 30 | .1 | 5.4 | .6 |
| 67 | 1 | Free | 0 | 0 | 22.5 | 0 |
| 68 | 5 | Platinum | 30 | .1 | 47.25 | 5.25 |
| 69 | 2 | Bronze | 15 | .03 | 36.86 | 1.14 |
| 70 | 2 | Bronze | 15 | .03 | 46.56 | 1.44 |
| 71 | 3 | Silver | 20 | .05 | 57.96 | 3.05 |
| 72 | 4 | Gold | 25 | .07 | 30.69 | 2.31 |
| 73 | 5 | Platinum | 30 | .1 | 12.6 | 1.4 |
| 74 | 5 | Platinum | 30 | .1 | 29.7 | 3.3 |
| 75 | 3 | Silver | 20 | .05 | 30.88 | 1.63 |
| 76 | 2 | Bronze | 15 | .03 | 7.76 | .24 |
| 77 | 1 | Free | 0 | 0 | 21 | 0 |
| 78 | 2 | Bronze | 15 | .03 | 42.69 | 1.32 |
| 79 | 4 | Gold | 25 | .07 | 36.28 | 2.73 |
| 80 | 2 | Bronze | 15 | .03 | 2.91 | .09 |
| 81 | 3 | Silver | 20 | .05 | 31.35 | 1.65 |
| 82 | 3 | Silver | 20 | .05 | 43.7 | 2.3 |
| 83 | 5 | Platinum | 30 | .1 | 9.45 | 1.05 |
| 84 | 1 | Free | 0 | 0 | 70 | 0 |
| 85 | 5 | Platinum | 30 | .1 | 9 | 1 |
| 86 | 4 | Gold | 25 | .07 | 19.53 | 1.47 |
| 87 | 5 | Platinum | 30 | .1 | 25.2 | 2.8 |
| 88 | 1 | Free | 0 | 0 | 33 | 0 |
| 89 | 2 | Bronze | 15 | .03 | 5.82 | .18 |
| 90 | 1 | Free | 0 | 0 | 30 | 0 |
| 91 | 4 | Gold | 25 | .07 | 18.6 | 1.4 |
| 92 | 3 | Silver | 20 | .05 | 41.81 | 2.2 |
| 93 | 4 | Gold | 25 | .07 | 6.51 | .49 |
| 94 | 5 | Platinum | 30 | .1 | 31.95 | 3.55 |
| 95 | 3 | Silver | 20 | .05 | 47.03 | 2.48 |
| 96 | 3 | Silver | 20 | .05 | 58.44 | 3.08 |
| 97 | 1 | Free | 0 | 0 | 53.5 | 0 |
| 98 | 1 | Free | 0 | 0 | 65 | 0 |
| 99 | 1 | Free | 0 | 0 | 16.5 | 0 |
| 100 | 1 | Free | 0 | 0 | 32 | 0 |
SELECT
member.member_id AS "Member ID",
member_type.member_type_id AS "Member Type ID",
member_type.description AS "Member Type",
member_type.annual_cost AS "Annual Member Cost",
member_type.discount AS "Member Discount",
SUM(purchase.purchase_total) AS "Amount Spent",
ROUND(
(
(SUM(purchase.purchase_total)
/ (1 - member_type.discount))
- SUM(purchase.purchase_total)
),
2
) AS "Amount Saved"
FROM
member
INNER JOIN
member_type
ON member.member_type_id = member_type.member_type_id
INNER JOIN
purchase
ON member.member_id = purchase.member_id
GROUP BY
member.member_id,
member_type.member_type_id,
member_type.description,
member_type.annual_cost,
member_type.discount
ORDER BY
member.member_id;
Problem 46
Determine the amount a member must spend across their purchases to have a savings amount equal to the annual member cost associated with their member type. In the output, include the member type description, annual member cost, member discount, and the spending amount required to cover the annual member cost. Only include non-free member types. Round the spending amount required to cover the annual member cost to two decimals. Sort the result set in ascending order by member type ID.
member_type
| Member Type | Annual Member Cost | Member Discount | Amount Required |
|---|---|---|---|
| Bronze | 15 | .03 | 500 |
| Silver | 20 | .05 | 400 |
| Gold | 25 | .07 | 357.14 |
| Platinum | 30 | .1 | 300 |
SELECT
member_type.description AS "Member Type",
member_type.annual_cost AS "Annual Member Cost",
member_type.discount AS "Member Discount",
ROUND(member_type.annual_cost / member_type.discount, 2) AS "Amount Required"
FROM
member_type
WHERE
member_type.description != 'Free'
ORDER BY
member_type.member_type_id;
Problem 47
For each ice cream product sold at the ice cream shop, determine whether the product contains chocolate. Products with chocolate content contain the word ‘Chocolate’ in their descriptions. In the output, include the product ID, product description, a derived attribute indicating whether the product contains chocolate, and the product price. Sort the result set in such a way that those products containing chocolate appear before those not containing chocolate.
product
| product_id | description | contains_chocolate | price |
|---|---|---|---|
| 4 | Mint Chocolate Chip | 1 | 3 |
| 5 | Chocolate Chip Cookie Dough | 1 | 3.5 |
| 2 | Chocolate | 1 | 2 |
| 8 | Strawberry | 0 | 2 |
| 7 | Cookie Dough | 0 | 3.5 |
| 3 | Cookies N’ Cream | 0 | 3 |
| 6 | Buttered Pecan | 0 | 3.5 |
| 1 | Vanilla | 0 | 2 |
SELECT
product.product_id,
product.description,
CASE
WHEN product.description LIKE '%Chocolate%'
THEN 1
ELSE 0
END AS contains_chocolate,
product.price
FROM
product
ORDER BY
contains_chocolate DESC;
Problem 48
Create a view speaking to the performance of each ice cream flavor sold at the ice cream shop in terms of the number of times each flavor was purchased and the total sales generated. The view should output the flavor, number of times it was purchased, and the total sales. Ensure the view sorts the result set in descending order by the number of times each flavor was purchased. Provide report-friendly column names through the use of aliases. Finally, verify the newly created view produces the desirable output.
purchase
purchase_item
product
| Ice Cream Flavor | Purchase Count | Total Sales |
|---|---|---|
| Cookies N’ Cream | 57 | 1071.61 |
| Cookie Dough | 52 | 922 |
| Mint Chocolate Chip | 52 | 977.2 |
| Buttered Pecan | 44 | 709.4 |
| Chocolate Chip Cookie Dough | 44 | 791.41 |
| Strawberry | 42 | 769.6 |
| Vanilla | 40 | 755 |
| Chocolate | 37 | 753.01 |
CREATE OR REPLACE VIEW flavor_performance AS
SELECT
product.description AS "Ice Cream Flavor",
COUNT(purchase.purchase_id) AS "Purchase Count",
SUM(purchase.purchase_total) AS "Total Sales"
FROM
purchase
INNER JOIN
purchase_item
ON purchase.purchase_id = purchase_item.purchase_item_id
INNER JOIN
product
ON purchase_item.product_id = product.product_id
GROUP BY
product.description
ORDER BY
"Purchase Count" DESC;
SELECT
flavor_performance."Ice Cream Flavor",
flavor_performance."Purchase Count",
flavor_performance."Total Sales"
FROM
flavor_performance;
Problem 49
Create a view that returns the dates for which the ice cream shop enrolled zero members. The date range of interest is January 1 to March 30, 2024 inclusive. Ensure the view sorts the result set in ascending order by date. Additionally, write a query that verifies the output of your newly created view.
member
| calendar_date |
|---|
| 04-JAN-24 |
| 06-JAN-24 |
| 07-JAN-24 |
| 08-JAN-24 |
| 09-JAN-24 |
| 18-JAN-24 |
| 21-JAN-24 |
| 23-JAN-24 |
| 24-JAN-24 |
| 25-JAN-24 |
| 28-JAN-24 |
| 29-JAN-24 |
| 01-FEB-24 |
| 03-FEB-24 |
| 06-FEB-24 |
| 07-FEB-24 |
| 12-FEB-24 |
| 14-FEB-24 |
| 24-FEB-24 |
| 29-FEB-24 |
| 07-MAR-24 |
| 08-MAR-24 |
| 09-MAR-24 |
| 10-MAR-24 |
| 12-MAR-24 |
| 16-MAR-24 |
| 17-MAR-24 |
| 19-MAR-24 |
| 20-MAR-24 |
| 23-MAR-24 |
| 28-MAR-24 |
CREATE OR REPLACE VIEW zero_enrollment AS
WITH calendar (calendar_date) AS (
SELECT
TO_DATE('01-JAN-24', 'DD-MON-RR') AS opening_day
FROM
dual
UNION ALL
SELECT
calendar.calendar_date + 1
FROM
calendar
WHERE
calendar.calendar_date < TO_DATE('30-MAR-24')
),
member_enrollment AS (
SELECT
DISTINCT member.enrollment_date
FROM
member
)
SELECT
calendar.calendar_date
FROM
calendar
LEFT JOIN
member_enrollment
ON calendar.calendar_date = member_enrollment.enrollment_date
WHERE
member_enrollment.enrollment_date IS NULL
ORDER BY
calendar.calendar_date;
SELECT
zero_enrollment.calendar_date
FROM
zero_enrollment;