I need to select from varying levels of reporting department tables, i.e. Dept1, Dept2, Dept3, ect. [1] depending on which reporting level the user chooses. How can I dynamically express the 'table' to select from based on a given string parameter, which is the table name?
[1] Easy points (lets talk) for anyone that can help me out of this, deeper mess than the question exposed.
BREAKING NEWS: Looks like I'm going with a 'switch/case' construct. I'm tired of poring over idiotic non-solutions, and the first intelligent one I found doesn't work easily enought (without generations monastic, secluded dedication). The customer's needs come before mine.