An simple MemSQL listing show results on a sorted sequence to each time the query is loaded.
Query on different results per run: select * from VENDAS_POR_DIA;
Table on real sequence (ORDER):
MySQL [bucket_8]> select * from VENDAS_POR_DIA order by 1;
+------------+------+
| data_envio | qtde |
+------------+------+
| 2017-09-04 |   63 |
| 2017-09-05 |   48 |
| 2017-09-06 |  813 |
| 2017-09-07 |  177 |
| 2017-09-08 |  679 |
| 2017-09-09 | 1034 |
| 2017-09-10 |   76 |
| 2017-09-11 |  332 |
| 2017-09-12 |  542 |
| 2017-09-13 |  414 |
| 2017-09-14 |  366 |
| 2017-09-15 |  517 |
| 2017-09-16 |  197 |
| 2017-09-17 |   23 |
| 2017-09-18 |  346 |
| 2017-09-19 |  520 |
| 2017-09-20 |  149 |
| 2017-09-21 |  288 |
+------------+------+
18 rows in set (0.20 sec)
But when I dont use ORDER BY, the sequence of the order changes for each new run. How to prevent this behavior.
 
    