Verification of Query

  • Scenario: table called EmailAddresses and the columns ID (int) and EmailAddress (varchar(100))

    Query:

    SELECT * FROM EMailAddresses WHERE EMailAddress IN (SELECT EMailAddress FROM EMailAddresses GROUP BY EMailAddress HAVING COUNT(*) >2;

  • john (6/16/2009)


    Scenario: table called EmailAddresses and the columns ID (int) and EmailAddress (varchar(100))

    Query:

    SELECT * FROM EMailAddresses WHERE EMailAddress IN (SELECT EMailAddress FROM EMailAddresses GROUP BY EMailAddress HAVING COUNT(*) >2;

    (SELECT EMailAddress FROM EMailAddresses GROUP BY EMailAddress HAVING COUNT(*) >2)



    Pradeep Singh

  • Thank you, so has the first part which you did not use, was that valid in previous versions or?

  • john (6/16/2009)


    Thank you, so has the first part which you did not use, was that valid in previous versions or?

    No no, i just wrote the part with error in the inner query..

    The inner query didnt have a closing braces ')' which i appended in bold (doesnt look like bold tho)

    u've to run full query.



    Pradeep Singh

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply