October 2002
Beginner
864 pages
18h 41m
English
All right, enough talk. To actually run the examples today, you will need to build the following database tables in a database named BASEBALL. This database is used in today's Transact-SQL examples.
The BASEBALL database consists of three tables used to track typical baseball information: the BATTERS table, the PITCHERS table, and the TEAMS table.
NAME char(30) TEAM int AVERAGE float HOMERUNS int RBIS int
The preceding table can be created using the following Transact-SQL statement:
1> create database BASEBALL on default 2> go 1> use BASEBALL 2> go 1> create table BATTERS ( 2> NAME char(30), 3> TEAM int, 4> AVERAGE float, 5> HOMERUNS int, 6> RBIS int) 7> go
Read now
Unlock full access