|
1 | 1 | <queries> |
2 | | - <excel db="sampleDB" output="d:/temp/sales_summary_${DATE.KST:yyyyMMddhhmmss}.xlsx" maxRows="20" style="modern"> |
| 2 | + <excel db="oracleDB" output="d:/temp/sales_summary_${DATE.KST:yyyyMMddhhmmss}.xlsx" maxRows="20" style="modern"> |
3 | 3 | <!-- Style template ID (default: default) --> |
4 | 4 | <!-- Available templates: default, modern, dark, colorful, minimal, business, premium --> |
5 | 5 | <!-- Can be overridden with individual style attributes if needed --> |
|
22 | 22 | PaymentStatus as PaymentStatus, |
23 | 23 | FORMAT(TotalAmount, 'N0') as TotalAmount, |
24 | 24 | PaymentMethod as PaymentMethod |
25 | | - FROM SampleDB.dbo.Orders |
| 25 | + FROM Orders |
26 | 26 | WHERE OrderDate >= '${startDate}' AND OrderDate <= '${endDate}' |
27 | 27 | ORDER BY OrderDate DESC |
28 | 28 | ]]> |
29 | 29 | </sheet> |
30 | 30 | <sheet name="Customer_List" use="true" aggregateColumn="Region" style="dark"> |
31 | 31 | <![CDATA[ |
32 | 32 | SELECT * |
33 | | - FROM SampleDB.dbo.Customers |
| 33 | + FROM Customers |
34 | 34 | ]]> |
35 | 35 | </sheet> |
36 | 36 | <sheet name="Customer_Details_Regional_Statistics_Summary" use="true"> |
|
42 | 42 | FORMAT(od.UnitPrice, 'N0') as UnitPrice, |
43 | 43 | od.Quantity as Quantity, |
44 | 44 | FORMAT(od.LineTotal, 'N0') as LineTotal |
45 | | - FROM SampleDB.dbo.Orders o |
46 | | - INNER JOIN SampleDB.dbo.Customers c ON o.CustomerID = c.CustomerID |
47 | | - INNER JOIN SampleDB.dbo.OrderDetails od ON o.OrderID = od.OrderID |
| 45 | + FROM Orders o |
| 46 | + INNER JOIN Customers c ON o.CustomerID = c.CustomerID |
| 47 | + INNER JOIN OrderDetails od ON o.OrderID = od.OrderID |
48 | 48 | WHERE o.OrderDate >= '${startDate}' AND o.OrderDate <= '${endDate}' |
49 | 49 | ORDER BY o.OrderDate DESC |
50 | 50 | ]]> |
51 | 51 | </sheet> |
52 | 52 | <sheet name="Wildcard_Customer" use="true" exceptColumns="IsActive,CreatedDate,LastUpdated"> |
53 | 53 | <![CDATA[ |
54 | 54 | SELECT c.* |
55 | | - FROM SampleDB.dbo.Orders o |
56 | | - INNER JOIN SampleDB.dbo.Customers c ON o.CustomerID = c.CustomerID |
57 | | - INNER JOIN SampleDB.dbo.OrderDetails od ON o.OrderID = od.OrderID |
| 55 | + FROM Orders o |
| 56 | + INNER JOIN Customers c ON o.CustomerID = c.CustomerID |
| 57 | + INNER JOIN OrderDetails od ON o.OrderID = od.OrderID |
58 | 58 | WHERE o.OrderDate >= '${startDate}' AND o.OrderDate <= '${endDate}' |
59 | 59 | ORDER BY o.OrderDate DESC |
60 | 60 | ]]> |
61 | 61 | </sheet> |
62 | 62 | <sheet name="Wildcard_Order" use="true" exceptColumns="OrderDate,RequiredDate,ShippedDate,OrderStatus,ShipVia,Freight,ShipName,ShipAddress,ShipCity"> |
63 | 63 | <![CDATA[ |
64 | 64 | SELECT o.* |
65 | | - FROM SampleDB.dbo.Orders o |
66 | | - INNER JOIN SampleDB.dbo.Customers c ON o.CustomerID = c.CustomerID |
67 | | - INNER JOIN SampleDB.dbo.OrderDetails od ON o.OrderID = od.OrderID |
| 65 | + FROM Orders o |
| 66 | + INNER JOIN Customers c ON o.CustomerID = c.CustomerID |
| 67 | + INNER JOIN OrderDetails od ON o.OrderID = od.OrderID |
68 | 68 | WHERE o.OrderDate >= '${startDate}' AND o.OrderDate <= '${endDate}' |
69 | 69 | ORDER BY o.OrderDate DESC |
70 | 70 | ]]> |
71 | 71 | </sheet> |
72 | 72 | <sheet name="Orders_By_Status" use="true" aggregateColumn="OrderStatus" exceptColumns="OrderDate,RequiredDate,ShippedDate"> |
73 | 73 | <![CDATA[ |
74 | 74 | SELECT * |
75 | | - FROM SampleDB.dbo.Orders |
| 75 | + FROM Orders |
76 | 76 | WHERE OrderDate >= '${startDate}' |
77 | 77 | AND OrderDate <= '${endDate}' |
78 | 78 | AND OrderStatus IN (${statusList}) |
|
82 | 82 | <sheet name="Products_By_Category" use="true" aggregateColumn="CategoryName" exceptColumns="OrderDate,RequiredDate,ShippedDate"> |
83 | 83 | <![CDATA[ |
84 | 84 | SELECT P.* |
85 | | - FROM SampleDB.dbo.Products p |
86 | | - INNER JOIN SampleDB.dbo.Categories c ON p.CategoryID = c.CategoryID |
| 85 | + FROM Products p |
| 86 | + INNER JOIN Categories c ON p.CategoryID = c.CategoryID |
87 | 87 | WHERE p.CategoryID IN (${categoryIds}) |
88 | 88 | AND p.Discontinued = 0 |
89 | 89 | ORDER BY c.CategoryName, p.ProductName |
|
0 commit comments