Skip to content

Tag Archives: Programming

Another way of joining table without JOIN syntax in SQL

28-Apr-09

We often use JOIN syntax for joining 2 or more tables in SQL. Such as INNER JOIN, OUTER JOIN, etc. But here I found another way of joining table that much like INNER JOIN, that is by tricking WHERE syntax.
Below is the example of INNER JOIN between table Customer and Member:

SELECT customer.name, member.name
FROM customer INNER [...]

PHP: Convert If to Switch

23-Dec-08

I have been being asked by some friends of mine, that is in PHP language how to convert If statement into Switch statement (in some cases, using Switch is for shortening code).
At first, I thought that Switch was just only for ‘equal’ comparison. But actually it is more than just equal. So I did a [...]