090978.org - A weblog about developing umbraco - an open source .NET based Content Management Platform, written by Niels Hartvig. Click here to get back to the frontpage of the weblog

9.02.2005
Damn, ugly sql :-) Permanent link to this post with (0 comments )
I made an sql query which almost has potential of a daily wtf. I was curious of how many different top level domains that had downloaded umbraco, which should be quite easy - but oh no. T-SQL doesn't provide a LastIndexOf method, so it was time to be creative - and then I stumbled on the "reverse" method, so how about this:
select distinct reverse(substring(reverse(email),0, charindex('.', reverse(email))))

0 Comment(s)...


Comments: Post a Comment


Older stuff here...

empty gif for design I love umbraco... Click here to go to the developer site

More banners here...


To the weblog frontpage
Email / Contact info
umbraco - my company
Call me through Skype
Blog archive
RSS Feed RSS Feed





commonme.org
publicMIND
urgent.dk
asynkron
Hr. Röser
Interbreed
OpenLife
Loudthinking
BlogBot.dk



Tim O'Reilly - and his books
steve mcconnel
joel spolsky
steve jobs
bruce eckel


Blogger for peace - support the opposition against the USA war for oil

This work is licensed under a Creative Commons License

empty gif for design
empty gif for design empty gif for design empty gif for design