Answered step by step
Verified Expert Solution
Question
1 Approved Answer
HOW CAN SOLVE THE ERROR IN INSERT STATMENT CREATE TABLE T_ORDER_DATE AS( SELECT DISTINCT TO_CHAR (ORDER_DATE, 'DD-MM-YYYY') ORDER_DATE FROM OE.ORDERS) --7 CREATE TABLE T_DATE (ORDER_DATE
HOW CAN SOLVE THE ERROR IN INSERT STATMENT
CREATE TABLE T_ORDER_DATE AS( SELECT DISTINCT TO_CHAR (ORDER_DATE, 'DD-MM-YYYY') ORDER_DATE FROM OE.ORDERS) --7 CREATE TABLE T_DATE (ORDER_DATE DATE, Day_No NUMBER (2), Day_Name CHAR(10), Month_NO NUMBER(2), Month_Name CHAR(10), Quarter NUMBER(1), YYear NUMBER (4)) 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 --8 INSERT INTO T_DATE (Day_No, Day_Name, Month_NO, Month_Name, Quarter, YYear) SELECT ORDER_DATE, TO_NUMBER (TO_CHAR (ORDER_DATE, 'DD')), TO_CHAR (ORDER_DATE, 'DAY'), TO_NUMBER (TO_CHAR (ORDER_DATE, 'MM')), TO_CHAR (ORDER_DATE, 'MONTH'), TO_CHAR (ORDER_DATE, 'Q'), TO_NUMBER (TO_CHAR (ORDER_DATE, 'YYYY')) FROM T_ORDER_DATE ;||Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started