Hello! Anyone could tell me how to set the limit of a certain column to accept 10 the same inputs only. I have a table named Date and I want to limit its content for the same inputs to 10 only cause 10 person only can have the same date. Thanks and God Bless. :D
paulablanca
0
Junior Poster in Training
Recommended Answers
Jump to Postjust check the :- COUNT(your column name of table).. // in sql
for datagridview check DataGridView.Rows.Count
if count is > 10 then dont let user enter any data
Jump to Post>Anyone could tell me how to set the limit of a certain column to accept 10 the same inputs only.
Sorry, I'm not quite following the problem. Correct me if I'm wrong. Do you want to update a specific column value of this table?
Jump to PostSorry again (; Post your code here and someone will help you.
Jump to Postsorry.. i misunderstood there
here is a query that will give u how many time a row or (column value) occurs in a table.
SELECT first_name , COUNT(first_name) AS Total FROM dbo.fdguest_master GROUP BY first_name HAVING ( COUNT(first_name) > 1 )
replace first_name with your date …
All 14 Replies
sandeepparekh9
109
Posting Whiz
kvprajapati
1,826
Posting Genius
Team Colleague
paulablanca
0
Junior Poster in Training
kvprajapati
1,826
Posting Genius
Team Colleague
sandeepparekh9
109
Posting Whiz
paulablanca
0
Junior Poster in Training
kvprajapati
1,826
Posting Genius
Team Colleague
sandeepparekh9
109
Posting Whiz
paulablanca
0
Junior Poster in Training
paulablanca
0
Junior Poster in Training
paulablanca
0
Junior Poster in Training
paulablanca
0
Junior Poster in Training
kvprajapati
1,826
Posting Genius
Team Colleague
paulablanca
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.