Generated SQL for missing tables