Narvar Interview Question

Joint function example and some problems on sql