Hi Delna;
PB actually passes any SQL to the DBMS at compile time using a "no execute" command forcing the SQL parser to return any errors back to PB. Thus as Arnd said, you need to check your SQL syntax against your DBMS manuals.
Another suggestion, is to copy your SQL command into a DBMS client tool like iSQL to run the command. This should allow you to clean up the syntax & fully test it. Once its working there, you can copy & paste it back into your PB application.
HTH
Regards ... Chris