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.
Share your code/trick to everyone
Your email is safe with us and we hate spam as much as you do.
Laravel interview Questions © 2019 - Designed by PSD to HTML