Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Count the duplicate values stored in the database

Count the duplicate values stored in the database

Scheduled Pinned Locked Moved Visual Basic
databasequestionlearning
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nikhil Bandekar
    wrote on last edited by
    #1

    Hii All How can i count the dulplicate values stored in the particular column of the table in database, through windows application. For e.g. If incase i want to display no. of books with same title from the title column in the text box. In the window form named multiple books which has a datagrid connected to the book entry database should display only the records which are multiple. And as datagrid row is clicked the information of no. of books available should be displayed in the textbox on same form. Suppose there are five books on Title (Gone with the winds) the datagrid will display the book details in one row as one book. And as user clicks the particular row the textbox1.text should display the no. 5 . Please try to solute Thanks

    Nikhil Bandekar Mumbai, India

    T 1 Reply Last reply
    0
    • N Nikhil Bandekar

      Hii All How can i count the dulplicate values stored in the particular column of the table in database, through windows application. For e.g. If incase i want to display no. of books with same title from the title column in the text box. In the window form named multiple books which has a datagrid connected to the book entry database should display only the records which are multiple. And as datagrid row is clicked the information of no. of books available should be displayed in the textbox on same form. Suppose there are five books on Title (Gone with the winds) the datagrid will display the book details in one row as one book. And as user clicks the particular row the textbox1.text should display the no. 5 . Please try to solute Thanks

      Nikhil Bandekar Mumbai, India

      T Offline
      T Offline
      Tamimi Code
      wrote on last edited by
      #2

      hi try to excute this query : SELECT Count(*) AS boos_count, book_title FROM books_table GROUP BY books_table.book_title

      Tamimi - Code

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups