NYC Borough statistics results
Let's see the results of the dbo.cuspBoroughRideStats stored procedure you just created.
Bu egzersiz
Writing Functions and Stored Procedures in SQL Server
kursunun bir parçasıdırEgzersiz talimatları
- Declare
@SPResultsas aTABLEwith the following columns ofnvarchar (30)data types;Weekday,Borough,AvgFarePerKM,RideCountandTotalRideMin. - Execute
dbo.cuspBoroughRideStatsand insert the results into@SPResults. - Select all the records from
@SPresults.
Uygulamalı interaktif egzersiz
Bu örnek kodu tamamlayarak bu egzersizi bitirin.
-- Create SPResults
___ ___ ___(
-- Create Weekday
___ nvarchar(30),
-- Create Borough
___ nvarchar(30),
-- Create AvgFarePerKM
___ nvarchar(30),
-- Create RideCount
___ nvarchar(30),
-- Create TotalRideMin
___ nvarchar(30))
-- Insert the results into @SPResults
___ ___ ___
-- Execute the SP
___ ___.___
-- Select all the records from @SPresults
___ ___
___ ___;