cmd.select(DEP.NAME.as("DEPARTMENT"));
cmd.select(DEP.BUSINESS_UNIT);
cmd.join(EMP.DEPARTMENT_ID, DEP.DEPARTMENT_ID);
// Set constraints and order
cmd.where(EMP.LASTNAME.length().isGreaterThan(0));
cmd.orderBy(EMP.LASTNAME, EMP.FIRSTNAME);
/*
// Example for limitRows() and skipRows()
if (db.getDriver().isSupported(DBDriverFeature.QUERY_LIMIT_ROWS))
{ // set maximum number of rows