Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
There is no way to get out of the twit :)
Message
From
05/01/2009 04:03:25
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01370897
Message ID:
01370956
Views:
15
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>Interesting problem http://forums.asp.net/p/1367302/2845866.aspx#2845866 and limno's solution.

Naomi,
But there is a problem there, which made me think none of the solutions is right. Ordering by DateMade which sounds to be a datetime value. In that case if on a given DateTime there could be 2 or more entries then which one is the last? SQL server doesn't make a guarantee on which one would be returned from call to call. That mightr be considered as an incostinecy then. Supposing DateMade could be used to uniquely identify rows then a solution like this might be better:
select TwitterID, Twitter, DateMade
    from Tweets t1
    inner join 
        (SELECT min(DateMade) as fDate, max(DateMade) as lDate FROM Tweets) t2
    on t1.DateMade in (t2.fDate,t2.ldate)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform