@ashuthinks, your comment makes no sense to me. The original question asks how to get rows from the previous day. To do that you need to be able to get today's date only (no time) and yesterday's date only (no time). You use these (timeless) dates in the` WHERE` clause. However, the SELECT * will return any dates with their original times. – More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.