Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago