From ae9e63fd48704a3fb6346fba3d2ffca0355e536a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E9=93=81?= Date: Thu, 24 Dec 2020 19:44:51 +0800 Subject: [PATCH] fix testcase --- src/test/resources/bvt/parser/oracle-59.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/resources/bvt/parser/oracle-59.txt b/src/test/resources/bvt/parser/oracle-59.txt index a8d083214e..d8f3de2e86 100644 --- a/src/test/resources/bvt/parser/oracle-59.txt +++ b/src/test/resources/bvt/parser/oracle-59.txt @@ -14,8 +14,8 @@ SELECT B.CUSTOMER_ID customerId,B.CN_NAME NAME FROM account_info A,CUSTOMER_INFO B WHERE A.CUSTOMER_ID=B.CUSTOMER_ID --------------------------- SELECT B.CUSTOMER_ID AS customerId, B.CN_NAME AS NAME, OPENING_DATE, CLOSING_DATE - , count(A.OPENING_DATE) OVER (PARTITION BY B.CUSTOMER_ID ORDER BY trunc(A.OPENING_DATE, 'mm') RANGE INTERVAL '3' MONTH(4) PRECEDING AND CURRENT ROW) AS createCount - , count(A.CLOSING_DATE) OVER (PARTITION BY B.CUSTOMER_ID ORDER BY trunc(NVL(A.CLOSING_DATE, SYSDATE), 'mm') RANGE INTERVAL '3' MONTH(4) PRECEDING AND CURRENT ROW) AS cancelCount + , count(A.OPENING_DATE) OVER (PARTITION BY B.CUSTOMER_ID ORDER BY trunc(A.OPENING_DATE, 'mm') RANGE BETWEEN INTERVAL '3' MONTH(4) PRECEDING AND CURRENT ROW) AS createCount + , count(A.CLOSING_DATE) OVER (PARTITION BY B.CUSTOMER_ID ORDER BY trunc(NVL(A.CLOSING_DATE, SYSDATE), 'mm') RANGE BETWEEN INTERVAL '3' MONTH(4) PRECEDING AND CURRENT ROW) AS cancelCount , row_number() OVER (PARTITION BY B.CUSTOMER_ID ORDER BY trunc(A.OPENING_DATE) DESC) AS row_flg FROM account_info A, CUSTOMER_INFO B WHERE A.CUSTOMER_ID = B.CUSTOMER_ID \ No newline at end of file