Thank you very much first for your help. I'm here since I don't know how to program a constraint for the Video table, so that it checks if a category exists in the 'Categories' table before creating a new line inside the Video table.
Categories Table:
CREATE TABLE Categories(
cat_id integer,
cat_name varchar2(128)
CONSTRAINT pk_cat PRIMARY KEY (cat_id, cat_name)
);
Video Table:
CREATE TABLE Video(
video_id integer PRIMARY KEY,
title varchar2(128) NOT NULL,
description varchar2(128) NOT NULL,
categorie varchar2(32),
CONSTRAINT fk_vid_cat FOREIGN KEY (categorie) REFERENCES Categories,
--CONSTRAINT ck_cat_exists CHECK categorie EXISTS (cat_name) REFERENCES Categories
) ;
I don't know if it can be done directly from here, thank you very much for your help again ...