Sql statement magical use, detailed usage and explanation of various SQL statements