Table relationships
How to Find Table Relationships When Foreign Keys Are Missing
Use Investigate Relationships to identify, validate, and confirm likely table connections when foreign-key metadata is missing or incomplete.
Read guideGuides
Practical guides for understanding database structures, reviewing table relationships, and writing more accurate SQL.
Table relationships
Use Investigate Relationships to identify, validate, and confirm likely table connections when foreign-key metadata is missing or incomplete.
Read guideSQL generation
Start with the tables you know are relevant, investigate disconnected tables, review bridge tables, and check the joins SQL Mocker generates.
Read guideExisting SQL
Learn how to understand an existing query, review its structure, adjust output columns and update it as database requirements change.
Read guideSQL explanation
Learn how to break a SQL query into its purpose, data flow, joins, filters, calculations and output columns.
Read guideAI SQL generation
Use extracted schema metadata and natural-language questions to generate SQL tailored to your database without connecting it to AI.
Read guide