I have a summary table return data from a master table. I am trying to update some of the summary data from values in the master table as such:
The #summary temporary table is creating summarised data about trips undertaken by a car. There can be multiple trips for each car with each trip having a start and stop time. The CarData table contains all the detailed car data like speed and position etc. It says that the #summary.VehicleId, #summary.Start and #summary.Stop inside the subquery cannot be found. I am using MS SQL Server 2000. Please can you help? Thanks, Robert asked Nov 18 '11 at 11:09 zaroblan |
I believe you have to move the where condition to the outside of the nested query. Inside the brackets/nested query you should just show the top 1
answered Jan 08 '12 at 09:52 Jan |