sql in shell script

devaris22, please read our rules. Especially:
(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post where your goal is to get an answer more quickly.

I have merged your threads.