TOP - a LIMIT work around for SQL Server

Lukas on Mar 2nd 2008

Microsoft’s SQL Server has no implementation of the LIMIT clause as it is known from mySQL. This article is intended to explain a method using the TOP clause to imitate the behaviour of LIMIT.
Continue Reading »

Filed in SQL | 6 responses so far

JavaScript inArray()

Lukas on Jan 26th 2008

Everybody who uses JavaScript every now and then is bound to sooner or later notice the absence of an inArray function, i.e. a function that allows you to check if a certain value is an element of an array.

When I went looking for a custom function to search arrays for me I found many approaches to solve the problem. Here is my personal flavour of the inArray function, composed out of the ones I found online:
Continue Reading »

Filed in JavaScript | One response so far