The ExecuteScalar method is suitable for retrieving a ___________ value from a SELECT statement.

  • Single
  • Multiple
  • Aggregate
  • Composite
The correct option is Option 1: Single. The ExecuteScalar method in ADO.NET is used to execute a SQL query that returns a single value, such as a count, sum, average, or any other aggregate or scalar value, typically from a SELECT statement with a WHERE clause.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *