-
May 22nd, 2003, 11:15 AM
#1
King of the Mermaids
SQL Sort Order
I am having a bit of trouble getting a MSAccess DB to sort using an SQL statement. Everything sorts ok up to the point where I need a column sorted in DESC order. I think I may be trying to sort 'TO much' but im not sure... here is the statement I wrote...
SELECT * FROM CentralData WHERE CentralData.ELT_PRTDT Is Null
ORDER BY CentralData.WKSTCK, CentralData.WKSLBL, CentralData.WKCST, CentralData.WKLRPC DESC, CentralData.WKCHDR, CentalData.WKITEM;
It stops sorting at CentralData.WKLRPC DESC
Any help would be appreciated..
-
May 22nd, 2003, 01:45 PM
#2
Registered User
I might be crazy, but I don't think SQL likes having spaces in the field names very much. When it hits that point of your statement, it is expecting something else. Once again, I might be crazy.
Hard work often pays off in the long run, but Lazyness always pays off now.
-
May 22nd, 2003, 03:09 PM
#3
King of the Mermaids
Thanks for the reply. I actually feel really stupid but that sql statement was correct. I was looking at a backup and not the live statement that was actually running. When I fixed that it all fell into place. Thanks though..
It didn't seem to mind the spaces. So I left them in...
-
May 23rd, 2003, 07:04 AM
#4
Geezer
-
May 23rd, 2003, 08:58 AM
#5
King of the Mermaids
-
May 23rd, 2003, 09:12 AM
#6
Geezer
... the profusion of confusion is compounded by the increase in information, without any proportional aquistion of wisdom ... Einstein (of all people!) defending his theory of relativity ! Mmmm
-
May 23rd, 2003, 11:51 AM
#7
King of the Mermaids
I can't help but wonder what Einstein would think about all the wonderful technology of today. I bet he would have some interesting theories...
NanoTechnology
The Space Time Continuim (sp)
The Klingons
hehehe..
Speaking of which.. I wonder why the Borg never attacked the Klingons or the Romulans or even the Vulcans? Hmmmmm.....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks