[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[],[],null,["# sql_foreign_key\n\n\u003cbr /\u003e\n\n| `sql_foreign_key` should be avoided as of Looker 3.16.\n|\n| Use [`foreign_key`](/looker/docs/2512/reference/param-explore-join-foreign-key) instead.\n\nUsage\n-----\n\n\u003cbr /\u003e\n\n```\nexplore: explore_name {\n join: view_name {\n sql_foreign_key: A SQL clause ;;\n }\n}\n```\n\n\u003cbr /\u003e\n\nDefinition\n----------\n\nThe `sql_foreign_key` parameter specifies a SQL statement that produces a foreign key."]]