Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Baselines/pr 4553 done #1269

Merged
merged 6 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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,143 @@
BeforeExecute
-- Access AccessOleDb

DROP TABLE [Dog]

BeforeExecute
-- Access AccessOleDb

CREATE TABLE [Dog]
(
[Id] Int NOT NULL,
[OwnerId] Int NOT NULL
)

BeforeExecute
-- Access AccessOleDb
DECLARE @Id Integer -- Int32
SET @Id = 1
DECLARE @OwnerId Integer -- Int32
SET @OwnerId = 1

INSERT INTO [Dog]
(
[Id],
[OwnerId]
)
VALUES
(
@Id,
@OwnerId
)

BeforeExecute
-- Access AccessOleDb

DROP TABLE [Human]

BeforeExecute
-- Access AccessOleDb

CREATE TABLE [Human]
(
[Id] Int NOT NULL,
[HouseId] Int NOT NULL
)

BeforeExecute
-- Access AccessOleDb
DECLARE @Id Integer -- Int32
SET @Id = 1
DECLARE @HouseId Integer -- Int32
SET @HouseId = 1

INSERT INTO [Human]
(
[Id],
[HouseId]
)
VALUES
(
@Id,
@HouseId
)

BeforeExecute
-- Access AccessOleDb

DROP TABLE [House]

BeforeExecute
-- Access AccessOleDb

CREATE TABLE [House]
(
[Id] Int NOT NULL
)

BeforeExecute
-- Access AccessOleDb
DECLARE @Id Integer -- Int32
SET @Id = 1

INSERT INTO [House]
(
[Id]
)
VALUES
(
@Id
)

BeforeExecute
-- Access AccessOleDb

DROP TABLE [Window]

BeforeExecute
-- Access AccessOleDb

CREATE TABLE [Window]
(
[Id] Int NOT NULL,
[Position] Int NOT NULL
)

BeforeExecute
-- Access AccessOleDb
DECLARE @Id Integer -- Int32
SET @Id = 6
DECLARE @Position Integer -- Int32
SET @Position = 6

INSERT INTO [Window]
(
[Id],
[Position]
)
VALUES
(
@Id,
@Position
)

BeforeExecute
-- Access AccessOleDb

DROP TABLE [Window]

BeforeExecute
-- Access AccessOleDb

DROP TABLE [House]

BeforeExecute
-- Access AccessOleDb

DROP TABLE [Human]

BeforeExecute
-- Access AccessOleDb

DROP TABLE [Dog]

Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
BeforeExecute
-- Access AccessOleDb

DROP TABLE [Item]

BeforeExecute
-- Access AccessOleDb

CREATE TABLE [Item]
(
[Id] Int NOT NULL,
[Text] NVarChar(255) NULL,

CONSTRAINT [PK_Item] PRIMARY KEY CLUSTERED ([Id])
)

BeforeExecute
-- Access AccessOleDb

DROP TABLE [ItemValue]

BeforeExecute
-- Access AccessOleDb

CREATE TABLE [ItemValue]
(
[Id] Int NOT NULL,
[ItemId] Int NOT NULL,
[Value] Decimal NOT NULL
)

BeforeExecute
-- Access AccessOleDb

SELECT
[t1].[Id],
[t1].[Text]
FROM
(
SELECT
[x].[Id],
[x].[Text],
(
SELECT
SUM([a_Values].[Value])
FROM
[ItemValue] [a_Values]
WHERE
[x].[Id] = [a_Values].[ItemId]
) as [SUM_1]
FROM
[Item] [x]
) [t1]
ORDER BY
[t1].[SUM_1]

BeforeExecute
-- Access AccessOleDb

DROP TABLE [ItemValue]

BeforeExecute
-- Access AccessOleDb

DROP TABLE [Item]

Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
BeforeExecute
-- Access AccessOleDb

DROP TABLE [Item]

BeforeExecute
-- Access AccessOleDb

CREATE TABLE [Item]
(
[Id] Int NOT NULL,
[Text] NVarChar(255) NULL,

CONSTRAINT [PK_Item] PRIMARY KEY CLUSTERED ([Id])
)

BeforeExecute
-- Access AccessOleDb

DROP TABLE [ItemValue]

BeforeExecute
-- Access AccessOleDb

CREATE TABLE [ItemValue]
(
[Id] Int NOT NULL,
[ItemId] Int NOT NULL,
[Value] Decimal NOT NULL
)

BeforeExecute
-- Access AccessOleDb

SELECT
[m_1].[Id],
[d].[Value]
FROM
[Item] [m_1]
INNER JOIN [ItemValue] [d] ON ([m_1].[Id] = [d].[ItemId])

BeforeExecute
-- Access AccessOleDb

SELECT
[x].[Id],
[x].[Text]
FROM
[Item] [x]

BeforeExecute
-- Access AccessOleDb

DROP TABLE [ItemValue]

BeforeExecute
-- Access AccessOleDb

DROP TABLE [Item]

Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
BeforeExecute
-- Access AccessOleDb

DROP TABLE [Item]

BeforeExecute
-- Access AccessOleDb

CREATE TABLE [Item]
(
[Id] Int NOT NULL,
[Text] NVarChar(255) NULL,

CONSTRAINT [PK_Item] PRIMARY KEY CLUSTERED ([Id])
)

BeforeExecute
-- Access AccessOleDb

DROP TABLE [ItemValue]

BeforeExecute
-- Access AccessOleDb

CREATE TABLE [ItemValue]
(
[Id] Int NOT NULL,
[ItemId] Int NOT NULL,
[Value] Decimal NOT NULL
)

BeforeExecute
-- Access AccessOleDb

SELECT
[m_1].[Id],
[d].[Id],
[d].[ItemId],
[d].[Value]
FROM
(
SELECT DISTINCT
[t1].[Id]
FROM
(
SELECT
[x].[Id]
FROM
[Item] [x]
) [t1]
) [m_1]
INNER JOIN [ItemValue] [d] ON ([m_1].[Id] = [d].[ItemId])

BeforeExecute
-- Access AccessOleDb

SELECT
[t1].[Id],
[t1].[Text]
FROM
(
SELECT
[x].[Id],
[x].[Text],
(
SELECT
SUM([a_Values].[Value])
FROM
[ItemValue] [a_Values]
WHERE
[x].[Id] = [a_Values].[ItemId]
) as [SUM_1]
FROM
[Item] [x]
) [t1]
ORDER BY
[t1].[SUM_1]

BeforeExecute
-- Access AccessOleDb

DROP TABLE [ItemValue]

BeforeExecute
-- Access AccessOleDb

DROP TABLE [Item]

Loading