fix corruption
This commit is contained in:
parent
f515bb2bd7
commit
f386902358
5
SQL Tennis DB order.txt
Normal file
5
SQL Tennis DB order.txt
Normal file
@ -0,0 +1,5 @@
|
||||
Players
|
||||
committee_members
|
||||
penalties
|
||||
teams
|
||||
matches
|
@ -1,21 +0,0 @@
|
||||
/* select the snumbers and the number of parts suppled and the average qty of parts supplied for those suppliers who have a qty greater than the average qty of all suppliers. */
|
||||
select avg(qty)
|
||||
from spj
|
||||
group by snumber;
|
||||
|
||||
#/ average of parts supplied */
|
||||
select avg(qty)
|
||||
from spj;
|
||||
|
||||
/* select the snumbers and the number of parts suppled and the average qty of parts supplied for those suppliers who have a qty greater than the average qty of all suppliers. */
|
||||
select snumber, avg(qty)
|
||||
from spj
|
||||
group by snumber
|
||||
having avg(qty) > (
|
||||
|
||||
(select avg(qty) from spj));
|
||||
|
||||
|
||||
|
||||
|
||||
/* select number and the avg qty for suppliers whos range is greater tham the sum of all qty */
|
@ -3,7 +3,7 @@ select avg(qty)
|
||||
from spj
|
||||
group by snumber;
|
||||
|
||||
#/ average of parts supplied */
|
||||
/* average of parts supplied */
|
||||
select avg(qty)
|
||||
from spj;
|
||||
|
||||
@ -15,9 +15,11 @@ having avg(qty) > (
|
||||
|
||||
(select avg(qty) from spj));
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
s1 30
|
||||
s2 20
|
||||
s3 40
|
||||
*/
|
||||
|
||||
/* select number and the avg qty for suppliers whose range is greater tham the sum of all qty */
|
||||
select snumber, avg(qty), (select avg(qty) as AVERAGE_QTY_OF_ALL)
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1
lamp/mysql/2763f9de9157.pid
Normal file
1
lamp/mysql/2763f9de9157.pid
Normal file
@ -0,0 +1 @@
|
||||
172
|
0
lamp/mysql/87c780094856.pid
Normal file → Executable file
0
lamp/mysql/87c780094856.pid
Normal file → Executable file
BIN
lamp/mysql/binlog.000031
Normal file → Executable file
BIN
lamp/mysql/binlog.000031
Normal file → Executable file
Binary file not shown.
BIN
lamp/mysql/binlog.000032
Normal file
BIN
lamp/mysql/binlog.000032
Normal file
Binary file not shown.
@ -28,3 +28,4 @@
|
||||
./binlog.000029
|
||||
./binlog.000030
|
||||
./binlog.000031
|
||||
./binlog.000032
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user