SELECT (CREDITS.CRED_VALUE_PER_CREDIT-PACKAGE_DEFAULTS.PACDEF_TUTOR_HOURLY_PAY/LESSON_TYPES.LESTY_BILLING_PERSONS) *CREDITS.CRED_NUM_OF_CREDITS ALS PROFIT,
JAHR (CREDITS.CRED_PURCHASE_DATE), MONAT (CREDITS.CRED_PURCHASE_DATE), CRED_ID
VON DEN GUTSCHRIFTEN, DIE INNER SIND, KUNDEN AUF VERBINDEN CREDITS.CRED_CUS_ID = CUSTOMERS.CUS_ID, DAS INNER IST, VERBINDEN LESSON_TYPES AUF CREDITS.CRED_LESTY_ID = INNERES LESSON_TYPES.LESTY_ID VERBINDEN PACKAGE_DEFAULTS AUF LESSON_TYPES.LESTY_ID = PACKAGE_DEFAULTS.PACDEF_LESTY_ID
WO MONAT (CREDITS.CRED_PURCHASE_DATE) = „02“ UND JAHR (CREDITS.CRED_PURCHASE_DATE) = „2010“ UND CUSTOMERS.CUS_USER_ID = „14“ UND CREDITS.CRED_DEACTIVE = 0 UND CREDITS.CRED_ORDER_STATUS = 4
GRUPPE DURCH PACDEF_TUTOR_HOURLY_PAY, CREDITS.CRED_VALUE_PER_CREDIT
|