Alighning some sql code