Tuesday, October 23, 2007

What kind of join am I? (example SQL code)

Create Table Fred
( TheID INTEGER
, TheName VARCHAR(20)
)

Create Table Jobs
( TheID INTEGER
, TheJob VARCHAR(20)
)

INSERT INTO Fred VALUES (1, 'Fred')
INSERT INTO Fred VALUES (2, 'Freddy')
INSERT INTO Fred VALUES (3, 'Fredrick')

INSERT INTO Jobs VALUES (1, 'Boss')
INSERT INTO Jobs VALUES (4, 'Slave')

SELECT F.TheID, F.TheName, J.TheID, J.TheJob
FROM Fred F
INNER JOIN Jobs J On J.TheID = F.TheID

SELECT F.TheID, F.TheName, J.TheID, J.TheJob
FROM Fred F
RIGHT JOIN Jobs J On J.TheID = F.TheID

SELECT F.TheID, F.TheName, J.TheID, J.TheJob
FROM Fred F
LEFT JOIN Jobs J On J.TheID = F.TheID

Friday, October 12, 2007

Tuesday, October 02, 2007

Now we have a medical reason to eat chocolate

BBC NEWS | Health | Chocolate 'aids fatigue syndrome':
Patients in a pilot study found they had less fatigue when eating dark chocolate with a high cocoa content than with white chocolate dyed brown. Researchers from Hull York Medical School said the results were surprising but dark chocolate may be having an effect on the brain chemical serotonin.

Friday, September 28, 2007

Fujitsu to acquire Infinity

ComputerWorls article

Strap yourselves in - this could be an interesting ride.

BTW "reporting from the edge of Fujitsu" is not quite the kewl tag line I am looking for.

Friday, June 22, 2007

Real-time Web Monitor

Real-time Web Monitor: "Akamai monitors global Internet conditions around the clock. With this real-time data we identify the global regions with the greatest attack traffic, cities with the slowest Web connections (latency), and geographic areas with the most Web traffic (traffic density)."

Monday, May 21, 2007

SQL Server: JOIN vs IN vs EXISTS - the logical difference

SQL Server: JOIN vs IN vs EXISTS - the logical difference:
There is a common misconception that IN behaves equaliy to EXISTS or JOIN in terms of returned results.
This is simply not true. To see why not, let's review what each statement does.

IN: Returns true if a specified value matches any value in a subquery or a list.
Exists: Returns true if a subquery contains any rows.
Join: Joins 2 resultsets on the joining column.

Thursday, May 10, 2007

Origami to the max

foldschool - cardboard furniture: "foldschool is a collection of free cardboard furniture for kids, handmade by you. The downloadable patterns can be printed out with any printer. Follow the instructions and assemble a stable piece of furniture."

Wednesday, March 28, 2007

80's geek humour

ThinkGeek :: Kitt is a Cylon
Others are afraid to say it but we know the truth. If it's got a sweeping red eye, it's not to be trusted.

Monday, March 26, 2007

Cloning Ron Jacobs

ARCast NZ #1
"How to convince management that letting a Developer become an Architect is a good idea".


great to hear a kiwi accent on a global issue.

Thursday, March 22, 2007