Files
lst_v3/backend/prodSql/queries/datamart.invoiceAddress.sql
Blake Matthes 47b149d1ea
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 4m26s
feat(dm): migrated all the dm topics
2026-06-26 11:05:17 -05:00

15 lines
396 B
SQL

use [test1_AlplaPROD2.0_Read]
SELECT deliveryAddress.humanreadableid as deliveryAddress
,invoice.HumanReadableId as invoiceAddress
,[Default]
FROM [masterData].[InvoiceAddress] (nolock) as d
join
[masterData].[Address] deliveryAddress (nolock) on deliveryAddress.id = d.AddressId
join
[masterData].[Address] invoice (nolock) on invoice.id = d.InvoiceAddressId
where [Default] = 1