I have to customise a standard report in a manufacturing software called misys. The standard report gives me info in the following format:
product1 bin1
product1 bin2
product1 bin3 etc..
that means i'm getting the information of all the bins where product1 is located. My requirement is:
product1 bin1
i.e the bin located top most meaning "select
top1(mibinq.binum)".I am using pervasive sql..crystal does not allow me to change the select statement in the report.
query :
SELECT
MIMOMD."CWOHID", MIMOMD."REQQTY", MIMOMD."CMNT", MIMOMD."SRCLOC",
MIBINQ."BINUM",
MIITEM."DESCR", MIITEM."UOFM"
FROM
"MIMOH" MIMOH INNER JOIN "MIMOMD" MIMOMD ON MIMOH."WOHID" = MIMOMD."WOHID" INNER JOIN "MIBINQ" MIBINQ ON MIMOMD."ITEM" = MIBINQ."ITEM" INNER JOIN "MIITEM" MIITEM ON MIBINQ."ITEM" = MIITEM."ID"
WHERE
MIMOH."WOHID" = ''
ORDER BY
MIMOH."WOHID" ASC
Can you please suggest a way out??
Thanks,
Rajani.
product1 bin1
product1 bin2
product1 bin3 etc..
that means i'm getting the information of all the bins where product1 is located. My requirement is:
product1 bin1
i.e the bin located top most meaning "select
top1(mibinq.binum)".I am using pervasive sql..crystal does not allow me to change the select statement in the report.
query :
SELECT
MIMOMD."CWOHID", MIMOMD."REQQTY", MIMOMD."CMNT", MIMOMD."SRCLOC",
MIBINQ."BINUM",
MIITEM."DESCR", MIITEM."UOFM"
FROM
"MIMOH" MIMOH INNER JOIN "MIMOMD" MIMOMD ON MIMOH."WOHID" = MIMOMD."WOHID" INNER JOIN "MIBINQ" MIBINQ ON MIMOMD."ITEM" = MIBINQ."ITEM" INNER JOIN "MIITEM" MIITEM ON MIBINQ."ITEM" = MIITEM."ID"
WHERE
MIMOH."WOHID" = ''
ORDER BY
MIMOH."WOHID" ASC
Can you please suggest a way out??
Thanks,
Rajani.