SQL: some more tests