You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: queries/queries-sample.json
+20-1Lines changed: 20 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,10 @@
20
20
"vars": {
21
21
"startDate": "2024-01-01",
22
22
"endDate": "2024-06-30",
23
-
"regionList": "'서울','부산'"
23
+
"regionList": ["서울", "부산"],
24
+
"statusList": ["ACTIVE", "PENDING", "COMPLETED"],
25
+
"categoryIds": [1, 2, 3, 5],
26
+
"maxRows": 1000
24
27
},
25
28
"sheets": [
26
29
{
@@ -38,6 +41,22 @@
38
41
"aggregateColumn": "Region",
39
42
"db": "erpDB",
40
43
"query": "SELECT * FROM Customers WHERE region IN (${regionList})"
44
+
},
45
+
{
46
+
"name": "배열변수_주문상태별_조회",
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})"
52
+
},
53
+
{
54
+
"name": "배열변수_카테고리별_상품",
55
+
"use": false,
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})"
0 commit comments