Referencing a non-PK field in Oracle

What is the correct way to reference a non-PK field? I don’t understand why this example doesn’t work (the field c23). CREATE TABLE tabla1 ( c11 CHAR(9) PRIMARY KEY, c12 VARCHAR2(10), c13 INTEGER, CHECK(c13 <= 100) ); CREATE TABLE tabla2 ( c21 CHAR(9) PRIMARY KEY, c22 VARCHAR2(10), c23 REFERENCES tabla1(c13) ); >Solution : You can’t.… Read More Referencing a non-PK field in Oracle

Create Table with two lists python

I have two lists. I have a list of table titles(title_df). my other list is from my contents (prediction_df) to be sorted by titles. I want to populate my contents by titles and create a table in the result. title_df=[‘a’,’b’] prediction_df=[‘1′,’2′,’3′,’800800′,’802100′,’800905’] my table has three rows and two columns i need your help >Solution :… Read More Create Table with two lists python