These are my personal study notes from learning Microsoft SQL Server and working with relational data. They collect the core database ideas, T-SQL patterns, and application examples I want to understand and keep in one practical reference.
The chapters begin with database structure and SQL Server tools, then build through table design, queries, filtering, joins, grouping, data changes, constraints, transactions, indexes, security, backup and restore, and JavaScript application access. Each chapter explains the reason behind a feature, gives runnable examples, and ends with review questions.
Database examples use T-SQL. The application chapter uses JavaScript with the mssql package and parameterized queries. Run write examples against a local practice database first. SQL Server editions and tooling can differ, so use the official Microsoft documentation for current setup and compatibility details.
- Understand SQL Server databases, schemas, tables, rows, and data types
- Connect with SQL Server Management Studio and
sqlcmd - Create tables and relationships with keys and constraints
- Read data with
SELECT, filters, sorting, and paging - Combine data with joins, subqueries, and common table expressions
- Insert, update, and delete records safely
- Summarize data with aggregate functions and
GROUP BY - Use views, stored procedures, indexes, and execution plans
- Understand transactions, locking, and isolation levels
- Apply least-privilege access, backup, and restore practices
- Connect a JavaScript application using parameterized queries
I work through the chapters against a disposable StudyNotes database, run each statement, and inspect the result before changing it. I keep destructive commands away from important databases and use the review questions to check that I can explain each concept in my own words.
- SQL Server and relational database fundamentals
- Install tools and connect to SQL Server
- Databases, schemas, tables, and data types
- Read data with SELECT
- Filter rows with predicates
- Sort, page, and shape results
- Insert, update, and delete data
- Keys, constraints, and relationships
- Joins and combining result sets
- Aggregate data with GROUP BY
- Subqueries, CTEs, and window functions
- Views and stored procedures
- Indexes and execution plans
- Transactions, locking, and isolation
- Security, backup, and restore
- SQL Server with JavaScript
- All code samples
- Complete questions and answers
- SQL Server documentation
- T-SQL reference
- Database design
- Query processing architecture
- Backup and restore
- Portfolio: https://www.ashishranjan.net
- GitHub: https://github.com/a2rp
- CodePen: https://codepen.io/ash1198
- LinkedIn: https://www.linkedin.com/in/aashishranjan
- Facebook: https://www.facebook.com/theash.ashish/
- YouTube: https://www.youtube.com/@ashishranjan-ashz?sub_confirmation=1
- Email: mailto:ash.ranjan09@gmail.com
- Support: https://a2rp-donation-page.netlify.app/
- Buy Me a Coffee: https://buymeacoffee.com/ashishranjan
- Patreon: https://www.patreon.com/ashishranjan