I have a left outer join that is joining two tables. the mobile table is the default table that gets sent out daily. If the default table is edited, it is saved to the edited table where it will be sent out instead of the default table. How do I determine if the edited table has content for that day and how do I tell which table to pull the contant from??
<cfquery name="getDevotional" datasource="#application.dsn#">
SELECT mobile.mob_id, mobile.display_date, mobile.title, mobile.body, mobile.scripture, edited.mob_id
FROM mobile
left outer join edited ON mobile.calendar_date = edited.calendar_date
where mobile.display_date = <cfqueryparam value ="#dateformat(now(), "YYYY-MM-DD")#" cfsqltype="cf_sql_date">
</cfquery>
Both tables have the same columns