diff --git a/src/main/resources/db/changelog/db.changelog-master.xml b/src/main/resources/db/changelog/db.changelog-master.xml index 5ce0672..62c76ab 100644 --- a/src/main/resources/db/changelog/db.changelog-master.xml +++ b/src/main/resources/db/changelog/db.changelog-master.xml @@ -35,4 +35,15 @@ referencedTableName="person" referencedColumnNames="id" onUpdate="CASCADE"/> + + + SELECT p.id as person_id, + p.name as person_name, + b.id as book_id, + b.name as book_name + FROM person p + LEFT JOIN book b on p.id = b.author_id + + + \ No newline at end of file