I was exploring the new hype (promoted by Robert Scoble heavily) today, I found Facebook Developers Documentation very interesting. Facebook API can be queries using FQL – Faceboook Query Language, which is similar to SQL.
Facebook list following advantages of FQL:
A sample query in FQL looks like
SELECT concat(first_name, substr(last_name, 0, 1), " is from "
UPPER(hometown_location.city), ", yo", status
WHERE uid IN (
WHERE uid1 = [uid])
AND strlen(hometown_location.city) > 0
AND status.time > now() - 3600*6
Refer the FQL documentation for table list which can be used in FROM clause for query as well functions and operators allowed in FQL. FQL does not support complex tables joins yet. I am quite impressed with the new attempt to have SQL like query in facebook.
Reference : Pinal Dave (http://blog.SQLAuthority.com)