Skip to content

Commit

Permalink
reviewed
Browse files Browse the repository at this point in the history
  • Loading branch information
MaceWindu committed Nov 24, 2024
1 parent 6e703bb commit 0eb16eb
Show file tree
Hide file tree
Showing 112,690 changed files with 2,912,535 additions and 309,185 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
AVG([t1].[ParentID])
FROM
[Parent] [t1]
WHERE
[t1].[ParentID] < 0

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
MAX([t1].[ParentID])
FROM
[Parent] [t1]
WHERE
[t1].[ParentID] < 0

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
(
SELECT
MAX([a_Children].[ParentID])
FROM
[Child] [a_Children]
WHERE
[p].[ParentID] = [a_Children].[ParentID] AND [a_Children].[ParentID] < 0
)
FROM
[Parent] [p]

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT TOP 1
[p].[ParentID],
[p].[Value1]
FROM
[Parent] [p]
WHERE
[p].[ParentID] = 100

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT TOP 2
[t1].[ParentID],
[t1].[Value1]
FROM
[Parent] [t1]

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[p].[Value1],
[p].[ParentID]
FROM
[Parent] [p]

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[x].[ParentID]
FROM
[Parent] [x]
INNER JOIN [Child] [y] ON ([x].[ParentID] = [y].[ParentID])

BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[g_1].[ParentID]
FROM
[Parent] [g_1]
INNER JOIN [Child] [y] ON ([g_1].[ParentID] = [y].[ParentID])
GROUP BY
[g_1].[ParentID]

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[c1].[ChildID],
[c2].[ParentID]
FROM
([Parent] [p]
INNER JOIN [Child] [c1] ON ([p].[ParentID] = [c1].[ParentID]))
INNER JOIN [Child] [c2] ON ([p].[ParentID] = [c2].[ParentID])

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[c_1].[ChildID],
[c_1].[ParentID]
FROM
[Child] [c_1]
INNER JOIN [Parent] [p1] ON ([c_1].[ParentID] = [p1].[ParentID])

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[p].[ParentID],
[p].[Value1]
FROM
[Parent] [p]
WITH OWNERACCESS OPTION

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[p_2].[ParentID],
[p_2].[Value1]
FROM
(
SELECT
[p_1].[ParentID],
[p_1].[Value1]
FROM
(
SELECT
[p].[ParentID],
[p].[Value1]
FROM
[Parent] [p]
WITH OWNERACCESS OPTION
) [p_1]
WITH OWNERACCESS OPTION
) [p_2]

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[p].[ParentID],
[p].[Value1]
FROM
[Parent] [p]
WITH OWNERACCESS OPTION

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[t].[PersonID],
[t].[Diagnosis]
FROM
(
SELECT
[c_1].[ParentID]
FROM
[Parent] [t1],
[Child] [c_1]
) [sub]
INNER JOIN [Patient] [t] ON ([sub].[ParentID] = [t].[PersonID])
WITH OWNERACCESS OPTION

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[t].[ParentID],
[t].[ChildID]
FROM
[Child] [t]
WITH OWNERACCESS OPTION

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[t].[ParentID],
[t].[ChildID]
FROM
[Child] [t]
UNION
SELECT
[t_1].[ParentID],
[t_1].[ChildID]
FROM
[Child] [t_1]
WHERE
[t_1].[ChildID] < 10
WITH OWNERACCESS OPTION

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[t1].[ParentID],
[t1].[Value1]
FROM
(
SELECT
[p].[ParentID],
[p].[Value1]
FROM
[Parent] [p]
) [t1],
(
SELECT
[c_1].[ParentID]
FROM
[Child] [c_1]
) [c_2]
WHERE
[t1].[ParentID] = [c_2].[ParentID]

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[p].[ParentID],
[p].[Value1],
[t1].[COUNT_1]
FROM
(
SELECT
[c_1].[ParentID],
COUNT(*) as [COUNT_1]
FROM
[Child] [c_1]
GROUP BY
[c_1].[ParentID]
) [t1],
[Parent] [p]
WHERE
[p].[ParentID] = [t1].[ParentID]

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[t1].[ParentID],
[t1].[Value1]
FROM
[Parent] [t1]

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[p].[ParentID],
[p].[Value1]
FROM
[Parent] [p]
WHERE
NOT EXISTS(
SELECT
*
FROM
[Child] [c_1]
WHERE
[c_1].[ParentID] = [p].[ParentID] AND [c_1].[ParentID] <= 3
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[p].[ParentID],
[p].[Value1]
FROM
[Parent] [p]
WHERE
NOT EXISTS(
SELECT
*
FROM
[Child] [c_1]
WHERE
[p].[ParentID] = [c_1].[ParentID] AND [c_1].[ParentID] <= 3
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[p].[ParentID],
[p].[Value1]
FROM
[Parent] [p]
WHERE
NOT EXISTS(
SELECT
*
FROM
[Child] [c_1]
WHERE
[p].[ParentID] = [c_1].[ParentID] AND EXISTS(
SELECT
*
FROM
[GrandChild] [g_1]
WHERE
[c_1].[ParentID] = [g_1].[ParentID] AND [c_1].[ChildID] = [g_1].[ChildID] AND
([g_1].[ParentID] <= 3 OR [g_1].[ParentID] IS NULL)
)
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
IIF(COUNT(*) = 0, True, False)
FROM
[Child] [c_1]
WHERE
[c_1].[ParentID] <= 3

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @n -- Int32
SET @n = 3

SELECT
IIF(COUNT(*) = 0, True, False)
FROM
[Child] [c_1]
WHERE
[c_1].[ParentID] <= ?

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[p].[ParentID],
[p].[Value1]
FROM
[Parent] [p]
WHERE
EXISTS(
SELECT
*
FROM
[Child] [c_1]
WHERE
[c_1].[ParentID] = [p].[ParentID] AND [c_1].[ParentID] > 3
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[p].[ParentID],
[p].[Value1]
FROM
([Parent] [p]
INNER JOIN [GrandChild] [g_1] ON ([p].[ParentID] = [g_1].[ParentID]))
INNER JOIN [Child] [c_1] ON ([g_1].[ChildID] = [c_1].[ChildID])
WHERE
NOT EXISTS(
SELECT
*
FROM
[GrandChild] [x]
WHERE
[p].[ParentID] = [x].[ParentID] AND [x].[ParentID] < 0
)

Loading

0 comments on commit 0eb16eb

Please sign in to comment.