sql for example dashboard