Multiple choice technology mainframe

Which SQL statement is used to extract data from a database?

  1. OPEN

  2. GET

  3. INTO

  4. SELECT

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

SELECT is the fundamental SQL statement used to retrieve and extract data from database tables. It specifies which columns to retrieve and from which tables, optionally with filtering, sorting, and aggregation. OPEN is for cursors, GET is not a SQL keyword in this context, and INTO is used for specifying output variables in embedded SQL, not for extraction itself.