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 the difference between the implicit and explicit cursors?

990


How can I see all tables in sql?

983


How many functions are there in sql?

961


What is sql keyword?

943


can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba

941


What is the advantage of index in sql?

914


How does rowid help in running a query faster?

1366


What is difference between pls_integer and integer?

907


What is a constraint? Tell me about its various levels.

1081


What is full join in sql?

937


Is sql pronounced sequel or sql?

1211


Is stored procedure faster than query?

913


Which is faster subquery or join?

1141


What is a sql schema used for?

1026


What is dynamic query?

909