Note: articles are for educational purposes and are not professional security advice — consult an expert for your specific needs.

Database

The Database section covers how to design, query and run databases, relational and NoSQL alike. The guides explain the ideas behind a schema as well as the SQL that uses it, with examples for MySQL, PostgreSQL and SQL Server.

Designing a schema? Begin with constraints and validation rules, which keep bad data out of your tables. For NoSQL, data modelling for schema-less designs and consistency models explain the trade-offs that work differently from SQL. Other guides range from counting NULL and NOT NULL values in a column to what MySQL, PostgreSQL and SQL Server each offer, and from column-family stores to backups.

Preparing for an interview? SQL tricky interview questions works through the questions interviewers use to test SQL. Running a database in production? See backup and recovery strategies for relational databases before you need them.

Category · 91 articles · Follow Database

Latest in Database

91 articles
Database

SQL for Interviews: Tricky Questions

A detailed exploration of SQL tricky interview questions for Day 1, covering everything from Common Table Expressions to ACID properties and date manipulations

3 min read
$ subscribe --weekly

Get the next tutorial in your inbox.

Programming, security and AI — the practical bits, no spam. Unsubscribe any time.