Skip to content

Commit dfdd9dc

Browse files
author
Azure Pipelines Bot
committed
[Linux / Informix 14.10] baselines
1 parent da3a67e commit dfdd9dc

67 files changed

Lines changed: 1311 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
-- Informix.DB2 Informix
2+
3+
SELECT
4+
SUM(CASE
5+
WHEN t.CategoryId = 1 THEN t.IntValue
6+
ELSE NULL
7+
END) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
8+
SUM(CASE
9+
WHEN t.IntValue > 20 THEN t.IntValue
10+
ELSE NULL
11+
END) OVER (ORDER BY t.Id ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW),
12+
SUM(CASE
13+
WHEN t.IntValue > 10 THEN t.IntValue
14+
ELSE NULL
15+
END) OVER (PARTITION BY t.CategoryId ORDER BY t.Id ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING),
16+
AVG(CASE
17+
WHEN t.DoubleValue > 15 THEN t.DoubleValue
18+
ELSE NULL
19+
END) OVER (ORDER BY t.Id RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW),
20+
MIN(CASE
21+
WHEN t.IntValue > 10 THEN t.IntValue
22+
ELSE NULL
23+
END) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
24+
MAX(CASE
25+
WHEN t.IntValue < 80 THEN t.IntValue
26+
ELSE NULL
27+
END) OVER (ORDER BY t.Id ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW),
28+
COUNT(CASE
29+
WHEN t.IntValue > 20 THEN 1
30+
ELSE NULL
31+
END) OVER (PARTITION BY t.CategoryId ORDER BY t.Id)
32+
FROM
33+
WindowFunctionTestEntity t
34+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
-- Informix.DB2 Informix
2+
3+
SELECT
4+
SUM(t.IntValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW),
5+
SUM(t.IntValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id ROWS BETWEEN 2 PRECEDING AND 2 FOLLOWING),
6+
SUM(t.IntValue) OVER (ORDER BY t.Id RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW),
7+
AVG(t.DoubleValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id ROWS BETWEEN 1 PRECEDING AND CURRENT ROW),
8+
COUNT(*) OVER (PARTITION BY t.CategoryId ORDER BY t.Id ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)
9+
FROM
10+
WindowFunctionTestEntity t
11+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
-- Informix.DB2 Informix
2+
3+
SELECT
4+
AVG(t.IntValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
5+
AVG(t.NullableIntValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
6+
AVG(t.LongValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
7+
AVG(t.NullableLongValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
8+
AVG(t.DoubleValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
9+
AVG(t.NullableDoubleValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
10+
AVG(t.DecimalValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
11+
AVG(t.NullableDecimalValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
12+
AVG(t.FloatValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
13+
AVG(t.NullableFloatValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
14+
AVG(t.ShortValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
15+
AVG(t.NullableShortValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
16+
AVG(t.ByteValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
17+
AVG(t.NullableByteValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id)
18+
FROM
19+
WindowFunctionTestEntity t
20+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
-- Informix.DB2 Informix
2+
3+
SELECT
4+
AVG(t.IntValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
5+
AVG(t.NullableIntValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
6+
AVG(t.LongValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
7+
AVG(t.NullableLongValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
8+
AVG(t.DoubleValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
9+
AVG(t.NullableDoubleValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
10+
AVG(t.DecimalValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
11+
AVG(t.NullableDecimalValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
12+
AVG(t.FloatValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
13+
AVG(t.NullableFloatValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
14+
AVG(t.ShortValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
15+
AVG(t.NullableShortValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
16+
AVG(t.ByteValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
17+
AVG(t.NullableByteValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id)
18+
FROM
19+
WindowFunctionTestEntity t
20+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-- Informix.DB2 Informix
2+
3+
SELECT
4+
AVG(CASE
5+
WHEN t.CategoryId = 1 THEN t.DoubleValue
6+
ELSE NULL
7+
END) OVER (PARTITION BY t.CategoryId ORDER BY t.Id)
8+
FROM
9+
WindowFunctionTestEntity t
10+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-- Informix.DB2 Informix
2+
3+
SELECT
4+
COUNT(t.NullableIntValue) OVER (ORDER BY t.Id ROWS BETWEEN 2 PRECEDING AND 2 FOLLOWING)
5+
FROM
6+
WindowFunctionTestEntity t
7+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-- Informix.DB2 Informix
2+
3+
SELECT
4+
COUNT(*) OVER (PARTITION BY t.CategoryId ORDER BY t.Id),
5+
COUNT(*) OVER (ORDER BY t.Id)
6+
FROM
7+
WindowFunctionTestEntity t
8+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-- Informix.DB2 Informix
2+
3+
SELECT
4+
COUNT(t.NullableIntValue) OVER (PARTITION BY t.CategoryId ORDER BY t.Id)
5+
FROM
6+
WindowFunctionTestEntity t
7+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-- Informix.DB2 Informix
2+
3+
SELECT
4+
COUNT(*) OVER (PARTITION BY t.CategoryId ORDER BY t.Id)
5+
FROM
6+
WindowFunctionTestEntity t
7+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-- Informix.DB2 Informix
2+
3+
SELECT
4+
COUNT(CASE
5+
WHEN t.IntValue > 20 THEN 1
6+
ELSE NULL
7+
END) OVER (PARTITION BY t.CategoryId ORDER BY t.Id)
8+
FROM
9+
WindowFunctionTestEntity t
10+

0 commit comments

Comments
 (0)