|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi there,
I wonder if someone could help me with an SQL statement, I basically need to extract all fields of each record in the database where it finds a different email address, something like this : SELECT * FROM Enquiries WHERE DISTINCT Email What is the correct way of doing this? Any help would be sooo appreciated Thanks
|
|
#2
|
||||
|
||||
|
Try something like this
Code:
SELECT * FROM Entries WHERE EmailAddress IN ( SELECT DISTINCT EmailAddress FROM Enquiries ) |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > Help using DISTINCT command in SQL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|