mysql - Select Values based on Distinct Dates -


i puzzled while now. have table phone numbers , dates(timestamp). if number exists more once particular date, number should returned once.

           date               number      2013-05-14 15:39:19     1234567890      2013-05-14 15:39:19     1234567890      2013-05-14 15:39:19     9876543210      2013-05-14 15:39:20     1234567890 

output:

           date               number     2013-05-14 15:39:19     1234567890     2013-05-14 15:39:19     9876543210     2013-05-14 15:39:20     1234567890 

i know doesn't serve need tried select * table name group date , didn't desired result expected. how should go about?

 select * table name group date,number 

sql fiddle demo


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -