SQL Advances mappings <working, unfinished>