Merged sql-statement