diff --git a/SQL Tennis DB order.txt b/SQL Tennis DB order.txt new file mode 100644 index 0000000..55f6efa --- /dev/null +++ b/SQL Tennis DB order.txt @@ -0,0 +1,5 @@ +Players +committee_members +penalties +teams +matches diff --git a/Semester 2/SQL Hell b/Semester 2/SQL Hell deleted file mode 100644 index f179139..0000000 --- a/Semester 2/SQL Hell +++ /dev/null @@ -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 */ diff --git a/Semester 2/SQL Hell.txt b/Semester 2/SQL Hell.txt index 0b27d51..dc9096c 100644 --- a/Semester 2/SQL Hell.txt +++ b/Semester 2/SQL Hell.txt @@ -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) diff --git a/lamp/mysql/#ib_16384_0.dblwr b/lamp/mysql/#ib_16384_0.dblwr index 402d761..488514c 100755 Binary files a/lamp/mysql/#ib_16384_0.dblwr and b/lamp/mysql/#ib_16384_0.dblwr differ diff --git a/lamp/mysql/#innodb_temp/temp_1.ibt b/lamp/mysql/#innodb_temp/temp_1.ibt index cb72483..371dfaf 100644 Binary files a/lamp/mysql/#innodb_temp/temp_1.ibt and b/lamp/mysql/#innodb_temp/temp_1.ibt differ diff --git a/lamp/mysql/#innodb_temp/temp_10.ibt b/lamp/mysql/#innodb_temp/temp_10.ibt index a062902..bae6ff9 100644 Binary files a/lamp/mysql/#innodb_temp/temp_10.ibt and b/lamp/mysql/#innodb_temp/temp_10.ibt differ diff --git a/lamp/mysql/#innodb_temp/temp_2.ibt b/lamp/mysql/#innodb_temp/temp_2.ibt index c76ab62..3f20736 100644 Binary files a/lamp/mysql/#innodb_temp/temp_2.ibt and b/lamp/mysql/#innodb_temp/temp_2.ibt differ diff --git a/lamp/mysql/#innodb_temp/temp_3.ibt b/lamp/mysql/#innodb_temp/temp_3.ibt index 7ec4853..4785931 100644 Binary files a/lamp/mysql/#innodb_temp/temp_3.ibt and b/lamp/mysql/#innodb_temp/temp_3.ibt differ diff --git a/lamp/mysql/#innodb_temp/temp_4.ibt b/lamp/mysql/#innodb_temp/temp_4.ibt index f9c81df..b98a8a3 100644 Binary files a/lamp/mysql/#innodb_temp/temp_4.ibt and b/lamp/mysql/#innodb_temp/temp_4.ibt differ diff --git a/lamp/mysql/#innodb_temp/temp_5.ibt b/lamp/mysql/#innodb_temp/temp_5.ibt index 3780ae7..00dbca8 100644 Binary files a/lamp/mysql/#innodb_temp/temp_5.ibt and b/lamp/mysql/#innodb_temp/temp_5.ibt differ diff --git a/lamp/mysql/#innodb_temp/temp_6.ibt b/lamp/mysql/#innodb_temp/temp_6.ibt index f2662b9..38475ed 100644 Binary files a/lamp/mysql/#innodb_temp/temp_6.ibt and b/lamp/mysql/#innodb_temp/temp_6.ibt differ diff --git a/lamp/mysql/#innodb_temp/temp_7.ibt b/lamp/mysql/#innodb_temp/temp_7.ibt index fd5ab3e..8e81017 100644 Binary files a/lamp/mysql/#innodb_temp/temp_7.ibt and b/lamp/mysql/#innodb_temp/temp_7.ibt differ diff --git a/lamp/mysql/#innodb_temp/temp_8.ibt b/lamp/mysql/#innodb_temp/temp_8.ibt index bf9b973..89b79ce 100644 Binary files a/lamp/mysql/#innodb_temp/temp_8.ibt and b/lamp/mysql/#innodb_temp/temp_8.ibt differ diff --git a/lamp/mysql/#innodb_temp/temp_9.ibt b/lamp/mysql/#innodb_temp/temp_9.ibt index a2579e3..dc1c5c6 100644 Binary files a/lamp/mysql/#innodb_temp/temp_9.ibt and b/lamp/mysql/#innodb_temp/temp_9.ibt differ diff --git a/lamp/mysql/2763f9de9157.pid b/lamp/mysql/2763f9de9157.pid new file mode 100644 index 0000000..730a054 --- /dev/null +++ b/lamp/mysql/2763f9de9157.pid @@ -0,0 +1 @@ +172 diff --git a/lamp/mysql/87c780094856.pid b/lamp/mysql/87c780094856.pid old mode 100644 new mode 100755 diff --git a/lamp/mysql/binlog.000031 b/lamp/mysql/binlog.000031 old mode 100644 new mode 100755 index 685ca2d..1074e24 Binary files a/lamp/mysql/binlog.000031 and b/lamp/mysql/binlog.000031 differ diff --git a/lamp/mysql/binlog.000032 b/lamp/mysql/binlog.000032 new file mode 100644 index 0000000..84e5d11 Binary files /dev/null and b/lamp/mysql/binlog.000032 differ diff --git a/lamp/mysql/binlog.index b/lamp/mysql/binlog.index index b109584..893fe7d 100644 --- a/lamp/mysql/binlog.index +++ b/lamp/mysql/binlog.index @@ -28,3 +28,4 @@ ./binlog.000029 ./binlog.000030 ./binlog.000031 +./binlog.000032 diff --git a/lamp/mysql/ib_logfile0 b/lamp/mysql/ib_logfile0 index 56d9666..db24eda 100755 Binary files a/lamp/mysql/ib_logfile0 and b/lamp/mysql/ib_logfile0 differ diff --git a/lamp/mysql/ibdata1 b/lamp/mysql/ibdata1 index 4e9c92b..d651559 100755 Binary files a/lamp/mysql/ibdata1 and b/lamp/mysql/ibdata1 differ diff --git a/lamp/mysql/ibtmp1 b/lamp/mysql/ibtmp1 index c8ab5af..2890a1e 100644 Binary files a/lamp/mysql/ibtmp1 and b/lamp/mysql/ibtmp1 differ diff --git a/lamp/mysql/mysql.ibd b/lamp/mysql/mysql.ibd index 9daa115..be61c60 100755 Binary files a/lamp/mysql/mysql.ibd and b/lamp/mysql/mysql.ibd differ diff --git a/lamp/mysql/undo_001 b/lamp/mysql/undo_001 index 82bc2e5..d071449 100755 Binary files a/lamp/mysql/undo_001 and b/lamp/mysql/undo_001 differ diff --git a/lamp/mysql/undo_002 b/lamp/mysql/undo_002 index 052b173..36d6790 100755 Binary files a/lamp/mysql/undo_002 and b/lamp/mysql/undo_002 differ