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

Where is pl sql used?

516


Where is sql database stored?

518


How to display Row Number with Records in Oracle SQL Plus?

594


How can you know that statistics should be updated?

601


What is a system versioned table?

533






What does partition by mean in sql?

513


State few characteristics of pl/sql?

565


How many columns should be in an index?

518


Is there a way to automate sql execution from the command-line, batch job or shell script?

557


What's the procedure?

490


define sql delete statement ? : Sql dba

556


How to use boolean type in select statement?

580


how to include numeric values in sql statements? : Sql dba

557


Why do we need unique key in a table?

523


How delete all records from table in sql?

550