Skip to content

Commit

Permalink
Add union example
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubknejzlik committed Jan 7, 2025
1 parent 3cdfdd1 commit 147459b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/stories/1_Query.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ Q.select().from('table', 't');
`}
/>

### Union

<QueryPreview
code={`
Q.select()
.from('users')
.union(Q.select().from('users2'))
`}
/>

### Joining Tables

Join operations are essential in SQL for combining rows from two or more tables based on a related column. The Query Builder supports various types of joins: INNER, LEFT, RIGHT, and FULL joins.
Expand Down

0 comments on commit 147459b

Please sign in to comment.