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 / gk

We can use Check constraint to restict the values of any
column.

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is stored procedure faster than query?

716


What is sql engine in oracle?

737


Can you have a foreign key without a primary key?

689


How many types of primary keys are there?

726


what is sql server agent? : Sql dba

778


Show the cursor attributes of pl/sql.

787


How do you respond to dementia behavior?

729


How do I install microsoft sql?

726


what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql

705


What is a subquery in sql?

710


Can we create table inside stored procedure?

706


How can I see all tables in sql?

737


What is pessimistic concurrency control? : Transact sql

841


What is use of trigger?

685


What is the difference between rename and alias?

985