How to retrive last seven days data count seperately

SELECT DATE(created_at) AS `Date`, COUNT(*) AS `Leads` FROM users WHERE created_at >= CURRENT_DATE - INTERVAL 6 DAY GROUP BY DATE(created_at)   Ref: https://stackoverflow.com/questions/28429024/how-to-retrieve-sum-of-data-form-last-7-days-as-a-separate-sums

Advertisements

How to install samba server in fedora

1 Install samba Install samba with yum. $ sudo yum install -y samba $ sudo systemctl enable smb nmb 2 Port Open port with using ervice file of firewall-cmd. $ sudo firewall-cmd --add-service=samba --permanent $ sudo firewall-cmd --reload 3 SELinux Enable access to home directory without samba_share_t label. $ setsebool -P samba_enable_home_dirs on This article will not use … Continue reading How to install samba server in fedora