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

hint:using row level and statement level trigger

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the possible values that can be stored in a boolean data field?

513


What is varchar example?

573


what are rollup and cube in t-sql? : Transact sql

657


Write a sql select query that only returns each name only once from a table?

565


Can we join more than 2 tables in sql?

489






How to add, remove, modify users using sql?

556


What is union, minus and interact commands?

748


How can a function retun more than one value in oracle with proper example?

582


When should I use nosql database?

551


how many values can the set function of mysql take? : Sql dba

530


What are different types of sql commands?

508


What is mdf ldf and ndf?

560


Which constraints we can use while creating database in sql?

613


what are sequences

1090


How can the performance of a trigger be improved?

588