Email             :
Instagram     : https://www.instagram.com/sherlytaurin
RPubs            : https://rpubs.com/sherlytaurin/
Github           : https://github.com/sherlytaurin/
Telegram       : @Sherlytaurin



Persiapan Data

Load Packages

Connect ke MySQL

1 Select Some attributes of suppliers in alphabetical order!

2 Some attributes of suppliers in reverse alphabetical order!

3 Some attributes of suppliers ordered by country, then by city!

4 All atributes of suppliers and reverse alphabetical ordered by country, then by city!

5 All orders, sorted by total amount, the largest first!

6 Get all but the 10 most expensive products sorted by price!

7 Get the 10th to 15th most expensive products sorted by price!

8 List all supplier countries in alphabetical order!

9 Find the cheapest product and Expensive Orders!

9.1 The Cheapest Product

9.2 The Expensive Product

10 Find the number of Supplier USA!

11 Compute the total Quantity of orderitem!

12 Compute the average UnitPrice of all product!

13 Get all information about customer named Thomas Hardy!

14 List all customers from Spain or France!

15 List all customers that are not from the USA!

16 List all orders that not between $50 and $15000!

17 List all products between $10 and $20

18 List all products not between $10 and $100 sorted by price!

19 Get the list of orders and amount sold between 1996 Jan 01 and 1996 Des 31!

20 List all suppliers from the USA, UK, OR Japan!

21 List all products that are not exactly $10, $20, $30, $40, or $50!

22 List all customers that are from the same countries as the suppliers!

23 List all products that start with ‘Cha’ or ‘Chan’ and have one more character!

24 List all suppliers that do have a fax number!

Because there is no fax number column in the database, we assume that all of the suppliers don’t have any fax number.

25 List all customer with average orders between $1000 and $1200 !

26 List total customers in each country.