Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieve correct data from table

Status
Not open for further replies.

RicardoMatos

Programmer
Jul 24, 2009
1
0
0
PT
Hi there! I'm having a little problem with a mysql table.
Here's the thing: I have a table to store announcements. When retrieving data from the table, if more than one record is found on a same day, repet only the announcent and not the time and date posted, like this:

July 24 2009
-> Some text......
-> Some text 2.....
July 23 2009
-> Some other text

Not like this

July 24 2009
-> Some text......
July 24 2009
-> Some text.....

Any help???
 
first, you have a mysql question but you posted in the ANSI SQL forum

second, the cosmetic manipulation of query results should be done in your front-end application language, not sql

the query should simply return the results like this --

July 24 2009 Some text......
July 24 2009 Some text 2.....
July 23 2009 Some other text

note that query results are actually a table

your front-end app then re-arranges this whichever way you need to see it


r937.com | rudy.ca
Buy my new book Simply SQL from Amazon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top