You can combine them by connecting data two times, one for database tables and one for flat file. The Data->Edit Relationships. Give a join condition on common column from DB tables to flat file