JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Success stories
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • Foreign Keys: FOREIGN KEY

    SQL SELF
    19 level,0 lecture
    In this article, you'll find out what foreign keys are in relational databases, why you need them, how to use them to link tables and keep your data consistent, plus you'll see examples of different types of relationships and the syntax for creating foreign keys in PostgreSQL.
    Open
  • Creating Foreign Keys When Creating Tables

    SQL SELF
    19 level,1 lecture
    Learn how to create foreign keys in PostgreSQL, why you need them, and how to use them right to keep your data solid and organize relationships between tables. Examples, syntax, practical tips, and common mistakes — all in one lecture!
    Open
  • Using ON DELETE CASCADE and ON UPDATE RESTRICT

    SQL SELF
    19 level,2 lecture
    Learn how to manage relationships between tables in relational databases using cascade operations and constraints. We'll break down, with examples, how to automate deleting related data and protect data integrity when making changes.
    Open
  • Modeling a ONE-TO-MANY Relationship Between Tables

    SQL SELF
    19 level,3 lecture
    Learn how to set up one of the most common relationships in relational databases — one to many ( ONE-TO-MANY). Using customers and orders as an example, we’ll break down creating tables, adding foreign keys, inserting and selecting data, plus typical mistakes and how to dodge them.
    Open
  • Modeling a MANY-TO-MANY Relationship Using a Join Table

    SQL SELF
    19 level,4 lecture
    Learn how to properly implement a "many-to-many" relationship in relational databases using a join table. Examples of creating tables, inserting data, and running SQL queries for managing these relationships like a pro.
    Open
Learn
  • Registration
  • Java course
  • Help with tasks
  • Pricing
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success stories
  • Activities
Company
  • About us
  • Contacts
  • Reviews
  • FAQ
  • Support
JavaRushJavaRush — is an interactive online course for learning Java programming from scratch. It contains 1200 practical tasks with one-click solution checking, the necessary minimum of theory on Java basics, and motivating features that help you complete the course: games, quizzes, interesting projects and articles on effective learning and the career of a Java developer.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush
MastercardVisa
"Programmers are not born" © 2026 JavaRush