What exactly do you mean with "SQL database".
SQL is a query language that is used by all modern RDBMS (MS Access also uses some kind of SQL if I'm not mistaken). So your question doesn't really make sense.
I will not read nor answer questions where the SQL code is messy and not formatted properly using [code] tags.
Tips on how to ask better questions: