Skip to content

About

Personal Microsoft SQL Server study notes covering T-SQL, data modeling, queries, indexing, transactions, security, and JavaScript applications.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Microsoft SQL Server Study Notes

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.

About these notes

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.

Core topics

  • 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

How I use these notes

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.

Chapters

  1. SQL Server and relational database fundamentals
  2. Install tools and connect to SQL Server
  3. Databases, schemas, tables, and data types
  4. Read data with SELECT
  5. Filter rows with predicates
  6. Sort, page, and shape results
  7. Insert, update, and delete data
  8. Keys, constraints, and relationships
  9. Joins and combining result sets
  10. Aggregate data with GROUP BY
  11. Subqueries, CTEs, and window functions
  12. Views and stored procedures
  13. Indexes and execution plans
  14. Transactions, locking, and isolation
  15. Security, backup, and restore
  16. SQL Server with JavaScript
  17. All code samples
  18. Complete questions and answers

Official references

Links

Support

About

Personal Microsoft SQL Server study notes covering T-SQL, data modeling, queries, indexing, transactions, security, and JavaScript applications.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors