Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am nassredean on github.
  • I am nassredean (https://keybase.io/nassredean) on keybase.
  • I have a public key ASDhzpzFVD_NZEn66_r8IuDo8j3wQEonZn2d9ZcAsQ9QRwo

To claim this, I am signing this object:

+------------+------+--------+----------+------------------+
| store_id | mm | yyyy | amount | entered_at_row |
|------------+------+--------+----------+------------------|
| 1 | 11 | 2015 | 30000.0 | 1 |
| 1 | 12 | 2015 | 40000.0 | 1 |
| 2 | 11 | 2015 | 19000.0 | 1 |
| 2 | 12 | 2015 | 11400.0 | 1 |
| 3 | 11 | 2015 | 14000.0 | 1 |
| 3 | 12 | 2015 | 21000.0 | 1 |
+------------+------+--------+----------+------------------+
+------------+------+--------+----------+-------------------+
| store_id | mm | yyyy | amount | entered_at_rank |
|------------+------+--------+----------+-------------------|
| 1 | 12 | 2015 | 40000.0 | 1 |
| 1 | 11 | 2015 | 30000.0 | 1 |
| 2 | 12 | 2015 | 11400.0 | 1 |
| 2 | 11 | 2015 | 19000.0 | 1 |
| 3 | 12 | 2015 | 21000.0 | 1 |
| 3 | 11 | 2015 | 14000.0 | 1 |
| 3 | 12 | 2015 | 21000.0 | 1 |
+------------+------+--------+----------+-------------------+
| store_id | mm | yyyy | amount | entered_at_rank |
|------------+------+--------+----------+-------------------|
| 1 | 11 | 2015 | 30000.0 | 1 |
| 1 | 11 | 2015 | 10000.0 | 2 |
| 1 | 12 | 2015 | 40000.0 | 1 |
| 1 | 12 | 2015 | 30000.0 | 2 |
| 2 | 11 | 2015 | 11000.0 | 2 |
| 2 | 12 | 2015 | 11400.0 | 1 |
| 2 | 12 | 2015 | 10000.0 | 2 |
+------------+----------+---------------+
| store_id | amount | amount_rank |
|------------+----------+---------------|
| 1 | 40000.0 | 1 |
| 1 | 30000.0 | 2 |
| 1 | 30000.0 | 2 |
| 1 | 10000.0 | 4 |
| 2 | 19000.0 | 1 |
| 2 | 11400.0 | 2 |
| 2 | 11000.0 | 3 |
+------------+------+--------+----------+-------------------+
| store_id | mm | yyyy | amount | entered_at_row |
|------------+------+--------+----------+-------------------|
| 1 | 11 | 2015 | 30000.0 | 1 |
| 1 | 11 | 2015 | 10000.0 | 2 |
| 2 | 11 | 2015 | 19000.0 | 1 |
| 2 | 11 | 2015 | 11000.0 | 2 |
| 3 | 11 | 2015 | 14000.0 | 1 |
| 3 | 11 | 2015 | 14000.0 | 2 |
| 1 | 12 | 2015 | 40000.0 | 1 |
+------------+------+--------+----------+
| store_id | mm | yyyy | amount |
|------------+------+--------+----------|
| 1 | 11 | 2015 | 10000.0 |
| 1 | 11 | 2015 | 30000.0 |
| 2 | 11 | 2015 | 11000.0 |
| 2 | 11 | 2015 | 19000.0 |
| 3 | 11 | 2015 | 14000.0 |
| 3 | 11 | 2015 | 14000.0 |
| 1 | 12 | 2015 | 30000.0 |
+------------+----------+
| store_id | sum |
|------------+----------|
| 1 | 110000.0 |
| 1 | 110000.0 |
| 1 | 110000.0 |
| 1 | 110000.0 |
| 2 | 51400.0 |
| 2 | 51400.0 |
| 2 | 51400.0 |
+------------+----------+
| store_id | amt |
|------------+----------|
| 1 | 110000.0 |
| 2 | 51400.0 |
| 3 | 70000.0 |
+------------+----------+
SALES STORES
+------+-----------+------------+----------+--------------+ +------+---------------+
| id | user_id | store_id | amount | entered_at | | id | name |
|------+-----------+------------+----------+--------------| |------+---------------|
| 1 | 1 | 1 | 10000.0 | 2015-11-07 | | 1 | Gucci |
| 2 | 1 | 1 | 30000.0 | 2015-11-29 | | 2 | Louis Vuitton |
| 3 | 1 | 2 | 11000.0 | 2015-11-08 | | 3 | Fendi |
| 4 | 1 | 2 | 19000.0 | 2015-11-26 | +------+---------------+
| 5 | 1 | 3 | 14000.0 | 2015-11-15 |
| 6 | 1 | 3 | 14000.0 | 2015-11-23 | USERS