TP Interview Question

mostly sql scripting