![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Database Database problems or need to ask a question? maybe something to do with sql injections or a database software question. Database topics cover MySQL, PostgreSQL, Oracle, SQL Server or anything else related to databases. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| Onlamp provides a very helpful page about identifying 'non'-distinct values within a table (see http://www.onlamp.com/pub/a/onlamp/e...1.html?page=2). They summary the process with an example as follows: mysql> CREATE TABLE tmp -> SELECT COUNT(*) AS count, last_name, first_name -> FROM cat_mailing GROUP BY last_name, first_name HAVING count > 1; mysql> SELECT cat_mailing.* -> FROM tmp, cat_mailing -> WHERE tmp.last_name = cat_mailing.last_name -> AND tmp.first_name = cat_mailing.first_name -> ORDER BY last_name, first_name; Just out of curiousity, can this be reduced down to a single query? | |||
| Featured Websites | ||||
|
![]() |
| Tags: displaying, nondistinct, results |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SUM (DISTINCT) INNER JOIN | Edward | Database | 4 | 07-01-2007 6:34 PM |
| distinct, count | Bill Karwin | Database | 0 | 07-01-2007 6:30 PM |
| distinct, count | Peter H. Coffin | Database | 0 | 07-01-2007 6:30 PM |
| Displaying query results numerous times | szar | PHP | 5 | 07-01-2007 4:15 PM |
| SELECT DISTINCT with Joins? | Aapo V | Database | 1 | 05-31-2007 8:39 PM |
| Featured Websites | ||||
|