| Saturday, 25 October, 2025 | CREATE TABLE stock_exchanges ( name VARCHAR2 (30) , currency VARCHAR2 (3) DEFAULT 'CAD' ) | 0 | The Toronto Stock Exchange was formed on 25 October 1861. | 2 | 202 |
| Friday, 24 October, 2025 | SELECT FIRST_VALUE ( name ) OVER ( niagara ) FROM people WHERE body IN ( 'barrel' ) WINDOW niagara AS ( ORDER BY fall ) | 1 | On 24 October 1901, Annie Taylor became the first person to go over the Niagara Falls in a barrel successfully. This uses the window clause, added in Oracle Database 21c, to find the name of the first person to go over Niagara, sorted by fall (date). | 4 | 1070 |
| Thursday, 23 October, 2025 | SELECT emperor FROM japan AS OF PERIOD FOR meiji_era DATE '1868-10-23' | 1 | On 23 October 1868, the Meiji era began in Japan. This uses the temporal period meiji_era to get the emperor on this date. | 4 | 547 |
| Wednesday, 22 October, 2025 | SELECT * FROM landers l JOIN planets p ON p.surface = l. place WHERE l.name = 'Venera 9' AND p.name = 'Venus' | 0 | On 22 October 1975, Venera 9 became the first craft to land on Venus. | 2 | 394 |
| Tuesday, 21 October, 2025 | SELECT player, game FROM game_scores WHERE league = 'NFL' GROUP BY player, game HAVING SUM ( safety ) = 2 | 0 | On 21 October 1973, Fred Dryer became the only NFL player to date to score two safeties in one game. | 2 | 360 |
| Monday, 20 October, 2025 | DELETE icons i FROM desktop d WHERE i.location = d.location AND i.status = 'unused' | 1 | It's Clean Your Virtual Desktop Day! This uses direct join syntax, added in release 23ai, to remove rows from the icons table that have a row with the same location in the desktop table. | 2 | 415 |
| Sunday, 19 October, 2025 | UPDATE black_body SET energy = energy - radiation RETURN OLD energy, NEW energy INTO :old_e, :new_e | 1 | On 19 October 1900, Max Planck produced his law of black-body radiation. This uses the OLD and NEW clauses, added in release 23ai, to get the values for energy before and after the update. | 3 | 405 |
| Saturday, 18 October, 2025 | ALTER TABLE switzerland TRUNCATE PARTITION FOR ( 'Basel' ) CASCADE | 1 | On 18 October 1356, the Saint Luke's Day Earthquake - one of the deadliest in Europe - struck Basel, Switzerland. This truncates the partition of the Switzerland table that contains the value “Basel”. The CASCADE clause applies this operation to any reference partitioned child tables. | 4 | 320 |
| Friday, 17 October, 2025 | SELECT MAX ( beer ) OVER london FROM brewery WINDOW london AS ( ORDER BY beer ) | 1 | On 17 October 1814, a vat of fermenting porter burst at Meux & Co's Horse Shoe Brewery, leading to a flood of beer in London. This uses the window clause, added in release 21c, to define a window named “london”. | 3 | 1135 |
| Thursday, 16 October, 2025 | DELETE queens q FROM kings k WHERE q.husband = k.wife AND k.name = 'Louis XVI' RETURN q.name INTO :queen_name | 1 | On 16 October 1793, Marie Antoinette, the wife of King Louis XVI and the last queen of France, was executed by guillotine. This uses direct join syntax, added in release 23ai, to remove rows from the queens table that are wives of the Louis XVI. | 3 | 506 |
| Wednesday, 15 October, 2025 | INSERT INTO airlines ( airline_id, airline_name ) VALUES ( DEFAULT, 'Tata Airlines' ) | 1 | On 15 October 1932, Tata Airlines, now Air India, was founded. | 2 | 1320 |
| Tuesday, 14 October, 2025 | SELECT name FROM programmers ORDER BY birth_date ASC FETCH FIRST ROW ONLY | 0 | It's Ada Lovelace Day! She was a mathematician and writer and is widely considered the first programmer. | 2 | 766 |
| Monday, 13 October, 2025 | DELETE FROM emperors WHERE 'Claudius' = name AND 'Rome' = empire AND DATE'0054-10-13' = SYSDATE | 1 | On 13 October 54, Roman Emperor Claudius died. | 2 | 361 |
| Sunday, 12 October, 2025 | ALTER TABLE brazil ADD CONSTRAINT braz_empire_c CHECK ( governance = 'empire' ) | 1 | On 12 October 1822, Pedro I was proclaimed the first Emperor of Brazil. | 2 | 731 |
| Saturday, 11 October, 2025 | CREATE OR REPLACE CONTEXT sydney USING university_pkg ACCESSED GLOBALLY | 1 | On 11 October 1852, the University of Sydney was inaugurated. This creates a global application context. These enable you to store name-value pairs in memory. | 4 | 614 |
| Friday, 10 October, 2025 | SELECT m.*, FIRST_VALUE ( m.name ) OVER ( PARTITION BY m.planet ORDER BY m.radius DESC ) FROM moons m | 1 | On 10 October 1846, Triton, Neptune's largest moon, was discovered by William Lassell. FIRST_VALUE is a window function that returns the expression for row 1 in each partition according to the sort. So this finds the name of the largest moon (by radius) for each planet. | 3 | 391 |
| Thursday, 09 October, 2025 | SELECT TO_DATE ( '1446-10월-09' , 'yyyy-mon-dd', 'nls_date_language = ' || lang ) FROM languages WHERE lang = 'korean' | 1 | It's Hangeul Day (Korean: 한글날) in South Korea. This celebrates the invention of the Korean alphabet in the 15th century. This uses the third parameter of TO_DATE to specify the language of the input string to be converted into a date. | 2 | 359 |
| Wednesday, 08 October, 2025 | CREATE TABLE hospitals ( hospital_id INT GENERATED AS IDENTITY , hospital_name VARCHAR2 (255) ) | 1 | On 8 October 1645, Hôtel-Dieu de Montréal, the first hospital in Montreal, Canada, was founded by Jeanne Mance. | 3 | 457 |
| Tuesday, 07 October, 2025 | SET TRANSACTION READ WRITE NAME q'[Helsinki Stock Exchange]' | 1 | On 7 October 1912, the first transaction was made on the Helsinki Stock Exchange. This starts a read-write transaction; the name will appear in the v$transaction view. | 5 | 329 |
| Monday, 06 October, 2025 | INSERT INTO feed SELECT photo FROM users WHERE followed_by = USER ORDER BY uploaded_date DESC | 0 | On 6 October 2010, Instagram launched. | 2 | 1328 |
| Sunday, 05 October, 2025 | UPDATE countries SET government = 'republic' WHERE country_name = 'Portugal' AND coup_year = 1910 | 0 | On 5 October 1910, Portugal became a republic following a coup which overthrew the monarchy. | 2 | 456 |
| Saturday, 04 October, 2025 | SELECT country FROM republics GROUP BY country HAVING COUNT (*) = 5 | 0 | On 4 October 1958, the Fifth French Republic was established. | 2 | 307 |
| Friday, 03 October, 2025 | SELECT athlete FROM prize_money WHERE EXTRACT ( YEAR FROM won_on ) = 1971 GROUP BY athlete HAVING SUM ( money ) > 100000 | 1 | On 3 October 1971, Billie Jean King became the first woman to earn more than $100,000 in one year when she won a tournament in Phoenix. | 2 | 219 |
| Thursday, 02 October, 2025 | ALTER TABLE running_events ADD CONSTRAINT parkrun_5k CHECK ( CASE WHEN type = 'parkrun' THEN 5 END = distance ) | 1 | On 2 October 2004, the first Parkrun—a series of 5km running events—was held in London. These were initially named UK Time Trials. This creates a conditional check constraint. If the type is parkrun, the distance must be five. For other events, the case expression returns null. This evaluates to unknown, so you can set any distance for other event types because check constraints only reject rows that evaluate to false. | 2 | 592 |
| Wednesday, 01 October, 2025 | SELECT * FROM boxing WHERE bout BETWEEN 'Ali' AND 'Frazier' AND thrilla IN ( 'Manila' ) | 1 | On 1 October 1975, Muhammad Ali defeated Joe Frazier in a boxing bout billed as the Thrilla in Manila. | 2 | 261 |
| Tuesday, 30 September, 2025 | CREATE DOMAIN richter_scale AS NUMBER (3, 1) CHECK ( richter_scale BETWEEN 1 AND 10 ) | 0 | On 30 September 1985, Charles Richter, inventor of the Richter scale, died. This creates a usecase domain, added in Oracle Database 23ai, to describe values in the Richter scale. | 4 | 445 |
| Monday, 29 September, 2025 | ALTER TABLE moons ADD CONSTRAINT moon_earth_fk FOREIGN KEY ( planet ) REFERENCES earth | 1 | On 29 September 2024, asteroid 2024 PT5 was temporarily captured by Earth's gravity, forming a mini-moon. This adds a foreign key from the moons table to the earth table. It lists no columns of earth, so the foreign key defaults to referencing earth's primary key. | 3 | 691 |
| Sunday, 28 September, 2025 | SELECT * FROM calendar c WHERE NOT EXISTS ( SELECT NULL FROM questions q WHERE q.type = 'stupid' AND q.dt = c.dt ) | 0 | It's Ask a Stupid Question Day! It's said there's no such thing as a stupid question, so ask away! This statement returns the rows from calendar with no row in questions that matches the dt with the type “stupid”. | 2 | 256 |
| Saturday, 27 September, 2025 | SELECT * FROM popes WHERE ( end_dt - start_dt ) = ( SELECT MIN ( end_dt - start_dt ) FROM popes ) | 1 | On 27 September 1590, Pope Urban VII died, ending the shortest recognized papacy. This statement finds rows from popes with the smallest difference between end_dt and start_dt. | 2 | 1030 |
| Friday, 26 September, 2025 | SELECT dep_airport , dest_airport FROM flights WHERE dest_time - dep_time = INTERVAL '3:33' HOUR TO MINUTE | 0 | On 26 September 1973, Concorde flew from Washington DC to Paris, Orly in a record breaking time of 3 hours 33 minutes. | 4 | 584 |
| Thursday, 25 September, 2025 | SELECT winner FROM races WHERE distance = 42.195 AND city = 'Chicago' ORDER BY race_date FETCH FIRST ROW ONLY | 0 | The first Chicago marathon was held on 25 September 1977. | 2 | 350 |
| Wednesday, 24 September, 2025 | UPDATE gold SET price = price * 0.8625 RETURN OLD price, NEW price INTO :old_price , :new_price | 1 | On 24 September 1869, a gold panic broke out in the US after its price fell from $160 to $138. This uses the OLD and NEW clauses of RETURN[ING], added in release 23ai, to get the gold price before and after the update. | 3 | 467 |
| Tuesday, 23 September, 2025 | INSERT INTO companies ( founded_on, name ) VALUES ( TO_DATE ( '23091889', 'ddmmyyyy' ), 'Nintendo Koppai') | 1 | Nintendo Koppai, which later became Nintendo Co., Ltd., was founded on 23 September 1889. | 2 | 305 |
| Monday, 22 September, 2025 | UPDATE calendar SET calendar_date = DATE'0001-01-01' WHERE calendar_date = DATE'1792-09-22' AND country = 'FR' | 1 | France introduced the French Republican calendar in 1793. This split the year into twelve 30-day months with three 10-day weeks in each. The first day of year 1 of this calendar was 22 September 1792 in the Gregorian calendar. | 2 | 222 |
| Sunday, 21 September, 2025 | CREATE VIEW miniature_golf AS SELECT LOWER ( g.course ) AS miniature_course, g.* FROM golf g | 0 | It's Miniature Golf Day! This creates a view that LOWERs (minifies) the golf course names :) | 2 | 364 |
| Saturday, 20 September, 2025 | CREATE DOMAIN rsa AS ( public_key AS RAW (256) NOT NULL, private_key AS RAW (256) NOT NULL ) | 1 | On 20 September 1983, the RSA encryption algorithm was patented. This creates a multicolumn use case domain for the keys this algorithm uses. Remember that you should never share your private key when using RSA encryption! | 2 | 255 |
| Friday, 19 September, 2025 | SELECT festival_name FROM festivals WHERE latitude = 51.149722 AND longitude = -2.586944 | 1 | The first Glastonbury festival was held on 19 September 1970. This query returns the row for the festival located at latitude = 51.149722, longitude = -2.586944 - Glastonbury! | 1 | 134 |
| Thursday, 18 September, 2025 | ALTER TABLE cities SPLIT PARTITION spain VALUES ( 'Santiago' ) INTO ( PARTITION chile , PARTITION ) | 1 | It's Chilean Homeland Holidays! On 18 September 1810, Chile formed the Government Junta of Chile. This started the process of gaining independence from Spain. This statement splits Sanitago from the partition Spain into the partition Chile. | 3 | 764 |
| Wednesday, 17 September, 2025 | CREATE TABLE linux_releases ( release_id INT NOT NULL, version VARCHAR2 (30) NOT NULL, released_on DATE NOT NULL ) | 0 | On 17 September 1991, Linus Torvalds released the first version (0.01) of Linux. | 2 | 278 |
| Tuesday, 16 September, 2025 | SELECT CAST ( COLLECT ( rock ORDER BY rock_size ) AS rock_nt ) FROM beaches | 1 | It's Collect Rocks Day! This statement uses the COLLECT function to combine rows into a nested table array. | 4 | 746 |
| Monday, 15 September, 2025 | SELECT * FROM hms_beagle_routes WHERE voyage_number = 2 AND anchorage = 'galapagos' COLLATE binary_ai | 1 | On 15 September 1835, Charles Darwin reached the Galápagos Islands on the second voyage of the HMS Beagle. This uses the COLLATE operator with the BINARY_AI collation to give case- and accent-insensitive comparisons. | 2 | 1057 |
| Sunday, 14 September, 2025 | INSERT INTO united_nations ( member_state ) VALUES ( 'Nauru' ), ( 'Kiribati' ) , ( 'Tonga' ) | 0 | On 14 September 1999, Nauru, Kiribati, and Tonga joined the United Nations. This uses the table-values constructor, added in release 23ai, to do a multi-row insert and add all three rows in one statement. | 2 | 264 |
| Saturday, 13 September, 2025 | SELECT * FROM crocodiles ORDER BY crocodile_size DESC NULLS LAST FETCH FIRST ROW WITH TIES | 0 | It's Roald Dahl Day! This celebrates the birth of the popular children's books author. This statement sorts crocodiles from largest to smallest and returns all those that are the biggest (The Enormous Crocodile(s)). | 3 | 369 |
| Friday, 12 September, 2025 | WITH circuit AS ( SELECT * FROM resistors JOIN capacitors USING ( semiconductor ) ) SELECT * FROM circuit | 1 | On 12 September 1958, Jack Kilby demonstrated the first integrated circuit at Texas Instruments. | 2 | 1058 |
| Thursday, 11 September, 2025 | SELECT name FROM quizzes GROUP BY name HAVING MONTHS_BETWEEN ( MAX ( quiz_date ) , MIN ( quiz_date ) ) = 24 | 0 | Happy 2nd Birthday to SQuizL! Thanks for playing; we hope this brings a little SQL joy into your life. This statement finds the name of all quizzes where 24 months (2 years) have elapsed between their first and last quiz. | 2 | 656 |
| Wednesday, 10 September, 2025 | CREATE DOMAIN IF NOT EXISTS hadron_type AS ENUM ( meson, baryon ) | 1 | On 10 September 2008, the first beam was sent by the Large Hadron Collider at CERN. This creates an enumeration domain of the hadron types. | 3 | 674 |
| Tuesday, 09 September, 2025 | INSERT INTO metro_lines ( city , line ) VALUES ( 'Dubai', 'Red line' ), ( 'Dubai', 'Green line' ) | 1 | On 9 September 2009, the Dubai Metro began operation. Initially, there was only the red line; the green line was opened in 2011. This uses the table values construct to load both rows in one statement. | 2 | 1004 |
| Monday, 08 September, 2025 | DELETE FROM monarchies WHERE country = 'Bulgaria' AND abolish_vote_pct > 95 | 1 | On 8 September 1946, Bulgaria held a referendum on whether to abolish its monarchy. Its citizens overwhelmingly voted to do so, with over 95% voting in favour. | 2 | 301 |
| Sunday, 07 September, 2025 | CREATE TABLE icpo_interpol ( motto VARCHAR2 (255) NOT NULL, hq_address JSON NOT NULL ) | 1 | On 7 Sept 1923, the International Criminal Police Organization – INTERPOL was formed. The JSON data type was added in Oracle Database 21c. | 2 | 140 |
| Saturday, 06 September, 2025 | ALTER TABLE IF EXISTS chemical_elements ADD ( symbol VARCHAR2 (2 CHAR) ) | 1 | On 6 September 1766, John Dalton, a chemist credited as being the first person to use symbols to represent chemical elements, was born. The IF EXISTS syntax was added in release 23ai. This statement will run without error if there is no table named chemical_elements. | 2 | 239 |