I want to fetch all the records whose transaction_date falls today e.g. (12th February 2014). So to achieve this I tried following SQL query:
SELECT transaction_status, count( * ) AS StatusCount
FROM OCN.user_transaction
WHERE transaction_date = date('Ymd')
GROUP BY transaction_status
But it's not working for me. Can anyone help me in this regard please? Thanks in advance.
transaction_date?select ... where date(now()) = date(from_unixtime(transaction_date)) ...;.