aboutsummaryrefslogtreecommitdiff
path: root/src/test/suite/results/sqlcompat.sql.out
blob: 76aee7945f463dca4a78a6597a61a553c83ccfc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
QUERY: create table st1 (x int, y integer, z int4);
QUERY: insert into st1 values (1);
QUERY: insert into st1 values (10);
QUERY: select * from st1;
x   y  z  
--- -- -- 
1         
10        
QUERY: create table st2 (x smallint, y int2);
QUERY: insert into st2 values (1);
QUERY: insert into st2 values (10);
QUERY: select * from st2;
x   y  
--- -- 
1      
10     
QUERY: create table st3 (x float, y real, z float4);
QUERY: insert into st3 values (1);
QUERY: insert into st3 values (10);
QUERY: select * from st3;
x   y  z  
--- -- -- 
1         
10        
QUERY: create table st4 (x float8);
QUERY: insert into st4 values (1);
QUERY: insert into st4 values (10);
QUERY: select * from st4;
x   
--- 
1   
10  
QUERY: select max(x) from st1;
max  
---- 
10   
QUERY: select min(x) from st1;
min  
---- 
1    
QUERY: select sum(x) from st1;
sum  
---- 
11   
QUERY: select avg(x) from st1;
avg  
---- 
5    
QUERY: select max(x) from st2;
max  
---- 
10   
QUERY: select min(x) from st2;
min  
---- 
1    
QUERY: select sum(x) from st2;
sum  
---- 
11   
QUERY: select avg(x) from st2;
avg  
---- 
5    
QUERY: select max(x) from st3;
max  
---- 
10   
QUERY: select min(x) from st3;
min  
---- 
1    
QUERY: select sum(x) from st3;
sum  
---- 
11   
QUERY: select avg(x) from st3;
avg  
---- 
5.5  
QUERY: select max(x) from st4;
max  
---- 
10   
QUERY: select min(x) from st4;
min  
---- 
1    
QUERY: select sum(x) from st4;
sum  
---- 
11   
QUERY: select avg(x) from st4;
avg  
---- 
5.5  
QUERY: drop table st1;
QUERY: drop table st2;
QUERY: drop table st3;
QUERY: drop table st4;