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

Compare sql & pl/sql

603


What are the differences between implicit and explicit cursors?

517


What is faster join or subquery?

508


What is sqlite format?

628


what is 'mysqldump'? : Sql dba

569






Is sql a scripting language?

513


Under what condition it is possible to have a page level lock and row lock at the same time for a query? : Transact sql

527


Explain sql data types?

623


What is data profiling in sql?

511


Enlist the advantages of sql.

568


What does count (*) do in sql?

521


How can we debug in PL/SQL?

655


What are sql built in functions?

508


What does fetching a cursor do?

613


What is the purpose of using pl/sql?

661