In this example we will see a sample query to get last 7 days records from mysql table.
Select * from your_table where created_date >= DATE(NOW()) - INTERVAL 7 DAY
This post is submitted by one of our members. You may submit a new post here.
Laravel interview Questions © 2019 - Designed by PSD to HTML