I appreciate any help. I am creating a database query and I would like to add something. I created two tables(users&videos) and I would like to insert video_id into users table but however I would like one user to have multiple videos. For example, user_id 1 should have all three videos. Any help?
create table users (
user_id int,
username varchar(50),
video_id int,
primary key (user_id) );
insert into users(user_id,username,video_id) values (1,'trex',1&2&3); This line is incorrect.
create table videos (
video_id int,
video_title varchar(100),
primary key (video_id) );
insert into videos(video_id,video_title) values (1,'Math tutor'),(2,'SQL joins'),(3,'Fastest cars');