SQL Command help

SuduuNangiya

Member
Jun 19, 2008
350
5
0
can anyone tell me the SQL command to display only records which repeating.
Ex. if there are people who were born in same day . . .
SELECT * FROM aaa WHERE ?????????????

Thanks in advance.
 

chintha4u

Well-known member
  • Mar 27, 2007
    2,601
    39
    48
    can anyone tell me the SQL command to display only records which repeating.
    Ex. if there are people who were born in same day . . .
    SELECT * FROM aaa WHERE ?????????????

    Thanks in advance.

    group by date eken deela, count eka 1ta wadi eewa gaththoth ????
     

    rasithaudayanga

    Well-known member
  • Jan 29, 2010
    1,443
    72
    48
    Sql Query

    can anyone tell me the SQL command to display only records which repeating.
    Ex. if there are people who were born in same day . . .
    SELECT * FROM aaa WHERE ?????????????

    Thanks in advance.

    Select *
    From Tablename
    Where birthday=(SELECT birthday FROM Tablename GROUP BY birthday
    HAVING ( COUNT( birthday) > 1 ))


    200% Working Already Tested
    :lol::lol::lol::lol::lol::lol: