Lines Matching refs:FROM

49     SELECT DISTINCT y FROM t1 ORDER BY y;
55 execsql {SELECT min(x) FROM t1}
62 execsql {SELECT max(x) FROM t1}
70 execsql {SELECT min(x) FROM t1}
77 execsql {SELECT max(x) FROM t1}
84 execsql {SELECT max(y) FROM t1}
93 INSERT INTO t2 SELECT * FROM t1;
96 execsql {SELECT min(a) FROM t2}
103 execsql {SELECT max(a) FROM t2}
110 execsql {INSERT INTO t2 VALUES((SELECT max(a) FROM t2)+1,999)}
112 execsql {SELECT max(a) FROM t2}
118 execsql {INSERT INTO t2 VALUES((SELECT max(a) FROM t2)+1,999)}
121 SELECT b FROM t2 WHERE a=(SELECT max(a) FROM t2)
130 SELECT coalesce(min(x+0),-1), coalesce(max(x+0),-1) FROM
131 (SELECT * FROM t1 UNION SELECT NULL as 'x', NULL as 'y')
136 SELECT y, sum(x) FROM
137 (SELECT null, y+1 FROM t1 UNION SELECT * FROM t1)
143 SELECT y, count(x), count(*) FROM
144 (SELECT null, y+1 FROM t1 UNION SELECT * FROM t1)
155 SELECT coalesce(min(x),999) FROM t3;
160 SELECT coalesce(min(rowid),999) FROM t3;
165 SELECT coalesce(max(x),999) FROM t3;
170 SELECT coalesce(max(rowid),999) FROM t3;
175 SELECT coalesce(max(rowid),999) FROM t3 WHERE rowid<25;
184 SELECT min(a) FROM t2 LIMIT 1
189 SELECT max(a) FROM t2 LIMIT 3
194 SELECT min(a) FROM t2 LIMIT 0,100
199 SELECT max(a) FROM t2 LIMIT 1,100
204 SELECT min(x) FROM t3 LIMIT 1
209 SELECT max(x) FROM t3 LIMIT 0
214 SELECT max(a) FROM t2 LIMIT 0
223 SELECT max(x) FROM t1;
228 SELECT * FROM (SELECT max(x) FROM t1);
233 SELECT min(x) FROM t1;
238 SELECT * FROM (SELECT min(x) FROM t1);
251 SELECT min(a), max(a) FROM t4;
260 SELECT min(a), max(a) FROM t5;
264 # Ticket #658: Test the min()/max() optimization when the FROM clause
269 SELECT max(rowid) FROM (
270 SELECT max(rowid) FROM t4 UNION SELECT max(rowid) FROM t5
276 SELECT max(rowid) FROM (
277 SELECT max(rowid) FROM t4 EXCEPT SELECT max(rowid) FROM t5
291 SELECT coalesce(min(x),-1) FROM t6;
296 SELECT max(x) FROM t6;
302 SELECT coalesce(min(x),-1) FROM t6;
307 SELECT max(x) FROM t6;
312 DELETE FROM t6 WHERE x NOT NULL;
313 SELECT count(*) FROM t6;
318 SELECT count(x) FROM t6;
323 SELECT (SELECT min(x) FROM t6), (SELECT max(x) FROM t6);
328 SELECT min(x), max(x) FROM t6;
333 INSERT INTO t6 SELECT * FROM t6;
334 INSERT INTO t6 SELECT * FROM t6;
335 INSERT INTO t6 SELECT * FROM t6;
336 INSERT INTO t6 SELECT * FROM t6;
337 INSERT INTO t6 SELECT * FROM t6;
338 INSERT INTO t6 SELECT * FROM t6;
339 INSERT INTO t6 SELECT * FROM t6;
340 INSERT INTO t6 SELECT * FROM t6;
341 INSERT INTO t6 SELECT * FROM t6;
342 INSERT INTO t6 SELECT * FROM t6;
343 SELECT count(*) FROM t6;
348 SELECT count(x) FROM t6;
353 SELECT (SELECT min(x) FROM t6), (SELECT max(x) FROM t6);
358 SELECT min(x), max(x) FROM t6;