Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / suresh babu

create check constraint is the best way to restrict the
limited number of entries,because the constraint won't take
a separate space,but Trigger required separate memory
space.perhaps the trigger got error,it would affect all
entries in table.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between sql and oracle?

1194


How can triggers be used for the table auditing?

1120


How does pl sql work?

1011


What programs use sql?

1089


Is it possible to pass parameters to triggers?

1164


How do you update f as m and m as f from the below table testtable?

1937


What is graph sql?

1042


What are types of exception?

964


what is an execution plan? When would you use it? How would you view the execution plan? : Sql dba

1019


differentiate between float and double. : Sql dba

1112


what is the difference between sql and t-sql? : Transact sql

1138


Can a composite key be null?

1037


What are different methods to trace the pl/sql code?

1176


What is sql resultset?

1043


What is the difference between distinct and unique in sql?

994