--First table
create table product([id] int identity primary key,[name] nvarchar(50),[description] nvarchar(50))
insert into product values(1,'tv','52 inches '),(2,'laptops','16 inches '),(3,'desktop','32 inches ')
select * from product
--2nd table
create table productsales(id int primary key identity, unitprice int,quantitysold int)insert into productsales values(3,450,5),(2,250,7),(3,600,4),(3,222,8)
alter table productsales add constraint fk1 foreign key(id)
references product ([id])
on update cascade
on delete cascade
jitendra