("SELECT SUM(NoOfVehical) FROM MyTable WHERE [City] == 'Delhi') this query is not working for getting the total vehicles in city. Table as under:
City | TypeOfVehical | NoOfVehical |
Delhi | Sedan | |
Mumbai | Sedan | |
Chennai | Sedan | |
Kolkata | Sedan | |
Bengaluru | Sedan | |
Chennai | Hatchback | |
Kolkata | Hatchback | |
Bengaluru | Hatchback | |
Delhi | Hatchback | |
Mumbai | Hatchback | |
Delhi | SUV | |
Mumbai | SUV | |
Chennai | SUV | |
Kolkata | SUV | |
Bengaluru | SUV | |
Chennai | Truck | |
Kolkata | Truck | |
Bengaluru | Truck | |
Delhi | Truck | |
Mumbai | Truck |