channel sql