Flag%20question%3A%20Question%202%0AQuestion%202%0A3%20pts%0AWhen%20selecting%20from%20a%…
- User
Flag%20question%3A%20Question%202%0AQuestion%202%0A3%20pts%0AWhen%20selecting%20from%20a%20table%2C%20which%20of%20the%20following%20is%20true%20about%20the%20SQL%20SELECT%20statement%3F%0AGroup%20of%20answer%20choices%0AWHERE%20and%20FROM%20are%20both%20required%20clauses%0AWHERE%20is%20optional%2C%20but%20FROM%20is%20required%0AWHERE%20is%20required%20but%20FROM%20is%20optional%0AWHERE%20and%20FROM%20are%20both%20optional
- Assistant
In SQL, when using the SELECT statement to retrieve data from a table, the correct answer is:
WHERE is optional, but FROM is required.
To elaborate, the FROM clause is necessary to specify the table(s) from which to select data, while the WHERE clause is used to filter records but is not mandatory in every selection. Thus, options requiring both clauses or considering FROM optional are incorrect.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.