In SQL, a SELECT statement is needed to retrieve specific information from a table. What is the correct SELECT statement to retrieve the commission percentage and year of hire for a salesperson with number 186?

A) SELECT COMMPERCENT, YEARHIRED FROM SALESPERSON WHERE SPNUM = 186

B) SELECT COMMPERCENT, YEARHIRED FROM SALESPERSON WHERE SALESPERSON.SPNUM = 186

C) SELECT COMMPERCT, YEARHIRE FROM SALESPERSON WHERE SALESPERSON.SPNUM = 186

D) SELECT COMMPERCT, YEARHIRE FROM SALESPERSON WHERE SPNUM = 186

Answer :

Final answer:

The correct SQL statement to retrieve the commission percentage and the year of hire for a salesperson with number 186 is SELECT COMMPERCENT, YEARHIRED FROM SALESPERSON WHERE SPNUM = 186. This statement uses the correct column names and includes a proper WHERE clause.

Explanation:

In SQL, appropriate formatting and syntax is crucial. The statement you're asking about aims to select specific information about a salesperson with number 186 from a certain table. Specifically, you want to pull the commission percentage and year of hire for that salesperson. The correct SQL statement for this request would be: SELECT COMMPERCENT, YEARHIRED FROM SALESPERSON WHERE SPNUM = 186. This particular statement spells the column names correctly and includes the correct syntax for a WHERE clause to specify the salesperson you're interested in.

Learn more about SQL Statements here:

https://brainly.com/question/34599070

#SPJ11