Files
2025-12-07 17:01:30 +04:00

39 lines
1.4 KiB
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
INSERT INTO edu_platform.users (id, name, age, email, registration_date) VALUES
(1, 'Alice', 25, 'alice@mail.com', '2023-01-10'),
(2,'Bob', 30, 'bob@gmail.com', '2023-02-05'),
(3,'Charlie', 22, 'charlie@mail.com', '2023-02-20'),
(4,'Diana', 28, 'diana@mail.com', '2023-03-01'),
(5,'Ethan', 35, 'ethan@gmail.com', '2023-03-10');
INSERT INTO edu_platform.courses (id, title, category, created_at) VALUES
(1, 'SQL для начинающих', 'data', '2023-01-01'),
(2, 'Python для анализа данных', 'programming', '2023-01-15'),
(3, 'BI с нуля', 'business', '2023-03-01');
-- Таблица lessons
INSERT INTO edu_platform.lessons (id, course_id, title, duration_min) VALUES
(1, 1, 'SELECT и FROM', 10),
(2, 1, 'JOIN', 15),
(3, 2, 'Pandas', 20),
(4, 3, 'Основы BI', 12),
(5, 3, 'Метрики и дашборды', 18);
-- Таблица enrollments
INSERT INTO edu_platform.enrollments (id, user_id, course_id, enrolled_at) VALUES
(1, 1, 1, '2023-01-15'),
(2, 1, 2, '2023-02-01'),
(3, 2, 1, '2023-01-20'),
(4, 3, 2, '2023-03-05'),
(5, 4, 3, '2023-04-01');
-- Таблица lesson_views
INSERT INTO edu_platform.lesson_views (id, user_id, lesson_id, viewed_at) VALUES
(1, 1, 1, '2023-01-16 10:00:00'),
(2, 1, 2, '2023-01-16 10:15:00'),
(3, 2, 1, '2023-01-21 09:00:00'),
(4, 3, 3, '2023-03-06 12:00:00'),
(5, 4, 4, '2023-04-02 10:00:00'),
(6, 4, 5, '2023-04-03 10:00:00');