Added two more statements from advanced sql