q.from(customersTable, "c");
q.from(employeeTable, "o");
SelectItem countrySelect = new SelectItem(countryColumn);
q.select(countrySelect, new SelectItem(FunctionType.SUM, creditLimitColumn));
q.groupBy(countryColumn);
q.orderBy(new OrderByItem(countrySelect));
q.where(new FilterItem(new SelectItem(employeeNumberColumn1), OperatorType.EQUALS_TO, new SelectItem(
employeeNumberColumn2)));
assertEquals(
"SELECT c.\"COUNTRY\", SUM(c.\"CREDITLIMIT\") FROM PUBLIC.\"CUSTOMERS\" c, PUBLIC.\"EMPLOYEES\" o WHERE c.\"SALESREPEMPLOYEENUMBER\" = o.\"EMPLOYEENUMBER\" GROUP BY c.\"COUNTRY\" ORDER BY c.\"COUNTRY\" ASC",