Skip to content

Another way of joining table without JOIN syntax in SQL

28 April 2009

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 JOIN member
     ON customer.member_id = member.id

Here is the magic of using WHERE syntax:

SELECT customer.name, member.name
FROM customer, member
WHERE customer.member_id = member.id

Though the syntax doesn't look shorter enough, but it will be very handy for some SQL statement that joins a lot of tables.

This trick works fine with MySQL and HSQLDB. I haven't tried on another engine yet.

Tell me if i made a mistake. :) thanks

The Easiest Way of Making Money with Google Adsense

11 April 2009

If you have Google Adsense, I bet you do know how hard it is to make money with it. You have to master all of webby things such as analyzing visitors, maintain your traffic, SEO, writing nice article, and a dozen of skills which to make your website a making money website.

Google Adsense is hard, but if you keep focus and learning how it works, making money is no more just like flapping your hand. Imagine how beautiful your life is by seeing those earning digits jumping everyday...

Here I want to share the fastest and the easiest way to make money with Google Adsense. But before that, you might want to see how much I have earned today. See the screenshot below:

Google Adsense

Click here for the sake of your better life!

Outbound to Pulau Putri

29 March 2009

Update: Click here to see photos

Yesterday I was invited by Atek to go to Pulau Putri today. He also asked me to invite the others, the more the merrier. Well, I don't know what is he up to, suddenly invite all of us.

Today's weather is sunny, it's undoubtedly a great day for playing at the beach and adventuring. Pulau Putri, I never been there before. So I did a search and I found an article that wrote about Pulau Putri.

By the way, this is my third outbound to island outside Batam. The first time was to Belakangpadang with Nengsih (her hometown), Kristian, and some of my friends (ouch, I forgot some, it was 6 years ago). The second was to Pulau Panjang with Aheng, Apek, Atek, Jimmy, Michael, Stone, and Apek's parent.

2 hours more to go there soon...

Today’s Big Events and Trivial Things

20 March 2009

Big events:

  • According to Chinese Calendar, today (precisely at 11:44 UT or 18:44 West Indonesia Time which is my local time) is the middle of spring season or scientifically called Vernal Equinox. It is an astronomical event where the Sun is vertically above a point on the Equator, when duration of daytime is roughly equal to nighttime.
  • Today is the first Earth Day of the year (the second Earth Day is on April 22). Wow, there are 2 Earth Days, I just knew it. I think only just few people know it.

Trivial things:

  • Today is my last day of membership at a fitness center. Last year, my friends (Apek, Atek, Jim, Stone) and I registered and became member of Blue Horizon Fitness Center which is located at Planet Holiday Hotel, 5th floor. The reason why we chose there, well, I forgot. Even we (I think only myself) don't seem to be so fit enough, but during those days we had lotsa fun, and done some crazy things. Today we decided to go there for the last time (don't know when we will be there again), and will be taken some photos for memento.
  • Today is the last day that we (yes, we again: Apek, Atek, Jim, Stone, and me) supposed to be prepared all stuff, because we have planned to go traveling tomorrow. But, due to some lame reason, 2 persons can't go. It's postponed to the next few months.

Sunsets in last 4 months

28 February 2009

I took these sunset scenes in last 4 months. Here I share:

Sunset in November '08
Sunset on 14 Nov 2008

Sunset in December '08
Sunset on 26 Dec 2008

Sunset in January '09
Sunset on 23 Jan 2009

Sunset in February '09
Sunset on 18 Feb 2009