Back to Kysely

Simple inner join

site/docs/examples/join/0010-simple-inner-join.mdx

0.28.171.1 KB
Original Source

Simple inner join

Simple inner joins can be done by providing a table name and two columns to join:

import { Playground } from '../../../src/components/Playground'

import { simpleInnerJoin } from './0010-simple-inner-join'

<div style={{ marginBottom: '1em' }}> <Playground code={simpleInnerJoin} /> </div>

:::info[More examples] The API documentation is packed with examples. The API docs are hosted here, but you can access the same documentation by hovering over functions/methods/classes in your IDE. The examples are always just one hover away!

For example, check out these sections: