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-with-dynamic-variables.json
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -42,14 +42,26 @@
42
42
"query": "SELECT OrderID, OrderNumber, OrderDate FROM SampleDB.dbo.Orders WHERE OrderDate >= '${startDate}' AND OrderDate <= '${endDate}' AND OrderDate >= DATEADD(day, -30, '${CURRENT_DATE}') ORDER BY OrderDate DESC"
43
43
}
44
44
],
45
+
"queryDefs": {
46
+
"customer_base": {
47
+
"name": "customer_base",
48
+
"description": "Base customer query",
49
+
"query": "SELECT c.CustomerID as 고객ID, c.CustomerName as 고객명, c.City as 도시, c.Region as 지역, c.CustomerType as 고객유형 FROM SampleDB.dbo.Customers c WHERE c.CustomerID IN (${customerData.CustomerID}) AND c.Region IN (${regionList}) ORDER BY c.CustomerID"
50
+
}
51
+
},
45
52
"sheets": [
46
53
{
47
54
"name": "${envType}_동적변수_테스트",
48
55
"use": true,
56
+
"queryRef": "customer_base",
49
57
"aggregateColumn": "지역",
50
58
"maxRows": 100,
51
59
"db": "sampleDB",
52
-
"query": "SELECT c.CustomerID as 고객ID, c.CustomerName as 고객명, c.City as 도시, c.Region as 지역, c.CustomerType as 고객유형 FROM SampleDB.dbo.Customers c WHERE c.CustomerID IN (${customerData.CustomerID}) AND c.Region IN (${regionList}) ORDER BY c.CustomerID"
0 commit comments