is there any tool that can help me make SQL statements inside SQL statement