![]() |
|
Archives of the TeradataForumMessage Posted: Fri, 08 Oct 2004 @ 23:43:37 GMT
And a small variation on the theme for all the old Oracle guys who like numbers:
SELECT databasename,
CASE
WHEN accountname = '$M2$&LAdhoc'
THEN SUBSTR(accountname,7)
ELSE SUBSTR(accountname,6)
END
FROM dbc.databases
ORDER BY 2;
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||