Writing a an SQL query, even if you know SQL, is not an easy task. You need to know a lot of things before you get any meaningful results - for instance, what tables, columns and joins to use.