943,654 Members | Top Members by Rank

Ad:
Apr 6th, 2009
0

How to determine the same numbers in visual basic

Expand Post »
Greetings!

Anybody have idea how the determine the same numbers in 100 records. For example there are 100 inputted numbers in the database file. These numbers, some numbers have the same value.

Anyone know to determine these numbers and display like this.

input
100 numbers inputted in the database file


sample output.

Number ...................... total number with the same value
34 ............................... 20
2 .............................. 15
78 .............................. 36
5 .............................. 9
17 .............................. 11
56 .............................. 8
3 .............................. 1

the numbers from the left is the inputted numbers in the database file. and the numbers from the right is the total of how many times these numbers were inputted or total numbers with the same value.

Thanks in advance.
Last edited by locsin; Apr 6th, 2009 at 2:56 am. Reason: to improve screen display
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
locsin is offline Offline
47 posts
since Aug 2007
Apr 6th, 2009
0

Re: How to determine the same numbers in visual basic

What about simply using a COUNT on the database table !!!

something like the following

sql Syntax (Toggle Plain Text)
  1. SELECT num,count(num) FROM table_name GROUP BY num
Last edited by debasisdas; Apr 6th, 2009 at 4:25 am.
Featured Poster
Reputation Points: 665
Solved Threads: 427
Posting Genius
debasisdas is offline Offline
6,406 posts
since Feb 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: replacing variable data..(pls very urgent)
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Windows email and vb6





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC