Archive

Archive for the ‘Database’ Category

How to Know The Duplicate Records Based on The Same Value in a Field in MySQL Database

November 28th, 2009 Masino Sinaga No comments

Have you ever wanted to know which record has duplicate content based on the same content in a field in MySQL database? This information will be get after you select the records and display them which one have the same content by groupping them by that field. Well, here is the script how you can do that. Read more…

  • Share/Bookmark

How to Select Distinct And Get the Certain Characters From a Field in MySQL Database

November 27th, 2009 Masino Sinaga No comments

Today I faced an interesting situation while getting the certain characters from a field and wanted to display them by using SELECT DISTINCT statement in MySQL database. Suppose we had thousand records in a table and we wanted to get the certain characters from the first until the certain position counted 6 characters from the right of all particular characters, and display them by using the SELECT DISTINCT statement. So, what would you do? Well, here is the solution I made in MySQL database. Read more…

  • Share/Bookmark