Write a MySQL query from a two-table schema
""" Table departments, columns = [DepartmentId, DepartmentName] Table students, columns = [DepartmentId, StudentId, StudentName] Create a MySQL query for all students in the Computer Science Department """ ## Notes - Source's point: the table names and columns in the prompt let the model write a valid join without seeing the database. - Source gives no example output, so we have no example reply to quote. We did not run this prompt. - Add the real column types and the join keys to the schema lines for harder queries; check the SQL before running it on live data.
Works with: Any chat LLM (GPT-4 used in the source)