Project: YDB (App Definition and Development / Database)
File: fill_tables_with_data.md

Populate the tables with data using the statement. ```sql REPLACE INTO series (seriesid, title, releasedate, series_info) VALUES -- By default, numeric literals have type Int32 -- if the value is within the range. -- Otherwise, they automatically expand to Int64. ( 1, "IT Crowd", CAST(Date("2006-02-03") AS Uint64), -- CAST converts one datatype into another. -- You can convert a string -- literal into a primitive literal. -- The Date() function converts a string -- literal in ISO 8601 format into a date. "The IT Crowd is a British sitcom produced by Channel 4, written by Graham Linehan, produced by Ash Atalla and starring Chris O'Dowd, Richard Ayoade, Katherine Parkinson, and Matt Berry."), ( 2, "Silicon Valley", CAST(Date("2014-04-06") AS Uint64), "Silicon Valley is an American comedy television series created by Mike Judge, John Altschuler and Dave Krinsky. The series focuses on five young men who founded a startup company in Silicon

) ; REPLACE INTO seasons (seriesid, seasonid, title, firstaired, lastaired) VALUES (1, 1, "Season 1", CAST(Date("2006-02-03") AS Uint64), CAST(Date("2006-03-03") AS Uint64)), (1, 2, "Season 2", CAST(Date("2007-08-24") AS Uint64), CAST(Date("2007-09-28") AS Uint64)), (1, 3, "Season 3", CAST(Date("2008-11-21") AS Uint64), CAST(Date("2008-12-26") AS Uint64)), (1, 4, "Season 4", CAST(Date("2010-06-25") AS Uint64), CAST(Date("2010-07-30") AS Uint64)), (2, 1, "Season 1", CAST(Date("2014-04-06") AS Uint64), CAST(Date("2014-06-01") AS Uint64)), (2, 2, "Season 2", CAST(Date("2015-04-12") AS Uint64), CAST(Date("2015-06-14") AS Uint64)), (2, 3, "Season 3", CAST(Date("2016-04-24") AS Uint64), CAST(Date("2016-06-26") AS Uint64)), (2, 4, "Season 4", CAST(Date("2017-04-23") AS Uint64), CAST(Date("2017-06-25") AS Uint64)), (2, 5, "Season 5", CAST(Date("2018-03-25") AS Uint64), CAST(Date("2018-05-13") AS Uint64)) ; REPLACE INTO episodes (seriesid, seasonid, episodeid, title, airdate) VALUES (1, 1, 1, "Yesterday's Jam", CAST(Date("2006-02-03") AS Uint64)), (1, 1, 2, "Calamity Jen", CAST(Date("2006-02-03") AS Uint64)), (1, 1, 3, "Fifty-Fifty", CAST(Date("2006-02-10") AS Uint64)), (1, 1, 4, "The Red Door", CAST(Date("2006-02-17") AS Uint64)), (1, 1, 5, "The Haunting of Bill Crouse", CAST(Date("2006-02-24") AS Uint64)), (1, 1, 6, "Aunt Irma Visits", CAST(Date("2006-03-03") AS Uint64)), (1, 2, 1, "The Work Outing", CAST(Date("2006-08-24") AS Uint64)), (1, 2, 2, "Return of the Golden Child", CAST(Date("2007-08-31") AS Uint64)), (1, 2, 3, "Moss and the German", CAST(Date("2007-09-07") AS Uint64)), (1, 2, 4, "The Dinner Party", CAST(Date("2007-09-14") AS Uint64)), (1, 2, 5, "Smoke and Mirrors", CAST(Date("2007-09-21") AS Uint64)), (1, 2, 6, "Men Without Women", CAST(Date("2007-09-28") AS Uint64)), (1, 3, 1, "From Hell", CAST(Date("2008-11-21") AS Uint64)), (1, 3, 2, "Are We Not Men?", CAST(Date("2008-11-28") AS Uint64)), (1, 3, 3, "Tramps Like Us", CAST(Date("2008-12-05") AS Uint64)), (1, 3, 4, "The Speech", CAST(Date("2008-12-12") AS Uint64)), (1, 3, 5, "Friendface", CAST(Date("2008-12-19") AS Uint64)), (1, 3, 6, "Calendar Geeks", CAST(Date("2008-12-26") AS Uint64)), (1, 4, 1, "Jen The Fredo", CAST(Date("2010-06-25") AS Uint64)), (1, 4, 2, "The Final Countdown", CAST(Date("2010-07-02") AS Uint64)), (1, 4, 3, "Something Happened", CAST(Date("2010-07-09") AS Uint64)), (1, 4, 4, "Italian For Beginners", CAST(Date("2010-07-16") AS Uint64)), (1, 4, 5, "Bad Boys", CAST(Date("2010-07-23") AS Uint64)), (1, 4, 6, "Reynholm vs Reynholm", CAST(Date("2010-07-30") AS Uint64)), (2, 1, 1, "Minimum Viable Product", CAST(Date("2014-04-06") AS Uint64)), (2, 1, 2, "The Cap Table", CAST(Date("2014-04-13") AS Uint64)), (2, 1, 3, "Articles of Incorporation", CAST(Date("2014-04-20") AS Uint64)), (2, 1, 4, "Fiduciary Duties", CAST(Date("2014-04-27") AS Uint64)), (2, 1, 5, "Signaling Risk", CAST(Date("2014-05-04") AS Uint64)), (2, 1, 6, "Third Party Insourcing", CAST(Date("2014-05-11") AS Uint64)), (2, 1, 7, "Proof of Concept", CAST(Date("2014-05-18") AS Uint64)), (2, 1, 8, "Optimal Tip-to-Tip Efficiency", CAST(Date("2014-06-01") AS Uint64)), (2, 2, 1, "Sand Hill Shuffle", CAST(Date("2015-04-12") AS Uint64)), (2, 2, 2, "Runaway Devaluation", CAST(Date("2015-04-19") AS Uint64)), (2, 2, 3, "Bad Money", CAST(Date("2015-04-26") AS Uint64)), (2, 2, 4, "The Lady", CAST(Date("2015-05-03") AS Uint64)), (2, 2, 5, "Server Space", CAST(Date("2015-05-10") AS Uint64)), (2, 2, 6, "Homicide", CAST(Date("2015-05-17") AS Uint64)), (2, 2, 7, "Adult Content", CAST(Date("2015-05-24") AS Uint64)), (2, 2, 8, "White Hat/Black Hat", CAST(Date("2015-05-31") AS Uint64)), (2, 2, 9, "Binding Arbitration", CAST(Date("2015-06-07") AS Uint64)), (2, 2, 10, "Two Days of the Condor", CAST(Date("2015-06-14") AS Uint64)), (2, 3, 1, "Founder Friendly", CAST(Date("2016-04-24") AS Uint64)), (2, 3, 2, "Two in the Box", CAST(Date("2016-05-01") AS Uint64)), (2, 3, 3, "Meinertzhagen's Haversack", CAST(Date("2016-05-08") AS Uint64)), (2, 3, 4, "Maleant Data Systems Solutions", CAST(Date("2016-05-15") AS Uint64)), (2, 3, 5, "The Empty Chair", CAST(Date("2016-05-22") AS Uint64)), (2, 3, 6, "Bachmanity Insanity", CAST(Date("2016-05-29") AS Uint64)), (2, 3, 7, "To Build a Better Beta", CAST(Date("2016-06-05") AS Uint64)), (2, 3, 8, "Bachman's Earnings Over-Ride", CAST(Date("2016-06-12") AS Uint64)), (2, 3, 9, "Daily Active Users", CAST(Date("2016-06-19") AS Uint64)), (2, 3, 10, "The Uptick", CAST(Date("2016-06-26") AS Uint64)), (2, 4, 1, "Success Failure", CAST(Date("2017-04-23") AS Uint64)), (2, 4, 2, "Terms of Service", CAST(Date("2017-04-30") AS Uint64)), (2, 4, 3, "Intellectual Property", CAST(Date("2017-05-07") AS Uint64)), (2, 4, 4, "Teambuilding Exercise", CAST(Date("2017-05-14") AS Uint64)), (2,