i have a star schema datawarehouse i did the load with python and i set the id
of the employee = id
in the database , ron has id
number = 99 , Tom =201 ,Alice =87 but in the database i found the id where set by default . should i add another column id_employee
or should i change the id
into the real id
also i want the fact_table to have the real id
the code i used to load the database :
for row in pandasSource:
row["id"]=row["id_employee"]
dimemployee.ensure(row)
connection.commit()
connection.close
pgconn.close()