SQL determines whether there is a table