5 results for technology, sql...

Not in vs. Outer join Performance

posted by Jake on under Performance

I was running an SQL query today and it was sooooo slow. So slow, in fact, that it never returned. I asked the DBA, Reed, who built the table what might be up, and he informed me that it was not indexed. And proceeded to show me some cool stuff I could do to actually get my query to return. In the end, it was a comparison between the "not in" operator and a "left join".

Count number of characters w/ SQL

posted by Jake on under Data & Databases

There's no pre-defined method to count the number of occurrences of a certain character in a database table column using SQL. There's a quick and dirty way to get it done however. In my case, I wanted to figure out how many lines existed in a column that held address information, separated by line breaks. Here's a spot of code that helped from the friendly neighborhood DBA, Reed.

MySQL on Ubuntu Linux 8

posted by Jake on under Operating Systems

Almost any interesting application nowadays uses a database to store its goodies. One of the most popular is the wildly-successful and generally good-looking MySQL database. Hopefully it stays true to its core (and free!) now that Sun has acquired it. Here's a tidbit on how to get it running on Ubuntu.