Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Player (PlayerID.int, FirstName: nvarchar(25), LastName: nvarchar(25), Nationality: varchar(25), Birthdate: smalldatetime, Age: smallint, Position: varchar(25)) Team (TeamID:int, Name: nvarchar(50), City: nvarchar(25)) PlayerTeam (PlayerID:int, TeamID: int, Season
Player (PlayerID.int, FirstName: nvarchar(25), LastName: nvarchar(25), Nationality: varchar(25), Birthdate: smalldatetime, Age: smallint, Position: varchar(25)) Team (TeamID:int, Name: nvarchar(50), City: nvarchar(25)) PlayerTeam (PlayerID:int, TeamID: int, Season varchar(5)) Match (MatchiD:int, HomeTeamID:int, VisitingTeamID: int, DateOfMatch: smalldatetime, Week: tinyint) Goals (MatchID: int, PlayerlD. int, IsOwnGoal: bit, Minute: tinyint) Notes: Table Match stores data only for season 2013-2014. Table Goals stores data only for season 2013-2014. 1) Table creation and data insertion. a) Run the following queries to create the tables Standings and TransactionLog in your database. Create Table Standings Pos tinyint, [Team Name] nvarchar(30), GP tinyint, W tinyint, I tinyint, L tinyint, GF smallint, GA smallint, GD smallint, Pts tinyint ) Create Table TransactionLog ( LogID int identity(1,1) primary key, LogTime datetime, LogType char(1), BeforeState nvarchar(500), AfterState nvarchar(500), ) b) In only one "insert into" statement; write a query to insert the output data of your stored procedure sp_GetStandings UpToDate(20140715') that you have in homework #3 into table Standings
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started