If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Group by date

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-25-09, 16:21
shtorrent00 shtorrent00 is offline
Registered User
 
Join Date: May 2009
Posts: 2
Group by date

hello

I have this table, with two columns, one contains email adresses and the other contains the date

email date

1@g.com date1
3@g.com date1
2@g.com date2

I need a mysql query that outputs this:

date1

1@g.com
3@g.com

date2

2@g.com

thanks in advanced.
Reply With Quote
  #2 (permalink)  
Old 05-25-09, 20:02
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
no, that's a cosmetic re-arrangement of data which should be provided by a very straightforward and simple query

do that in your application language, not in sql
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 05-26-09, 12:04
shtorrent00 shtorrent00 is offline
Registered User
 
Join Date: May 2009
Posts: 2
thank you, Ill follow your advise and tell you later.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On