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

Database — page 6

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 · page 6 of 8 · Follow Database

More on Database

91 articles
Database Design

Constraints and Validation Rules in Database Design

Explore how to enforce data constraints and validation rules during database design. Learn about different types of constraints like primary key, foreign key, unique, and check constraints, as well as validation rules including range and format validations, to maintain data integrity.

3 min read
Database Design

Database Indexing Strategies: Faster Data Retrieval

Explore various indexing techniques to enhance database performance in this comprehensive guide. From primary and secondary indexing to B-Trees and bitmap indexing, discover how to optimize data retrieval speed and create a well-balanced, efficient database system.

3 min read
$ subscribe --weekly

Get the next tutorial in your inbox.

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