-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestData.txt
More file actions
84 lines (72 loc) · 3.68 KB
/
testData.txt
File metadata and controls
84 lines (72 loc) · 3.68 KB
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
SELECT f.* a1, ( ( (
SELECT sum
(a.flight_id ) ss FROM flights a GROUP BY a.flight_id )
)
)s
FROM (
select
*
from
flights )f
INNER JOIN aircrafts air
ON (
(
air.aircraft_code = f.aircraft_code and air.aircraft_code=f.aircraft_code ) or ( ( 1=1 and 1 =1) or ( (2>3 and 4<2) or ( 3 != 3 and 2 <> 1 ) ) ) )
FULL OUTER JOIN aircrafts_data ad ON ad.aircraft_code = air.aircraft_code
LEFT JOIN airports_data apd ON apd.airport_code = f.aircraft_code and f.flight_id = 10 * 10 ^ 2
WHERE
(
f.flight_no
='a'
and (
( ( f.aircraft_code = 'asd' or f.aircraft_code='5454')
and f.aircraft_code='2332' ) or ( SELECT count(*) + ( ( ( SELECT count(*) FROM flights ))) FROM
tickets titi)
>10))
ORDER
BY
f.aircraft_code ,
f.flight_no, ( ( ( SELECT max(airports.airport_code) FROM airports LIMIT
10
) )
)
DESC
offset
24
LIMIT ( ( (
SELECT count(*)
FROM airports )
))
########################################################################################################################################################
select 1 alias
########################################################################################################################################################
select *
from flights f
left outer join flights_v fv on fv.flight_id = ((10) * 10 + 15 - 15) ^ 2
where f.flight_id = 10*10
########################################################################################################################################################
select a.* as a, (select 1)"2323"
from airports a
left join airports_data ad on ad.airport_code = a.airport_code and ad.city is null
where ad.airport_code is NULL
########################################################################################################################################################
SELECT author.name, count(book.id), sum(book.cost)
FROM author
LEFT JOIN book ON (author.id = book.author_id)
GROUP BY author.name
HAVING COUNT(*) > 1 AND SUM(book.cost) > 500
LIMIT 10;
########################################################################################################################################################
SELECT * FROM book
########################################################################################################################################################
SeLeCt "f1".flight_id
fRoM flights as "f1"
inner join flights as f_2 on "f1".aircraft_code = f_2.aircraft_code
where "f1".flight_id between 10 and 100 and f_2.flight_id not in (1,2,3,4,5,6,7, (select 1), (select (select 2)))
group by "f1".flight_id
order by "f1".flight_id DESC
limit ((select count(*) alias_1 from flights limit all) + (select count(*) + 1 alias_2 from flights limit null))
offset (select 8)
########################################################################################################################################################
select (select (select (select (select (select (select (select (select (select 1 a)b)c)d)e)f)g)h)i)k
########################################################################################################################################################