Firt time using "add command" in the database expert in crystal 2011 for a sql database and need a syntax check.
I have a working report created with crystals database linking but the tables are huge and the report takes too long.
Attempting to speed up a report by only bringing in columns i need.
here is what i have:
SELECT INVOICE_NUMBER, ESTIMATE_NUMBER, INVOICE_DATE FROM HISTHDR;
SELECT ESTIMATE_NUMBER,CLASS,ACCOUNT_CODE, ITEM_NUMBER, QUANTITY, DECLINED, COST, SELL_PRICE, SELL_LABOR, SALESMAN FROM HISTLINE;
SELECT MECHANIC_NAME FROM MECHANIC;
INNER JOIN HISTHDR.ESTIMATE_NUMBER = HISTLINE.ESTIMATE_NUMBER;
INNER JOIN HISTLINE.SALESMAN = MECHANIC.MECHANIC.NAME;
Will this work?
Is there a better way to write it?
thanks for your help!
I have a working report created with crystals database linking but the tables are huge and the report takes too long.
Attempting to speed up a report by only bringing in columns i need.
here is what i have:
SELECT INVOICE_NUMBER, ESTIMATE_NUMBER, INVOICE_DATE FROM HISTHDR;
SELECT ESTIMATE_NUMBER,CLASS,ACCOUNT_CODE, ITEM_NUMBER, QUANTITY, DECLINED, COST, SELL_PRICE, SELL_LABOR, SALESMAN FROM HISTLINE;
SELECT MECHANIC_NAME FROM MECHANIC;
INNER JOIN HISTHDR.ESTIMATE_NUMBER = HISTLINE.ESTIMATE_NUMBER;
INNER JOIN HISTLINE.SALESMAN = MECHANIC.MECHANIC.NAME;
Will this work?
Is there a better way to write it?
thanks for your help!