Excel Spreadsheet to track and create joins -


i writing lot of sql code @ moment - haven't done in long time , getting frustrated @ time spent working out relationships between tables.

i thinking might idea create in excel list of tables , how join other tables. can use drop down select table1 , table2 , use vlookup or similar find how link , generate join.

i started occurred me may have done in elegant way.

my process far has been create table in excel per table below. can either have dropdown or use filter find appropriate relationship , create code required join:

 table1          |table2       |table1_field    |table_ field    |join type cnsmr           |cnsmr_accnt  |cnsmr_id        |cnsmr_id        |inner cnsmr_accnt     |udefgeneral  |cnsmr_accnt_id  |cnsmr_accnt_id  |inner cnsmr_accnt_tag |cnsmr_accnt  |cnsmr_accnt_id  |cnsmr_accnt_id  |inner wrkgrp          |cnsmr        |wrkgrp_id       |wrkgrp_id       |inner  

i can use formula (looking on list of tables table abbreviation:

=" " & a2 & " " & vlookup(a2, 'list of tables'!$a$2:$b$115, 2, false)& " " & e2 & " join " & b2 & " " & vlookup(b2, 'list of tables'!$a$2:$b$115, 2, false) & " on " &vlookup(a2, 'list of tables'!$a$2:$b$115, 2, false) & "." &c2 & " = " & vlookup(b2, 'list of tables'!$a$2:$b$115, 2, false) &"." &d2


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -