TweetRecently, I got a situation where I needed to select only the first 50% (half) records from a database table. The constraint was that I could not use programming language to add a variable to the MySQL limit clause. Under normal circumstances the code would look something like this PLAIN TEXT PHP: // Connect to [...]