Honestly I have no clue what you trying to say, can you please be divulge more details and especially the relevant code / SQL query you are dealing with.
Also on what basis are you reorganizing your records every week, you have just shown us how it should appear not why or the Logic behind it.
Also please keep in mind to read essays like these , they will be very helpful in teaching you how to construct your questions so that more people will actually pay attention to you.
stephen84s
Nearly a Posting Virtuoso
1,443 posts since Jul 2007
Reputation Points: 668
Solved Threads: 154
Honestly I have no clue what you trying to say, can you please be divulge more details and especially the relevant code / SQL query you are dealing with.
I kind of think he's trying to make us write those.
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
if you want to sort your output based on the data you already have, there is no need to add another column.
read it into an array of objects and sort those before printing
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
An "order by" clause ?
Your question has nothing to do with any programming language, what-so-ever. Find an SQL forum.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
you might want to read this answer first.
obviously, masjiade did more effort into reading your code than I did
An "order by" clause ?
Your question has nothing to do with any programming language, what-so-ever. Find an SQL forum.
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
What about it? This is not an SQL forum, and your's is an SQL question.
As I have already said
Find an SQL Forum.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
What about it? This is not an SQL forum, and your's is an SQL question.
As I have already said
Find an SQL Forum.
Well, our "friend" Aamit took your advice literally and posted in 4 out 5 options of Database section, on top of that he also posted in PHP! (these been of course all deleted beside one in MySQL section, FORUM FLOODING Aamit)
I bet fiver on that he will come back with question like "Why auto increment column doesn't work properly after I delete some rows from my table?"
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
http://forums.oracle.com/forums/message.jspa?messageID=3167957#3167957
Here i idea but how to change in mysql syntax
by STOP BUGGING US and do a little search on MySQL syntaxis.
and if you're too lazy for that, ask your questions on an SQL FORUM, so they can make the choice to either help you, or ignore you, since you're obviously not planning on doing much effort yourself
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494