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

what is a constraint? Tell me about its various levels. : Sql dba

992


what is the difference between char and varchar data types? : Sql dba

1127


How can triggers be used for the table auditing?

1071


Is primary key clustered or nonclustered?

1023


What is sql trigger example?

1071


How do I view a sql trace file?

1035


How many columns should be in an index?

964


Does a join table need a primary key?

959


What is asqueryable?

980


Why we use cross join?

959


Does sql profiler affect performance?

1000


Is mariadb a nosql database?

1057


Why do we need sharding?

1001


Explain the purpose of %type and %rowtype data types?

935


what are integrity rules?

1036