Forum

Performing double l...
 
Notifications
Clear all

Performing double lookup from a table consists of key of another two tables

2 Posts
2 Users
0 Reactions
77 Views
(@bluesky63)
Posts: 162
Estimable Member
Topic starter
 

Hi Catalin, Mynda

I have one table

Employee No Employee Name  Account No   Account %    Scope   Item   Weightage   Bonus Target     Bonus Tgt by cc

Table 1

Cost Centre   Rev YTD Target    LC YTD Target     Rev YTD Actual  LC YTD Actual

Table 2

Scope Rev YTD Target    LC YTD Target     Rev YTD Actual  LC YTD Actual

final merge report

Employee No Employee Name  Account No   Account %    Scope   Item   Weightage   Bonus Target     Bonus Tgt by cc   Connector (either Table 1 Cost Center or Table 2 Scope)  Scope Rev YTD Target    LC YTD Target     Rev YTD Actual  LC YTD Actual

we wanted to achieve just using the employee table to merge with Table 1 and Table 2 to achieve the results,  i.e. only one query

instead of using 3 queries (see attached)

is it possible ?

Thank you in advance

 
Posted : 28/09/2020 9:05 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Chris,

I don't see a way to do this any easier/with less tables than you're already using other than writing a custom function, but this doesn't really mean it'll be any more efficient.

Mynda

 
Posted : 30/09/2020 2:11 am
Share: