SQL to retrieve woocommerce orders

Reference:

  1. http://codecharismatic.com/sql-script-to-get-all-woocommerce-orders-including-metadata/