1/28/2008

Find duplicate rows in SQL

Filed under: Developing — Guus @ 11:54 am

Sometimes you need to know for sure that a column value is only used once in a table. Example: you don’t want to have more then 1 record with a social security number. Or maybe you are searching for a duplicate GUID (which BTW should be globally unique). Browsing by hand is not an option: the table is too large. And also the values to compare are difficult to read.

There is only 1 one way to tell for sure, use SQL:

SELECT * from <tablename> where __guid in (
    SELECT __guid
    FROM <tablename>
    GROUP BY __guid
    HAVING count(__guid) >= 2
)
1/1/2008

Terugblik op 2007 (1)

Filed under: Humoristic — Guus @ 11:08 pm

(Sorry Dutch only!) Nu ik die GoogleVideo en YouTube eindelijk werkend heb binnen Word Press, maak ik gelijk even een inhaal slag met leuke dingen die op TV te zien waren en nog wel de moeite waard zijn om eens terug te zien. Ik begin maar even met wat me nu te binnen schiet. Toevalligerwijs beide in het zelfde genre: Hans Teeuwen en Jochem Myjer.

Hans Teeuwen was te gast bij de meiden van Halal en zorgde geheel op eigen wijze voor een spraakmakend televisie moment:

En dan Jochem. Hij was te gast bij de Mike en Thomas show. Hij krijgt de opdracht om een act op te voeren met 8 verschillende karakters. En dat doet hij natuurlijk weergaloos:

Als je een ander leuk videotje weet dat je van 2007 is bijgebleven zie ik ze graag tegemoet via de comments.. :-)

Happy new year!

Filed under: Humoristic — Guus @ 9:55 pm

I wish you the very best and a very prosperous 2008. May all your wishes come true. It’s a new beginning of a year, so this is also the time to speak about new intentions. One of the things I want to improve is my blogging skills :-) In other words: posting more frequently!

I installed the Windows Live Writer to help me with this. I tested this tool when it was in the Beta phase, it was then already nice to work with. Now it’s even better and I could find some nice plugins for inserting video, flickr image links and code samples.

On the new year’s eve party a friend of mine showed a nice 6 min. video ‘Evolution of Dance’:

His name is Judson Laipply and he dances like a pro. Heheh, I really like his moves on Michael Jacksons’ Thriller….

When really in trouble..

Filed under: Common interest — Guus @ 9:18 pm

You can always try to beg for a good cause..  smile_tongue

familykilledbyninjas