AdRock Posted March 6, 2010 Share Posted March 6, 2010 I have 2 tables i need to join but one of the tables sql has DATE_FORMAT in it. SELECT f.festivalid, f.eventname, f.url, DATE_FORMAT(f.datefrom, '%Y-%m-%d') as f.datefrom, DATE_FORMAT(f.dateto, '%Y-%m-%d') as f.dateto,lf.location, f.postcode, f.additional, f.lat, f.lon, f.conname, f.address1, f.address2, f.city, f.county, post, f.telephone, f.mobile, f.fax, f.email, f.dances, f.pub, f.disability, f.caravan, f.campsite, f.indoor, f.car, f.train, f.bus, v.total, v.votes FROM festivals as f, votes as v WHERE f.festivalid = v.festivalid I get an error message pointing to the DATE_FORMAT....any ideas how to fix this? Link to comment https://forums.phpfreaks.com/topic/194356-date_format-and-inner-joins/ Share on other sites More sharing options...
fenway Posted March 15, 2010 Share Posted March 15, 2010 Are you certain? If you remove them, it goes away? Link to comment https://forums.phpfreaks.com/topic/194356-date_format-and-inner-joins/#findComment-1026466 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.