tiptop Posted December 22, 2017 Share Posted December 22, 2017 How to extract email IDs from phpmyadmin sql command line ? I need email ID of all customers who are subscribing to emailing (have not opt out or marketing emails ) and account is not closed Link to comment Share on other sites More sharing options...
sentq Posted December 25, 2017 Share Posted December 25, 2017 SELECT `email` FROM `tblclients` WHERE `emailoptout` = '0' AND `status` != 'Closed'; Link to comment Share on other sites More sharing options...
tiptop Posted December 25, 2017 Author Share Posted December 25, 2017 3 hours ago, sentq said: SELECT `email` FROM `tblclients` WHERE `emailoptout` = '0' AND `status` != 'Closed'; what will be query to extract emails of clients who are affiliates ? Link to comment Share on other sites More sharing options...
sentq Posted December 25, 2017 Share Posted December 25, 2017 to get emails of affiliates where their account aren't closed use: SELECT `tblclients`.`email` FROM `tblclients` JOIN `tblaffiliates` ON (`tblaffiliates`.`clientid` = `tblclients`.`id`) WHERE `tblclients`.`status` != 'Closed' ; Link to comment Share on other sites More sharing options...
Recommended Posts