I have some embedded SQL in a ksh script with functionality to count the number of records in a table, however, the select * in the query is returning all file names
"$(sqlplus -s $username/$password@$hostname <<ENDOFSQL
            set head off
            select count(*) from (select * from table_a minus select * from table_b);
            exit;
ENDOFSQL)"
When I print the results of the query, I get select count(*) from (select a.txt b.txt c.sql d.ctl
What's going wrong here?
