why can't we assign not null constraint as table level
constraint




Answers were Sorted based on User's Feedback



why can't we assign not null constraint as table level constraint..

Answer / lokanath

Because its a Column Level constraint.
Not Null is a Constraint which will ensure the Column
should not be null.

Is This Answer Correct ?    10 Yes 12 No

why can't we assign not null constraint as table level constraint..

Answer / senthil

not null constraint applied on table level constraint but table must be empty otherwise not possible .

Is This Answer Correct ?    0 Yes 3 No

why can't we assign not null constraint as table level constraint..

Answer / newton_dba

A NOT NULL CONSTRAINT IS USAUALLY APPLIED ON COLUMN LEVEL
BUT IT CAN BE APPLIED ON THE TABLE LEVEL BY USING ALTER
TABLE STATMENT

ALTER TABLE EMP
MODIFY (ENAME CONSTRAINT EMP_ENAME_NN NOT NULL);

Is This Answer Correct ?    7 Yes 12 No



Post New Answer



More Oracle General Interview Questions

why dont we assign not null constraint as table level constraint.

0 Answers  


Calculate difference between 2 date / times in oracle sql?

0 Answers  


14. Display the item_cost and then round it to the nearest hundred, ten, unit, tenth and hundredth

1 Answers   Wipro,


What are the different type of Segments ?

2 Answers  


What is the difference between SQL and SQL Server?

2 Answers   CTS, TCS,






How to sort output in descending order in oracle?

0 Answers  


What's dateware house and what's clustor with practicle example

0 Answers  


How to store only time; not date and time?

0 Answers  


What are the differences between char and varchar2 in oracle?

0 Answers  


Explain 1st, 2nd, 3rd normalization form of data base

3 Answers   Thermotech, KH,


what is unique key?

14 Answers   Amazon, Infosys, Wipro, Cap Gemini,


Explain the relationship among Database, Tablespace and Data file?

4 Answers  






Categories
  • Oracle General Interview Questions Oracle General (1658)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (188)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (509)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)