|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Hi,
I need some help on a basic SQL query. I have a table which contains emails addresses. I' like to retrieve all the emails that are repeat twice or more. Here's the SELECT statement for that table : SELECT CRIMULTI_email.strID AS strID, CRIMULTI_email.email AS Email FROM CRIMULTI_email I know it's possible to make the query in a single select statement !!! But HOW !!!! Thank you in advanced ! ![]() |
|
#2
|
|||
|
|||
|
Code:
SELECT email FROM CRIMULTI_email group by email having count(*) >= 2 |
|
#3
|
|||
|
|||
|
Thank you very much !
![]() |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > Basic SQL query logic |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|