Skip to content
Advertisement

Not displaying dates but instead moving them to a different column

Having an issue with a join code where the code is executing but is giving me a warning that it is truncating my PROD_INTO_DATE but I noticed that it was entered into the PROD_CAT_CD column.

Where the data is being inserted

The PROD_CAT_CD has data that should be there.

And where the join is coming from it should be fine because it sees the date as date.

from the ods_product

Advertisement

Answer

You need to insert the columns in the same order as in the insert column list:

Once I had a colleague that I respected very much. She initially had the same confusion with insert . . . although you list the columns and the select also has column names, the matching is by position rather than by name.

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