The following SQL statements will create two tables with some columns called "Books" and "Authors".
- USE Library;
- CREATE TABLE Books
- (
- book_ID int identity(1,1) PRIMARY KEY
- , title varchar(50) NOT NULL
- , genre varchar(25)
- , description varchar(100)
- );
- CREATE TABLE Authors
- (
- author_ID int identity(1,1) PRIMARY KEY
- , first_Name varchar(25) NOT NULL
- , last_Name varchar(50) NOT NULL
- );
The tables will be created with some columns inside of them. If you don't understand some of the syntax, just post a comment and I'll try to reply to it either directly or with a post explaining that topic.
No comments:
Post a Comment