-
-
Notifications
You must be signed in to change notification settings - Fork 86
SQL Bulk Lookup
Thibaut Barrère edited this page May 13, 2020
·
6 revisions
A common requirement during ETL work is to search a SQL column for a given (unique) value, find the corresponding row, then get the value of a second column in that same row. This can be very valuable to:
- Replace a given business key by the corresponding surrogate key (see wikipedia page on surrogate keys) in e.g. a data warehouse.
- Help handle relationships between tables during migrations between databases (e.g. one could keep a
legacy_id
in a new product table, then an invoice line item referring to thelegacy_id
can easily replace that id with the new target id)
Kiba Pro `SQL
Home | Core Concepts | Defining jobs | Running jobs | Writing sources | Writing transforms | Writing destinations | Implementation Guidelines | Kiba Pro
This wiki is tracked by git and publicly editable. You are welcome to fix errors and typos. Any defacing or vandalism of content will result in your changes being reverted and you being blocked.