I have a table in SQL that contains 2 primary keys of other tables how can i write its script on sql command line | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I have a table in SQL that contains 2 primary keys of other tables how can i write its script on sql command line

The table named Tarifer(NUMOUVR,DATEDEB,PRICE) NUMOUVR and DATEDEB are the two primary keys But they already exists on other tables OUVRAGE( primary key is NUMOUVR ) CATALOGUE( primary key is DATEDEB) CAN U HELP ME PLZ

29th Mar 2020, 5:42 PM
safae safa
safae safa - avatar
2 Answers
0
Use join command
29th Mar 2020, 10:33 PM
A͢J
A͢J - avatar
0
I used alter table foreign key but it shows me error 3780
29th Mar 2020, 10:35 PM
safae safa
safae safa - avatar