diff --git a/.DS_Store b/.DS_Store index f2b3dda..0448198 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/SQL_statement_homeroom_staff_dummy_data.sql b/SQL_statement_homeroom_staff_dummy_data.sql deleted file mode 100644 index e9ea046..0000000 --- a/SQL_statement_homeroom_staff_dummy_data.sql +++ /dev/null @@ -1,48 +0,0 @@ --- SQL INSERT statement for school_classes database --- 37 dummy records with anglicized names for privacy - -INSERT INTO classes (class_name, classroom, parent_room, teacher_name, internal_number, mobile_number) VALUES -('1А', 'В4', 'В4', 'Milanova Elena Igorevna', '5204', '7(999) 111-22-33'), -('1В', 'В5', 'В5', 'Uglyar Oksana Sergeevna', '5205', '7(999) 222-33-44'), -('1C', 'В6', 'В6', 'Novitskaya Yulia Vladimirovna', '5206', '7(999) 333-44-55'), -('2A', 'В7', 'В7', 'Murdasova Elena Andreevna', '5207', '7(999) 444-55-66'), -('2B', 'В8', 'В8', 'Knysheva Yulia Dmitrievna', '5208', '7(999) 555-66-77'), -('2C', 'В9', 'В9', 'Gilko Svetlana Mikhailovna', '3038', '7(999) 666-77-88'), -('3A', 'А1', 'А1', 'Dudareva Darya Alexandrovna', '5101', '7(999) 777-88-99'), -('3B', 'А2', 'А2', 'Kapustina Yulia Petrovna', '5102', '7(999) 888-99-00'), -('3C', 'А3', 'А3', 'Kodirova Irina Vladimirovna', '5103', '7(999) 999-00-11'), -('4A', 'А6', 'А6', 'Krylova Anastasia Sergeevna', '5106', '7(999) 000-11-22'), -('4B', 'А7', 'А7', 'Ivanisova Anna Igorevna', '5107', '7(999) 111-00-99'), -('4C', 'А8', 'А8', 'Parshenkova Luiza Romanovna', '5108', '7(999) 222-11-88'), -('5A', 'С23', 'С23', 'Dyakina Irina Olegovna', '5323', '7(999) 333-22-77'), -('5B', 'В17', 'В17', 'Nikitina Polina Andreevna', '5217', '7(999) 444-33-66'), -('5C', 'В18', 'В18', 'Hodykina Liliya Sergeevna', '5218', '7(999) 555-44-55'), -('5D', 'А12', 'В19', 'Romanov Dmitry Alexandrovich', '5112', '7(999) 666-55-44'), -('5E', 'С25', 'С25', 'Ukleina Irina Sergeevna', '5325', '7(999) 777-66-33'), -('6A', 'С21', 'С21', 'Silantyeva Darya Igorevna', '5201', '7(999) 888-77-22'), -('6B', 'В31', 'С24', 'Shishakina Elizaveta Andreevna', '5231', '7(999) 999-88-11'), -('6C', 'С22', 'С22', 'Volkova Olga Dmitrievna', '5322', '7(999) 000-99-00'), -('6D', 'В03', 'С26', 'Pestova Polina Mikhailovna', '5203', '7(999) 111-22-99'), -('7A', 'С4', 'С4', 'Baromychenko Natalia Vladimirovna', '5304', '7(999) 222-33-88'), -('7B', 'С29', 'С29', 'Alieva Venera Alexandrovna', '5329', '7(999) 333-44-77'), -('7C', 'С28', 'С28', 'Minaeva Darya Sergeevna', '5328', '7(999) 444-55-66'), -('7D', 'С27', 'С27', 'Kyuchukdzhan Anna Igorevna', '5327', '7(999) 555-66-55'), -('7E', 'С6', 'С6', 'Vinokurova Lyudmila Dmitrievna', '5306', '7(999) 666-77-44'), -('8A', 'С2', 'С2', 'Khramova Anna Vladimirovna', '5302', '7(999) 777-88-33'), -('8В', 'В11', 'С10', 'Mishurov Ilya Alexandrovich', '5211', '7(999) 888-99-22'), -('8C', 'В30', 'С12', 'Emelyanova Polina Sergeevna', '5230', '7(999) 999-00-11'), -('8D', 'В12', 'С13', 'Isaeva Maria Igorevna', '5212', '7(999) 000-11-00'), -('9А', 'С17', 'С17', 'Rotov Yury Vladimirovich', '5317', '7(999) 111-22-99'), -('9В', 'С7', 'С7', 'Lugovtseva Anastasia Dmitrievna', '5307', '7(999) 222-33-88'), -('9C', 'С3', 'С3', 'Gulyanov Alexey Sergeevich', '5303', '7(999) 333-44-77'), -('10А', 'С30', 'С30', 'Grishina Natalia Olegovna', '5330', '7(999) 444-55-66'), -('10В', 'С5', 'С5', 'Antonova Darya Vladimirovna', '5305', '7(999) 555-66-55'), -('10C', 'С20', 'С20', 'Komleva Inga Sergeevna', '5320', '7(999) 666-77-44'), -('11А', 'Лекторий', 'Лекторий', 'Vasilyeva Anastasia Dmitrievna', '5200', '7(999) 777-88-33'); - --- Instructions: --- 1. Make sure your 'classes' table exists with the correct columns --- 2. Copy and paste this SQL into DB Browser for SQLite --- 3. Execute the statement --- 4. Don't forget to click 'Write Changes' to save --- 5. Will insert 37 dummy records with anglicized names \ No newline at end of file diff --git a/database.py b/database.py new file mode 100644 index 0000000..439d13f --- /dev/null +++ b/database.py @@ -0,0 +1,12 @@ +import sqlite3 +conn = sqlite3.connect('jokes.db') +cursor = conn.cursor() +cursor.execute('''CREATE TABLE IF NOT EXISTS jokes ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + joke TEXT NOT NULL, + contributor TEXT NOT NULL, + published TEXT NOT NULL +)''') +conn.commit() +print("✅ Database and table created successfully!") +conn.close() \ No newline at end of file