We created saved search from revenue element table and we got the internal transaction and the transaction line id from source transaction join field. We are trying to create a SQL query that connect revenue element the invoice transaction line using the invoice internal id and invoice line id. Unfortunately, we cannot find the line id of the source transaction.