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: QueryDB.Core.Tests/Queries.cs
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -55,5 +55,23 @@ internal static class SalesDB
55
55
Orders O ON O.Cust_Code = C.Cust_Code AND O.Agent_Code = A.Agent_Code";
56
56
}
57
57
}
58
+
59
+
internalstaticclassPostgreSQLQueries
60
+
{
61
+
internalstaticclassSmoke
62
+
{
63
+
publicstaticstringSelectSql=@"SELECT 'postgres' AS current_database";
64
+
}
65
+
internalstaticclassSalesDB
66
+
{
67
+
publicstaticstringSelectSql=@"SELECT * FROM Agents";
68
+
publicstaticstringSelectSql_Join=@"SELECT A.Agent_Code, A.Agent_Name, C.Cust_Code, C.Cust_Name, O.Ord_Num, O.Ord_Amount, O.Advance_Amount, O.Ord_Date, O.Ord_Description FROM Agents A INNER JOIN
69
+
Customer C ON C.Agent_Code = A.Agent_Code INNER JOIN
70
+
Orders O ON O.Cust_Code = C.Cust_Code AND O.Agent_Code = A.Agent_Code";
71
+
publicstaticstringSelectSql_Alias=@"SELECT A.Agent_Name AS Agent, A.WORKING_AREA AS Agent_Location, C.Cust_Name AS Customer, C.WORKING_AREA AS Customer_Location, O.Agent_Code, O.Cust_Code FROM Agents A INNER JOIN
72
+
Customer C ON C.Agent_Code = A.Agent_Code INNER JOIN
73
+
Orders O ON O.Cust_Code = C.Cust_Code AND O.Agent_Code = A.Agent_Code";
0 commit comments