QuestionQ189Verified/Managing Schema ObjectsCopy linkReport a problemAsk AstroTutorSave questionExamine the following statement: Which two changes are required for it to execute successfully?Choose twoAThe foreign key constraint on DEPT_ID must be defined at the table level instead of the column level.BThe NOT NULL constraint on ENAME must be defined at the column level instead of the table level.CThe primary key constraint on EMP_ID must have a name.DOne of the LONG columns must be changed to a VARCHAR2 or CLOB.EThe word CONSTRAINT in the foreign key constraint on DEPT_ID must be changed to FOREIGN KEY.Show AnswerAnswerExplanationOracle allows only one LONG column in a table, so either ADDRESS or RESUME must be changed to a suitable alternative such as VARCHAR2 or CLOB. A NOT NULL constraint must be declared with its column definition; it cannot be specified as an out-of-line table constraint without being attached to ENAME.Learn moreOracle Database SQL Language Reference: CREATE TABLEOracle Database SQL Language Reference: Data TypesShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion