About this course
Almost every app you use keeps something in a database: a bank keeps your balance, a school keeps its marks, an online shop keeps its orders. This course shows how that stored data is organised, how to ask it questions, and how to keep it correct and safe.
You begin with the problem databases solve and the relational model that E. F. Codd proposed in 1970. Then you learn tables, keys and relationships, and write MySQL statements to create tables and to insert, read, change and delete data. You practise aggregates, GROUP BY and joins on one school database, so every result builds on the one before. The last three lessons cover normalisation (1NF, 2NF, 3NF and BCNF), indexes, transactions and ACID, and finally views, subqueries and prepared statements that protect a website against SQL injection.
The course helps Class 11 and 12 computer science students, BCA and B.Sc. learners, anyone preparing for a database paper or interview, and working people who want to pull answers out of data with confidence. Every query in the notes was run on a real database server, and the results are shown as tables.
What you will learn
- Explain why databases replace scattered files and what the relational model of E. F. Codd changed
- Design tables with primary keys, foreign keys, one-to-many and many-to-many relationships
- Write MySQL statements that create tables and insert, select, filter, sort, update and delete rows
- Summarise data with COUNT, SUM, AVG, GROUP BY and HAVING, and combine tables with INNER and LEFT joins
- Normalise a messy table to 3NF and recognise when BCNF is needed
- Speed up queries with indexes and protect data with transactions that follow ACID
- Use views, subqueries and prepared statements to write safer queries that resist SQL injection
Who this course is for
- Class 11 and 12 students of Computer Science or Informatics Practices who meet SQL in their syllabus
- BCA, B.Sc. IT and engineering students who need databases for a semester paper or an interview
- Beginners who want to become web developers, data analysts or database administrators
- Working people, such as accountants and office staff, who want answers from data without waiting for others
Before you start
- Comfort with a computer and with the idea of rows and columns, as in an Excel sheet
- A free MySQL or MariaDB installation, for example MySQL Community Server or XAMPP, to try the queries
Certificates for this course
Certificate of Completion Free
Finish every lesson and pass the final quiz. The certificate is issued at once, as a PDF in your dashboard, with an ID anyone can check.
Course content
-
SQL Basics in MySQL: Create, Insert, Select, Update, Delete
-
Aggregates, GROUP BY and HAVING
-
Joins: Combining Tables in the School Database
-
Normalisation: 1NF, 2NF, 3NF and BCNF
-
Indexes, Transactions and ACID
-
Views, Subqueries and Prepared Statements
-
Final quiz (quiz)
Study material
Revise and practise without opening every lesson.
Vinu Jaglan
Philosopher, psychologist, author and content creator
Vinu Jaglan teaches philosophy, psychology, politics and society to a Hindi-speaking audience of more than one lakh YouTube subscribers (Silver Play Button, 600+ videos). He is the author of nine books, holds a BSc in Psychology from IGNOU and is pursuing master's degrees in Psychology (IGNOU), Philosophy (Kurukshetra University) and Political Science (MDU …