Skip to content

Commit

Permalink
squash
Browse files Browse the repository at this point in the history
  • Loading branch information
MaceWindu committed Dec 17, 2024
1 parent 3c4d88a commit fc86280
Show file tree
Hide file tree
Showing 51,180 changed files with 4,509,379 additions and 113,362 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
Expand Up @@ -7,7 +7,7 @@ SELECT
FROM
[Parent] [p]
WHERE
NOT EXISTS(
NOT EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SELECT
FROM
[Parent] [p]
WHERE
NOT EXISTS(
NOT EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ SELECT
FROM
[Parent] [p]
WHERE
NOT EXISTS(
NOT EXISTS (
SELECT
*
FROM
[Child] [c_1]
WHERE
[p].[ParentID] = [c_1].[ParentID] AND EXISTS(
[p].[ParentID] = [c_1].[ParentID] AND EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SELECT
FROM
[Parent] [p]
WHERE
EXISTS(
EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ FROM
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(
NOT EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ FROM
INNER JOIN [Child] [c_1] ON ([g_1].[ChildID] = [c_1].[ChildID]))
INNER JOIN [LinqDataTypes] [t] ON ([c_1].[ParentID] = [t].[ID])
WHERE
NOT EXISTS(
NOT EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SELECT
FROM
[Parent] [p]
WHERE
EXISTS(
EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SELECT
FROM
[Parent] [p]
WHERE
EXISTS(
EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SELECT
FROM
[Parent] [p]
WHERE
EXISTS(
EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SELECT
FROM
[Parent] [p]
WHERE
[p].[ParentID] > 0 AND EXISTS(
[p].[ParentID] > 0 AND EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SELECT
FROM
[Parent] [p]
WHERE
[p].[ParentID] > 0 AND EXISTS(
[p].[ParentID] > 0 AND EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SELECT
FROM
[Parent] [p]
WHERE
EXISTS(
EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ SELECT
FROM
[Parent] [p]
WHERE
EXISTS(
EXISTS (
SELECT
*
FROM
[Child] [c_1]
WHERE
[p].[ParentID] = [c_1].[ParentID] AND EXISTS(
[p].[ParentID] = [c_1].[ParentID] AND EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-- Access.Ace.Odbc AccessODBC

SELECT
IIF(EXISTS(
IIF( EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ FROM
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(
NOT EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ SELECT
FROM
[Parent] [c_1]
WHERE
NOT EXISTS(
NOT EXISTS (
SELECT
*
FROM
[Child] [o]
LEFT JOIN [Parent] [a_Parent] ON ([o].[ParentID] = [a_Parent].[ParentID])
WHERE
[a_Parent].[ParentID] = [c_1].[ParentID] AND ([a_Parent].[Value1] = [c_1].[Value1] OR [a_Parent].[Value1] IS NULL AND [c_1].[Value1] IS NULL) AND
NOT EXISTS(
NOT EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SELECT TOP 1
FROM
[GrandChild] [t1]
WHERE
EXISTS(
EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ FROM
[Parent] [a]
LEFT JOIN [Parent] [a_ParentTest] ON ([a].[ParentID] = [a_ParentTest].[ParentID] AND ([a].[Value1] = [a_ParentTest].[Value1] OR [a].[Value1] IS NULL AND [a_ParentTest].[Value1] IS NULL))
WHERE
[a_ParentTest].[ParentID] IS NULL OR EXISTS(
[a_ParentTest].[ParentID] IS NULL OR EXISTS (
SELECT
*
FROM
Expand All @@ -36,7 +36,7 @@ FROM
[Parent] [a]
LEFT JOIN [Parent] [a_ParentTest] ON ([a].[ParentID] = [a_ParentTest].[ParentID] AND ([a].[Value1] = [a_ParentTest].[Value1] OR [a].[Value1] IS NULL AND [a_ParentTest].[Value1] IS NULL))
WHERE
[a_ParentTest].[ParentID] IS NULL OR EXISTS(
[a_ParentTest].[ParentID] IS NULL OR EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SELECT
FROM
[Parent] [p]
WHERE
EXISTS(
EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SELECT
FROM
[Parent] [p]
WHERE
NOT EXISTS(
NOT EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ FROM
LEFT JOIN [Table2] [a_Table2] ON ([r].[ID2] = [a_Table2].[ID]))
LEFT JOIN [Table3] [a_Table3] ON ([a_Table2].[ID3] = [a_Table3].[ID])
WHERE
EXISTS(
EXISTS (
SELECT
*
FROM
Expand All @@ -206,7 +206,7 @@ FROM
LEFT JOIN [Table2] [a_Table2] ON ([r].[ID2] = [a_Table2].[ID]))
LEFT JOIN [Table3] [a_Table3] ON ([a_Table2].[ID3] = [a_Table3].[ID])
WHERE
EXISTS(
EXISTS (
SELECT
*
FROM
Expand All @@ -219,19 +219,19 @@ BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[m_1].[ID],
[m_1].[cond],
[d].[ID],
[d].[ID3]
FROM
(
SELECT DISTINCT
[a_Table3].[ID]
[a_Table3].[ID] as [cond]
FROM
([Table1] [t1]
LEFT JOIN [Table2] [a_Table2] ON ([t1].[ID2] = [a_Table2].[ID]))
LEFT JOIN [Table3] [a_Table3] ON ([a_Table2].[ID3] = [a_Table3].[ID])
) [m_1]
INNER JOIN [Table4] [d] ON ([m_1].[ID] = [d].[ID3] OR [m_1].[ID] IS NULL AND [d].[ID3] IS NULL)
INNER JOIN [Table4] [d] ON ([m_1].[cond] = [d].[ID3] OR [m_1].[cond] IS NULL AND [d].[ID3] IS NULL)

BeforeExecute
-- Access.Ace.Odbc AccessODBC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,13 @@ BeforeExecute
SELECT
[a_Table2].[ID],
[a_Table2].[ID3],
IIF([a_Table2].[ID] IS NOT NULL AND [a_Table3].[ID] IS NOT NULL, True, False),
[a_Table3].[ID]
FROM
([Table1] [r]
LEFT JOIN [Table2] [a_Table2] ON ([r].[ID2] = [a_Table2].[ID]))
LEFT JOIN [Table3] [a_Table3] ON ([a_Table2].[ID3] = [a_Table3].[ID])
WHERE
EXISTS(
EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-- Access.Ace.Odbc AccessODBC

SELECT
IIF([a_Middle].[ParentID] IS NOT NULL AND [a_Bottom1].[ParentID] IS NOT NULL, True, False),
[a_Middle].[ParentID],
[a_Bottom1].[ParentID],
[a_Bottom1].[ChildID],
[a_Bottom1].[GrandChildID]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ SELECT
FROM
[MainEntity] [x]
WHERE
EXISTS(
EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
BeforeExecute
-- Access.Ace.Odbc AccessODBC

DROP TABLE [User]

BeforeExecute
-- Access.Ace.Odbc AccessODBC

CREATE TABLE [User]
(
[FirstName] NVarChar(255) NULL,
[Status] Int NULL
)

BeforeExecute
-- Access.Ace.Odbc AccessODBC

SELECT
[user_1].[FirstName],
[user_1].[Status]
FROM
[User] [user_1]
WHERE
[user_1].[Status] IS NULL

BeforeExecute
-- Access.Ace.Odbc AccessODBC

DROP TABLE [User]

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SELECT
FROM
[Child] [g_1]
WHERE
EXISTS(
EXISTS (
SELECT
*
FROM
Expand All @@ -29,7 +29,7 @@ SELECT
FROM
[Child] [g_1]
WHERE
EXISTS(
EXISTS (
SELECT
*
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

SELECT
[p].[ParentID],
IIF([gc3_1].[ParentID] IS NOT NULL AND [gc3_1].[ChildID] IS NOT NULL AND [gc3_1].[GrandChildID] IS NOT NULL, True, False),
[gc3_1].[ParentID],
[gc3_1].[ChildID],
[gc3_1].[GrandChildID]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
SELECT
[p].[ParentID],
[p].[Value1],
IIF([gc_1].[ParentID] IS NOT NULL AND [gc_1].[ChildID] IS NOT NULL AND [gc_1].[GrandChildID] IS NOT NULL, True, False),
[gc_1].[ParentID],
[gc_1].[ChildID],
[gc_1].[GrandChildID],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ VALUES

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @City NVarChar(10) -- String
SET @City = 'Springwood'
DECLARE @Street NVarChar(10) -- String
SET @Street = 'Elm Street'
DECLARE @Building Int -- Int32
SET @Building = 13

SELECT TOP 2
[u].[user_name],
Expand All @@ -57,7 +51,8 @@ SELECT TOP 2
FROM
[User] [u]
WHERE
[u].[city] = ? AND [u].[street] = ? AND [u].[building_number] = ?
[u].[city] = 'Springwood' AND [u].[street] = 'Elm Street' AND
[u].[building_number] = 13

BeforeExecute
-- Access.Ace.Odbc AccessODBC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ VALUES

BeforeExecute
-- Access.Ace.Odbc AccessODBC
DECLARE @City NVarChar(10) -- String
SET @City = 'Springwood'
DECLARE @Street NVarChar(10) -- String
SET @Street = 'Elm Street'
DECLARE @Building Int -- Int32
SET @Building = 13

SELECT TOP 2
[u].[user_name],
Expand All @@ -57,7 +51,8 @@ SELECT TOP 2
FROM
[UserStruct] [u]
WHERE
[u].[city] = ? AND [u].[street] = ? AND [u].[building_number] = ?
[u].[city] = 'Springwood' AND [u].[street] = 'Elm Street' AND
[u].[building_number] = 13

BeforeExecute
-- Access.Ace.Odbc AccessODBC
Expand Down
Loading

0 comments on commit fc86280

Please sign in to comment.