Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .. | d1 | d2 | d3 | time1
- ----+----+----+----+-----
- .. | 1 | 12 | .. | 2019-02-20 21:20:55
- .. | 3 | 2 | .. | 2019-02-20 21:24:00
- .. | 1 | 5 | .. | 2019-02-21 15:57:14
- .. | 15 | 12 | .. | 2019-02-21 16:15:12
- .. | .. | .. | .. | time2
- ----+----+----+----+-----
- .. | .. | .. | .. | 2019-02-20 20:39:55
- .. | .. | .. | .. | 2019-02-20 21:14:00
- .. | .. | .. | .. | 2019-02-21 13:56:14
- .. | .. | .. | .. | 2019-02-21 15:52:22
- SELECT SUM(d1),SUM(d2) FROM main WHERE time1 >= now;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement