Skip to content

Commit acfcd03

Browse files
committed
Change the content of the task query to English
1 parent 26bd987 commit acfcd03

12 files changed

+315
-477
lines changed

queries/datetime-variables-example.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,34 @@
55
"style": "business"
66
},
77
"vars": {
8-
"reportTitle": "시각 변수 사용 예제 (JSON)",
9-
"department": "개발팀"
8+
"reportTitle": "DateTime Variables Example (JSON)",
9+
"department": "Development"
1010
},
1111
"sheets": [
1212
{
13-
"name": "기본시각함수",
13+
"name": "BasicTimeFunctions",
1414
"use": true,
15-
"query": "SELECT '${reportTitle}' as 리포트제목, '${CURRENT_TIMESTAMP}' as 현재시각_UTC, '${NOW}' as 현재시각_NOW, '${CURRENT_DATE}' as 현재날짜, '${CURRENT_TIME}' as 현재시간, '${GETDATE}' as SQL서버형식"
15+
"query": "SELECT '${reportTitle}' as ReportTitle, '${CURRENT_TIMESTAMP}' as CurrentTime_UTC, '${NOW}' as CurrentTime_NOW, '${CURRENT_DATE}' as CurrentDate, '${CURRENT_TIME}' as CurrentTime, '${GETDATE}' as SQLServerFormat"
1616
},
1717
{
18-
"name": "한국시간대",
18+
"name": "KoreanTimeZone",
1919
"use": true,
20-
"query": "SELECT '${KST_NOW}' as 한국현재시각, '${KST_DATE}' as 한국현재날짜, '${KST_TIME}' as 한국현재시간, '${KST_DATETIME}' as 한국날짜시간, '${KST_ISO_TIMESTAMP}' as 한국ISO형식"
20+
"query": "SELECT '${KST_NOW}' as KST_Now, '${KST_DATE}' as KST_Date, '${KST_TIME}' as KST_Time, '${KST_DATETIME}' as KST_DateTime, '${KST_ISO_TIMESTAMP}' as KST_ISO_Format"
2121
},
2222
{
23-
"name": "한국식날짜형식",
23+
"name": "KoreanDateFormat",
2424
"use": true,
25-
"query": "SELECT '${KOREAN_DATE}' as 한국식날짜, '${KOREAN_DATETIME}' as 한국식날짜시간, '${KOREAN_DATE_SHORT}' as 한국식날짜짧은형식, '${WEEKDAY_KR}' as 한국어요일, '${MONTH_KR}' as 한국어월, '${YEAR_KR}' as 한국어년도"
25+
"query": "SELECT '${KOREAN_DATE}' as KoreanDate, '${KOREAN_DATETIME}' as KoreanDateTime, '${KOREAN_DATE_SHORT}' as KoreanDateShort, '${WEEKDAY_KR}' as WeekdayKorean, '${MONTH_KR}' as MonthKorean, '${YEAR_KR}' as YearKorean"
2626
},
2727
{
28-
"name": "파일명생성예제",
28+
"name": "FilenameExample",
2929
"use": true,
30-
"query": "SELECT '${department}' as 부서명, 'Report_${DATE_YYYYMMDD}_${department}.xlsx' as 추천파일명, '${KOREAN_DATE} ${WEEKDAY_KR} 리포트' as 제목예시, 'WHERE created_date >= ''${DATE_YYYY_MM_DD}'' AND department = ''${department}''' as 쿼리조건예시"
30+
"query": "SELECT '${department}' as Department, 'Report_${DATE_YYYYMMDD}_${department}.xlsx' as RecommendedFilename, '${KOREAN_DATE} ${WEEKDAY_KR} Report' as TitleExample, 'WHERE created_date >= ''${DATE_YYYY_MM_DD}'' AND department = ''${department}''' as QueryConditionExample"
3131
},
3232
{
33-
"name": "타임스탬프활용",
33+
"name": "TimestampUsage",
3434
"use": true,
35-
"query": "SELECT '${UNIX_TIMESTAMP}' as 유닉스타임스탬프, '${TIMESTAMP_MS}' as 밀리초타임스탬프, '${ISO_TIMESTAMP}' as ISO형식, '${DATETIME_YYYYMMDD_HHMMSS}' as 파일명용시각, 'backup_${DATE_YYYYMMDD}_${department}' as 백업파일명예시"
35+
"query": "SELECT '${UNIX_TIMESTAMP}' as UnixTimestamp, '${TIMESTAMP_MS}' as MillisecondTimestamp, '${ISO_TIMESTAMP}' as ISOFormat, '${DATETIME_YYYYMMDD_HHMMSS}' as FilenameDateTime, 'backup_${DATE_YYYYMMDD}_${department}' as BackupFilenameExample"
3636
}
3737
]
3838
}

queries/datetime-variables-example.xml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4,71 +4,71 @@
44
</excel>
55

66
<vars>
7-
<var name="reportTitle">시각 변수 사용 예제</var>
7+
<var name="reportTitle">DateTime Variables Example</var>
88
<var name="department">IT</var>
99
</vars>
1010

11-
<!-- 기본 시각 함수들 -->
12-
<sheet name="기본시각함수" use="true">
11+
<!-- Basic Time Functions -->
12+
<sheet name="BasicTimeFunctions" use="true">
1313
<![CDATA[
1414
SELECT
15-
'${reportTitle}' as 리포트제목,
16-
'${CURRENT_TIMESTAMP}' as 현재시각_UTC,
17-
'${NOW}' as 현재시각_NOW,
18-
'${CURRENT_DATE}' as 현재날짜,
19-
'${CURRENT_TIME}' as 현재시간,
20-
'${GETDATE}' as SQL서버형식
15+
'${reportTitle}' as ReportTitle,
16+
'${CURRENT_TIMESTAMP}' as CurrentTime_UTC,
17+
'${NOW}' as CurrentTime_NOW,
18+
'${CURRENT_DATE}' as CurrentDate,
19+
'${CURRENT_TIME}' as CurrentTime,
20+
'${GETDATE}' as SQLServerFormat
2121
]]>
2222
</sheet>
2323

24-
<!-- 한국 시간대 함수들 -->
25-
<sheet name="한국시간대" use="true">
24+
<!-- Korean Time Zone Functions -->
25+
<sheet name="KoreanTimeZone" use="true">
2626
<![CDATA[
2727
SELECT
28-
'${KST_NOW}' as 한국현재시각,
29-
'${KST_DATE}' as 한국현재날짜,
30-
'${KST_TIME}' as 한국현재시간,
31-
'${KST_DATETIME}' as 한국날짜시간,
32-
'${KST_ISO_TIMESTAMP}' as 한국ISO형식
28+
'${KST_NOW}' as KST_Now,
29+
'${KST_DATE}' as KST_Date,
30+
'${KST_TIME}' as KST_Time,
31+
'${KST_DATETIME}' as KST_DateTime,
32+
'${KST_ISO_TIMESTAMP}' as KST_ISO_Format
3333
]]>
3434
</sheet>
3535

36-
<!-- 한국식 날짜 형식 -->
37-
<sheet name="한국식날짜형식" use="true">
36+
<!-- Korean Date Format -->
37+
<sheet name="KoreanDateFormat" use="true">
3838
<![CDATA[
3939
SELECT
40-
'${KOREAN_DATE}' as 한국식날짜,
41-
'${KOREAN_DATETIME}' as 한국식날짜시간,
42-
'${KOREAN_DATE_SHORT}' as 한국식날짜짧은형식,
43-
'${WEEKDAY_KR}' as 한국어요일,
44-
'${MONTH_KR}' as 한국어월,
45-
'${YEAR_KR}' as 한국어년도
40+
'${KOREAN_DATE}' as KoreanDate,
41+
'${KOREAN_DATETIME}' as KoreanDateTime,
42+
'${KOREAN_DATE_SHORT}' as KoreanDateShort,
43+
'${WEEKDAY_KR}' as WeekdayKorean,
44+
'${MONTH_KR}' as MonthKorean,
45+
'${YEAR_KR}' as YearKorean
4646
]]>
4747
</sheet>
4848

49-
<!-- 다양한 형식들 -->
50-
<sheet name="다양한형식" use="true">
49+
<!-- Various Formats -->
50+
<sheet name="VariousFormats" use="true">
5151
<![CDATA[
5252
SELECT
53-
'${DATE_YYYYMMDD}' as YYYYMMDD형식,
54-
'${DATE_YYYY_MM_DD}' as YYYY_MM_DD형식,
55-
'${DATETIME_YYYYMMDD_HHMMSS}' as 날짜시간조합형식,
56-
'${WEEKDAY_EN}' as 영어요일,
57-
'${UNIX_TIMESTAMP}' as 유닉스타임스탬프,
58-
'${TIMESTAMP_MS}' as 밀리초타임스탬프
53+
'${DATE_YYYYMMDD}' as YYYYMMDD_Format,
54+
'${DATE_YYYY_MM_DD}' as YYYY_MM_DD_Format,
55+
'${DATETIME_YYYYMMDD_HHMMSS}' as DateTime_Combined,
56+
'${WEEKDAY_EN}' as WeekdayEnglish,
57+
'${UNIX_TIMESTAMP}' as UnixTimestamp,
58+
'${TIMESTAMP_MS}' as MillisecondTimestamp
5959
]]>
6060
</sheet>
6161

62-
<!-- 실제 사용 예제 -->
63-
<sheet name="실제사용예제" use="true">
62+
<!-- Practical Usage Example -->
63+
<sheet name="PracticalExample" use="true">
6464
<![CDATA[
6565
SELECT
66-
'${department}' as 부서명,
67-
'리포트 생성일: ${KOREAN_DATE}' as 생성정보,
68-
'생성시각: ${KST_NOW}' as 상세시각,
69-
'요일: ${WEEKDAY_KR}' as 요일정보,
70-
'파일명 형식: Report_${DATE_YYYYMMDD}_${department}' as 파일명예시,
71-
'WHERE 조건 예시: created_date >= ''${DATE_YYYY_MM_DD}''' as 쿼리예시
66+
'${department}' as Department,
67+
'Report Creation Date: ${KOREAN_DATE}' as CreationInfo,
68+
'Creation Time: ${KST_NOW}' as DetailedTime,
69+
'Day of Week: ${WEEKDAY_KR}' as DayInfo,
70+
'Filename Format: Report_${DATE_YYYYMMDD}_${department}' as FilenameExample,
71+
'WHERE Condition Example: created_date >= ''${DATE_YYYY_MM_DD}''' as QueryExample
7272
]]>
7373
</sheet>
7474
</queries>

queries/queries-sample-orders.json

Lines changed: 35 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,62 @@
11
{
22
"excel": {
33
"db": "sampleDB",
4-
"output": "output/주문관리_보고서.xlsx",
4+
"output": "output/sales_summary_2024.xlsx",
5+
"maxRows": 1500,
56
"header": {
6-
"font": { "name": "맑은 고딕", "size": 12, "color": "FFFFFF", "bold": true },
7+
"font": { "name": "Arial", "size": 12, "color": "FFFFFF", "bold": true },
78
"fill": { "color": "4F81BD" },
9+
"colwidths": { "min": 10, "max": 30 },
810
"alignment": { "horizontal": "center", "vertical": "middle" },
9-
"border": {
10-
"all": { "style": "thin", "color": "000000" }
11-
},
12-
"colwidths": { "min": 10, "max": 30 }
11+
"border": { "all": { "style": "thin", "color": "000000" } }
1312
},
1413
"body": {
15-
"font": { "name": "맑은 고딕", "size": 11, "color": "000000", "bold": false },
14+
"font": { "name": "Arial", "size": 11, "color": "000000", "bold": false },
1615
"fill": { "color": "FFFFCC" },
17-
"alignment": { "horizontal": "left", "vertical": "middle" },
18-
"border": {
19-
"all": { "style": "thin", "color": "CCCCCC" }
20-
}
16+
"alignment": { "horizontal": "center", "vertical": "middle" },
17+
"border": { "all": { "style": "thin", "color": "000000" } }
2118
}
2219
},
2320
"vars": {
24-
"reportDate": "2024-12-30",
2521
"startDate": "2024-01-01",
26-
"endDate": "2024-12-31",
27-
"regionList": "'서울','부산','대구'",
28-
"statusList": "'Shipped','Processing','Pending'"
22+
"endDate": "2024-06-30",
23+
"regionList": ["Seoul", "Busan"],
24+
"statusList": ["ACTIVE", "PENDING", "COMPLETED"],
25+
"categoryIds": [1, 2, 3, 5],
26+
"maxRows": 1000
2927
},
3028
"sheets": [
3129
{
32-
"name": "전체_고객_목록",
33-
"use": true,
34-
"query": "SELECT CustomerCode as 고객코드, CustomerName as 고객명, ContactName as 담당자명, Email as 이메일, Phone as 전화번호, City as 도시, Region as 지역, CustomerType as 고객유형, CreditLimit as 신용한도, CASE WHEN IsActive = 1 THEN '활성' ELSE '비활성' END as 상태, FORMAT(CreatedDate, 'yyyy-MM-dd') as 등록일 FROM SampleDB.dbo.Customers ORDER BY CustomerID"
35-
},
36-
{
37-
"name": "활성_고객_목록",
38-
"use": true,
39-
"query": "SELECT CustomerCode as 고객코드, CustomerName as 고객명, ContactName as 담당자명, Email as 이메일, Phone as 전화번호, City as 도시, Region as 지역, CustomerType as 고객유형, FORMAT(CreditLimit, 'N0') as 신용한도, FORMAT(CreatedDate, 'yyyy-MM-dd') as 등록일 FROM SampleDB.dbo.Customers WHERE IsActive = 1 ORDER BY CreditLimit DESC"
40-
},
41-
{
42-
"name": "주요지역_고객",
43-
"use": true,
44-
"query": "SELECT CustomerCode as 고객코드, CustomerName as 고객명, ContactName as 담당자명, City as 도시, Region as 지역, CustomerType as 고객유형, FORMAT(CreditLimit, 'N0') as 신용한도 FROM SampleDB.dbo.Customers WHERE Region IN (${regionList}) AND IsActive = 1 ORDER BY Region, CreditLimit DESC"
45-
},
46-
{
47-
"name": "전체_주문_목록",
48-
"use": true,
49-
"query": "SELECT OrderNumber as 주문번호, OrderDate as 주문일, RequiredDate as 요청일, ShippedDate as 배송일, OrderStatus as 주문상태, PaymentStatus as 결제상태, FORMAT(TotalAmount, 'N0') as 총금액, PaymentMethod as 결제방법, ShipVia as 배송업체, Notes as 비고 FROM SampleDB.dbo.Orders ORDER BY OrderDate DESC"
50-
},
51-
{
52-
"name": "기간별_주문",
30+
"name": "Orders",
5331
"use": true,
54-
"query": "SELECT o.OrderNumber as 주문번호, FORMAT(o.OrderDate, 'yyyy-MM-dd') as 주문일, c.CustomerName as 고객명, c.Region as 지역, o.OrderStatus as 주문상태, o.PaymentStatus as 결제상태, FORMAT(o.TotalAmount, 'N0') as 총금액, o.PaymentMethod as 결제방법 FROM SampleDB.dbo.Orders o INNER JOIN SampleDB.dbo.Customers c ON o.CustomerID = c.CustomerID WHERE o.OrderDate >= '${startDate}' AND o.OrderDate <= '${endDate}' ORDER BY o.OrderDate DESC"
32+
"maxRows": 1000,
33+
"aggregateColumn": "OrderStatus",
34+
"db": "sampleDB",
35+
"query": "SELECT * FROM Orders WHERE OrderDate >= '${startDate}' AND OrderDate <= '${endDate}'"
5536
},
5637
{
57-
"name": "처리중_주문",
58-
"use": true,
59-
"query": "SELECT o.OrderNumber as 주문번호, FORMAT(o.OrderDate, 'yyyy-MM-dd') as 주문일, c.CustomerName as 고객명, c.ContactName as 담당자, c.Phone as 연락처, o.OrderStatus as 주문상태, o.PaymentStatus as 결제상태, FORMAT(o.TotalAmount, 'N0') as 총금액, o.Notes as 비고 FROM SampleDB.dbo.Orders o INNER JOIN SampleDB.dbo.Customers c ON o.CustomerID = c.CustomerID WHERE o.OrderStatus IN (${statusList}) ORDER BY o.OrderDate"
60-
},
61-
{
62-
"name": "주문_상세_내역",
63-
"use": true,
64-
"query": "SELECT o.OrderNumber as 주문번호, FORMAT(o.OrderDate, 'yyyy-MM-dd') as 주문일, c.CustomerName as 고객명, od.ProductCode as 제품코드, od.ProductName as 제품명, FORMAT(od.UnitPrice, 'N0') as 단가, od.Quantity as 수량, CONCAT(od.Discount, '%') as 할인율, FORMAT(od.LineTotal, 'N0') as 금액 FROM SampleDB.dbo.Orders o INNER JOIN SampleDB.dbo.Customers c ON o.CustomerID = c.CustomerID INNER JOIN SampleDB.dbo.OrderDetails od ON o.OrderID = od.OrderID WHERE o.OrderDate >= '${startDate}' AND o.OrderDate <= '${endDate}' ORDER BY o.OrderDate DESC, od.OrderDetailID"
65-
},
66-
{
67-
"name": "고객별_주문_집계",
68-
"use": true,
69-
"query": "SELECT c.CustomerCode as 고객코드, c.CustomerName as 고객명, c.Region as 지역, c.CustomerType as 고객유형, COUNT(o.OrderID) as 주문횟수, FORMAT(SUM(o.TotalAmount), 'N0') as 총주문금액, FORMAT(AVG(o.TotalAmount), 'N0') as 평균주문금액, MIN(FORMAT(o.OrderDate, 'yyyy-MM-dd')) as 첫주문일, MAX(FORMAT(o.OrderDate, 'yyyy-MM-dd')) as 최근주문일 FROM SampleDB.dbo.Customers c INNER JOIN SampleDB.dbo.Orders o ON c.CustomerID = o.CustomerID WHERE o.OrderDate >= '${startDate}' AND o.OrderDate <= '${endDate}' GROUP BY c.CustomerCode, c.CustomerName, c.Region, c.CustomerType ORDER BY SUM(o.TotalAmount) DESC"
70-
},
71-
{
72-
"name": "월별_매출_집계",
73-
"use": true,
74-
"query": "SELECT YEAR(o.OrderDate) as 년도, MONTH(o.OrderDate) as 월, COUNT(o.OrderID) as 주문건수, COUNT(DISTINCT o.CustomerID) as 고객수, FORMAT(SUM(o.TotalAmount), 'N0') as 총매출, FORMAT(AVG(o.TotalAmount), 'N0') as 평균주문금액, COUNT(CASE WHEN o.OrderStatus = 'Shipped' THEN 1 END) as 배송완료, COUNT(CASE WHEN o.OrderStatus = 'Processing' THEN 1 END) as 처리중 FROM SampleDB.dbo.Orders o WHERE o.OrderDate >= '${startDate}' AND o.OrderDate <= '${endDate}' GROUP BY YEAR(o.OrderDate), MONTH(o.OrderDate) ORDER BY YEAR(o.OrderDate), MONTH(o.OrderDate)"
38+
"name": "Customers",
39+
"use": false,
40+
"maxRows": 500,
41+
"aggregateColumn": "Region",
42+
"db": "erpDB",
43+
"query": "SELECT * FROM Customers WHERE region IN (${regionList})"
7544
},
7645
{
77-
"name": "지역별_매출_분석",
78-
"use": true,
79-
"query": "SELECT c.Region as 지역, COUNT(DISTINCT c.CustomerID) as 고객수, COUNT(o.OrderID) as 주문건수, FORMAT(SUM(o.TotalAmount), 'N0') as 총매출, FORMAT(AVG(o.TotalAmount), 'N0') as 평균주문금액, COUNT(CASE WHEN c.CustomerType = 'VIP' THEN 1 END) as VIP고객수, COUNT(CASE WHEN c.CustomerType = 'Premium' THEN 1 END) as Premium고객수, COUNT(CASE WHEN c.CustomerType = 'Regular' THEN 1 END) as 일반고객수 FROM SampleDB.dbo.Customers c INNER JOIN SampleDB.dbo.Orders o ON c.CustomerID = o.CustomerID WHERE o.OrderDate >= '${startDate}' AND o.OrderDate <= '${endDate}' AND c.IsActive = 1 GROUP BY c.Region ORDER BY SUM(o.TotalAmount) DESC"
46+
"name": "Orders_By_Status",
47+
"use": false,
48+
"maxRows": 800,
49+
"aggregateColumn": "OrderStatus",
50+
"db": "sampleDB",
51+
"query": "SELECT OrderNumber, OrderDate, OrderStatus, PaymentStatus, TotalAmount FROM Orders WHERE OrderDate >= '${startDate}' AND OrderDate <= '${endDate}' AND OrderStatus IN (${statusList})"
8052
},
8153
{
82-
"name": "주문요약뷰_테스트",
54+
"name": "Products_By_Category",
8355
"use": false,
84-
"query": "SELECT OrderID as 주문ID, OrderNumber as 주문번호, FORMAT(OrderDate, 'yyyy-MM-dd') as 주문일, CustomerCode as 고객코드, CustomerName as 고객명, CustomerCity as 고객도시, CustomerRegion as 고객지역, OrderStatus as 주문상태, PaymentStatus as 결제상태, FORMAT(TotalAmount, 'N0') as 총금액, ItemCount as 상품종류수, TotalQuantity as 총수량 FROM SampleDB.dbo.vw_OrderSummary ORDER BY OrderDate DESC"
56+
"maxRows": 600,
57+
"aggregateColumn": "CategoryName",
58+
"db": "sampleDB",
59+
"query": "SELECT p.ProductID, p.ProductName, c.CategoryName, p.UnitPrice FROM Products p INNER JOIN Categories c ON p.CategoryID = c.CategoryID WHERE p.CategoryID IN (${categoryIds})"
8560
}
8661
]
8762
}

0 commit comments

Comments
 (0)