Posts by Hugo Leonardo • 21 points
2 posts
-
2
votes1
answer24
viewsQ: How to return the last record of each sale
How to return the last record of each sale considering the max(date)? +---------+--------------------+---------------+ |venda |Data |id | +---------+--------------------+---------------| |0000001…
-
-2
votes1
answer31
viewsQ: SQL - Set Timestamp in Select
How do I set the min("Timestamp") in a select and then return the last data where it is different from this min("Timestamp")? My Code: SELECT min("TIMESTAMP") AS PrimeiroLog, ID, UF FROM bd.test…