26.06.2007, 05:56 | #13 |
Участник
|
Цитата:
Вот корректный код запроса: X++: queryText = strfmt( "SELECT * " + " FROM RASSETTABLE A INNER JOIN" + " RASSETTRANS B ON A.ACCOUNTNUM = B.ACCOUNTNUM INNER JOIN" + " LEDGERTRANS C ON B.VGP_LEDGERLINKID = C.VGP_LEDGERLINKID AND B.VOUCHER = C.VOUCHER AND" + " B.TRANSDATE = C.TRANSDATE" + " WHERE (A.DATAAREAID = '%5') AND (A.VGP_PROPERTYTAX = %4) AND (B.DATAAREAID = '%5') AND (B.ASSETTRANSTYPE = %2) AND" + " (B.TRANSDATE <= CONVERT(DATETIME,'%1', 102)) AND (C.DATAAREAID = 'vgp') AND (C.VGP_LEDGERLINKMODULEREF = %3)" + " ORDER BY A.DATAAREAID, A.ACCOUNTNUM, B.DATAAREAID, B.ACCOUNTNUM, B.ASSETTRANSTYPE, C.DATAAREAID, C.VGP_LEDGERLINKID," + " C.VGP_LEDGERLINKMODULEREF" + " OPTION (FAST 4)" , date2str( reportDateEnd,321,2,4,2,4,4), ip2, ip3, ip4, CurExt() );
__________________
PS. Сложно приехать в Москву, но ещё сложнее уехать отсюда. |
|
Теги |
производительность, запрос (query), ax3.0 |
|
|