diff --git a/src/main/java/g0101_0200/s0195_tenth_line/script.sh b/src/main/java/g0101_0200/s0195_tenth_line/script.sh new file mode 100644 index 000000000..caeb7d60a --- /dev/null +++ b/src/main/java/g0101_0200/s0195_tenth_line/script.sh @@ -0,0 +1,2 @@ +# Read from the file file.txt and output the tenth line to stdout. +sed -n 10p file.txt \ No newline at end of file diff --git a/src/main/java/g0101_0200/s0196_delete_duplicate_emails/script.sql b/src/main/java/g0101_0200/s0196_delete_duplicate_emails/script.sql new file mode 100644 index 000000000..835fcc9e9 --- /dev/null +++ b/src/main/java/g0101_0200/s0196_delete_duplicate_emails/script.sql @@ -0,0 +1,3 @@ +# Write your MySQL query statement below +DELETE FROM Person +WHERE Id NOT IN (SELECT id FROM (SELECT Email, MIN(Id) AS 'id' FROM Person GROUP BY Email) t) \ No newline at end of file diff --git a/src/main/java/g0101_0200/s0197_rising_temperature/script.sql b/src/main/java/g0101_0200/s0197_rising_temperature/script.sql new file mode 100644 index 000000000..eece3a3ff --- /dev/null +++ b/src/main/java/g0101_0200/s0197_rising_temperature/script.sql @@ -0,0 +1,5 @@ +# Write your MySQL query statement below +SELECT SecondDate.id as Id +FROM Weather SecondDate JOIN Weather FirstDate +ON ADDDATE(FirstDate.recordDate,1) = SecondDate.recordDate +AND SecondDate.temperature> FirstDate.temperature; \ No newline at end of file

AltStyle によって変換されたページ (->オリジナル) /