Before you can query data, you must design the structures that hold it. Gruber covers the fundamentals of DDL, teaching readers how to layout a database cleanly.
Which specific (e.g., PostgreSQL, MySQL, SQL Server, or SQLite) you plan to use? What is your current experience level with databases? martin gruber understanding sqlpdf better