Question: 5. The tblCities table contains a numeric field named Population. Which of the following statements calculates the total population of all of the cities in

5. The tblCities table contains a numeric field named Population. Which of the following statements calculates the total population of all of the cities in the table?

a. Dim intTotal As Integer =

Aggregate city In CitiesDataSet.tblCities Select city.Population Into Sum()

b. Dim intTotal As Integer =

Sum city In CitiesDataSet.tblCities Select city.Population Into Total()

c. Dim intTotal As Integer =

Aggregate CitiesDataSet.tblCities.city Select city.Population Into Sum()

d. Dim intTotal As Integer =

Sum city In CitiesDataSet.tblCities.Population

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock