I need to extract the details from today until 6 previous days from the table. Can you help me to form this query?
Well, as long as you have a properly formatted date-column, something like "SELECT * FROM tablename WHERE date_column >= date_sub(now(), interval 6 days)" or something like that.
SELECT * FROM table WHERE date >= curdate()- INTERVAL DAYOFWEEK(curdate())+6 DAY AND date < curdate()- INTERVAL DAYOFWEEK(curdate())-1 DAY
you can perform following querry for the extraction of details select from table_name where column_name < DATE_SUB(NOW(), INTERVAL 6 DAY)