DJCroissant
New member
- Joined
- Sep 20, 2018
- Messages
- 3
- Reaction score
- 0
- Points
- 0
- Excel Version(s)
- 365
Hello everyone!
I need to built a report and i get some problem with it.
In my query1, I'm going to look for 25,000 InvoiceNumber (suppose it's invoice headers).Subsequently, in my query2, I would like to go to the line details for each of these 25,000 InvoiceNumber. The line details are stored in a huge table (more than 10 million lines). Instead of downloading the entire table (which contains all the line details of all the invoices) and therefore in order to optimize the performance, I would like to load only the lines of my 25 000 InvoiceNumber, and not the entire table. Is it possible to do it? I can go through SQL if necessary, but I do not want to hardcode my 25,000 InvoiceNumber in the code.
My SQL should look like this:
SELECT * From (Source 2) WHERE InvoiceNumber = (the list of InvoiceNumber found in the query 1);
Thanks for your help!
I need to built a report and i get some problem with it.
In my query1, I'm going to look for 25,000 InvoiceNumber (suppose it's invoice headers).Subsequently, in my query2, I would like to go to the line details for each of these 25,000 InvoiceNumber. The line details are stored in a huge table (more than 10 million lines). Instead of downloading the entire table (which contains all the line details of all the invoices) and therefore in order to optimize the performance, I would like to load only the lines of my 25 000 InvoiceNumber, and not the entire table. Is it possible to do it? I can go through SQL if necessary, but I do not want to hardcode my 25,000 InvoiceNumber in the code.
My SQL should look like this:
SELECT * From (Source 2) WHERE InvoiceNumber = (the list of InvoiceNumber found in the query 1);
Thanks for your help!