SQL: The basics and beyond