T-SQL function calls

Posts   
 
    
SLJ
User
Posts: 3
Joined: 19-Sep-2005
# Posted on: 23-Dec-2005 11:10:17   

Is there any way to generate a query looking something like this:

SELECT * FROM myTable ORDER BY CONVERT(DATETIME, REPLACE(myTime, '.', ':'), sunglasses

or

SELECT *, CONVERT(DATETIME, REPLACE(myTime, '.', ':'), sunglasses AS myDateTime FROM myTable ORDER BY myDateTime

The problem is, that I am having a column containing time values in the following format:

hh.mm (9.00, 9.30, 15.00 etc.)

And I want to be able to sort on these values.

I am using SelfServicing with SQL Server 2000.

/Stefan L. Jensen

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 23-Dec-2005 16:49:39   

That's not supported yet, but you can do this query in a database view and use it from within LLBLGen Pro as a TypedView or as an Entity.