how do you restrict number of rows for a particular value
in a column.For example:there is a table called
fruits,having apples,bananas ,papayas.I dont want to have
more than 100 apples in that table ,so how can u restrict
number of rows for apple to hundred?

Answer Posted / xyz

aLTER TABLE emp ADD CONSTRAINT C3 CHECK (EMPNO < 300)

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sql basics?

578


What are properties of the transaction?

557


How insert into statements in sql?

588


Is trigger a stored procedure?

504


What is a parameter query?

623






What is the difference between explicit and implicit cursors in oracle?

514


Inline the values in PL/SQL, what does it mean.?

627


What is index example?

555


Why is sharding used?

552


How do I pipe the output of one isql to another?

530


What is sql engine in oracle?

519


How to avoid duplicate records in a query?

576


how are mysql timestamps seen to a user? : Sql dba

561


Is sql sequential or random?

537


What does <> sql mean?

539