Skip to content
Advertisement

How to do select insert into statements and handling time series data and foreign keys?

I am completely lost on how to approach the problem I am having. I am trying to generate a boolean statement from one table and insert it into another table’s column. I am able to generate the boolean statement and create a new column as shown with the code and output below:

Boolean output

This is what I have so far:

Current decision table

I am stuck on how to insert the boolean output into another table’s column. Two columns I am particularly unclear on are: the date column and the stock_id column. I don’t even know if I am on the right path at this point and what to look for. Any assistance and suggestions are appreciated.

Advertisement

Answer

Get rid of the values clause:

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement