We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,610 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Order by descending date yyyy/mm/dd hh:mm:ss.ssss

I need to order these dates in descending order (last should be first) and in fact how they now appear. However they do not necessarily appear like those so I need a SQL Order By clause to order these descending:

2012-01-23 09:53:24.097105

2012-01-20 17:31:57.565458

2012-01-20 17:01:09.154587

2012-01-20 16:28:40.685735

2012-01-16 12:03:54.99954

Here is my SQL (which returns an error):

SELECT
    TransmissionSend.CreateTimestamp
FROM
    Interface_SFAX.TransmissionSendItem
ORDER BY TransmissionSend.CreateTimestamp DESC

I need help creating a working SQL query that displays the times in descending order... Any help would be great!

Thanks!!

2
Contributors
3
Replies
4 Days
Discussion Span
10 Months Ago
Last Updated
4
Views
Question
Answered
PhilEaton
Junior Poster
119 posts since Aug 2010
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 1
Question Self-Answered as of 10 Months Ago

Your SQL statement above shows you selecting from a different table than your ORDER BY field.

TransmissionSend vs TransmissionSendItem.

JorgeM
Industrious Poster
4,164 posts since Dec 2011
Reputation Points: 297
Solved Threads: 567
Skill Endorsements: 119

Right :) It was a pretty stupid mistake.

PhilEaton
Junior Poster
119 posts since Aug 2010
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 1

Not a problem, sometimes a fresh pair of eyes is helpfull.

JorgeM
Industrious Poster
4,164 posts since Dec 2011
Reputation Points: 297
Solved Threads: 567
Skill Endorsements: 119

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0647 seconds using 2.72MB