SQL Simplified:Learn To Read and Write Structured Query Language focuses extensively on the implementationof Structured Query Language (SQL) rather than on database design or on theDatabase Management System's (DBMS's) that implement SQL, like many SQL books.Theeasy to follow step-by-step chapters of this book will provide beginners withthe practice necessary to develop the skills and knowledge required to programin SQL with ease. The concepts of SQL are simplified enabling anyone to quicklygrasp the fundamentals of SQL. Each chapter introduces a new concept andincludes examples, key notes and important key terms. This book also highlightsmany key differences in SQL script used in a number of different databasemanagement system platforms. Your comprehension of each chapter is testedthrough the use of quizzes and assignments. After completion of this book, youshould feel confident using SQL in any relational database environment.
"synopsis" may belong to another edition of this title.
Dr. Cecelia L. Allison is a published author, technical writer, and anonline professor. She writes and facilitates on-line SQL courses (Intro. & Intermed. SQL) that are offered on-line through hundreds ofaccredited colleges, universities, and other accredited educationalfacilities.
She wrote SQL Simplified: Learn to Readand Write Structured Query Language and SQL for Microsoft Access 1st and 2nd edition. She also facilitates on-line technical courses for several colleges on-line.
Dr. Allison has been using SQL for over 15years. Through her past and present employment as a technical specialist and software tester she has gained extensive experience in writing andimplementing SQL. She holds a Bachelor of Science in Finance, a Masterof Science in Information Systems, and a Doctor of BusinessAdministration in Management Information Systems.
SQL COURSES
Introduction to SQL: ed2go.com
Intermediate SQL: ugotclass.net
ADDITIONAL COURSES
Park University: park.edu
YOUTUBE VIDEOS
How to find "SQL VIEW" in Microsoft Access:
youtube.com/watch?v=DM-3DD7nyNY
Create Parameter Queries in Microsoft Access (SQL View):
youtube.com/watch?v=jxhiLZGt4FA
How to Execute SQL Script in SQL Server 2012:
youtube.com/watch?v=iLa_hKS6wK4
Synopsis of SQL for Microsoft Access 2nd edition:
youtube.com/watch?v=jzCpyyHFzCA
CREATE TABLE Employees
Example 1
The following SQL script creates a table named Employees with seven columns (SocialSecNum, Firstname, Lastname, Address, Zipcode, Areacode, PhoneNumber).
CREATE TABLE Employees
(
SocialSecNum CHAR (11) NOT NULL PRIMARY KEY,
Firstname CHAR (50) NOT NULL,
Lastname CHAR (50) NOT NULL,
Address CHAR (50) NOT NULL, Zipcode CHAR (10) NOT NULL,
Areacode CHAR (3) NULL,
PhoneNumber CHAR (8) NULL
);
The preceding script includes several keywords. The keywords are typed in all caps so that they can be easily identified. Although it is not necessary to capitalize keywords, it is good practice since it causes the keywords to stand out. This makes SQL script easier to read. Remember, keywords are reserved words used to interact with the database.
Notice the spacing in the CREATE TABLE script. You must separate all keywords and column names with a space. Additionally, some DBMSs require a closing semicolon at the end of SQL script to indicate where the script ends.
The CREATE TABLE keywords tell the database management system that you want to create a new table. The name (Employees) of the table must be typed directly after the CREATE TABLE keywords.
Each column (SocialSecNum, Firstname, Lastname, Address, Zipcode, Areacode and PhoneNumber) must contain a datatype and a field size. Some datatypes do not require a field size.
A datatype specifies the type of data a column can store. The field size specifies the maximum number of characters that can be entered into a cell within a column. For example, the datatype and field size for the first column (SocialSecNum) is CHAR (11). This means that the SocialSecNum column can only store alphanumeric data no more than eleven characters long.
Following the datatype and field size, specify either NULL or NOT NULL. The NULL keyword indicates that a column can be left blank when entering data in the table. The NOT NULL keywords indicate that a column cannot be left blank. The DBMS will generate an error message whenever a NOT NULL field is left blank.
Note: In Microsoft Access, when you do not state NULL or NOT NULL the column is automatically set to NULL.
The primary key is usually specified after NULL | NOT NULL. In figure 2.1, the SocialSecNum column is the primary key column. In some versions of Microsoft Access, the primary key is set as follows:
SocialSecNum CHAR (11) NOT NULL CONSTRAINT PriKey Primary Key
This method uses the CONSTRAINT keyword. You will learn more about constraints in chapter 10.
"About this title" may belong to another edition of this title.
Shipping:
FREE
Within U.S.A.
Seller: Better World Books: West, Reno, NV, U.S.A.
Condition: Good. Used book that is in clean, average condition without any missing pages. Seller Inventory # 9229828-75
Quantity: 1 available
Seller: BooksRun, Philadelphia, PA, U.S.A.
Paperback. Condition: Very Good. Ship within 24hrs. Satisfaction 100% guaranteed. APO/FPO addresses supported. Seller Inventory # 1410729745-8-1
Quantity: 1 available
Seller: ThriftBooks-Atlanta, AUSTELL, GA, U.S.A.
Paperback. Condition: Good. No Jacket. Pages can have notes/highlighting. Spine may show signs of wear. ~ ThriftBooks: Read More, Spend Less 0.8. Seller Inventory # G1410729745I3N00
Quantity: 1 available
Seller: HPB-Red, Dallas, TX, U.S.A.
paperback. Condition: Good. Connecting readers with great books since 1972! Used textbooks may not include companion materials such as access codes, etc. May have some wear or writing/highlighting. We ship orders daily and Customer Service is our top priority! Seller Inventory # S_425014797
Quantity: 1 available
Seller: SecondSale, Montgomery, IL, U.S.A.
Condition: Good. Item in very good condition! Textbooks may not include supplemental items i.e. CDs, access codes etc. Seller Inventory # 00078559101
Quantity: 1 available
Seller: BargainBookStores, Grand Rapids, MI, U.S.A.
Paperback or Softback. Condition: New. SQL Simplified: Learn to Read and Write Structured Query Language 0.7. Book. Seller Inventory # BBS-9781410729743
Quantity: 5 available
Seller: Lucky's Textbooks, Dallas, TX, U.S.A.
Condition: New. Seller Inventory # ABLIING23Mar2411530176367
Quantity: Over 20 available
Seller: PBShop.store US, Wood Dale, IL, U.S.A.
PAP. Condition: New. New Book. Shipped from UK. THIS BOOK IS PRINTED ON DEMAND. Established seller since 2000. Seller Inventory # L0-9781410729743
Quantity: Over 20 available
Seller: California Books, Miami, FL, U.S.A.
Condition: New. Seller Inventory # I-9781410729743
Quantity: Over 20 available
Seller: PBShop.store UK, Fairford, GLOS, United Kingdom
PAP. Condition: New. New Book. Delivered from our UK warehouse in 4 to 14 business days. THIS BOOK IS PRINTED ON DEMAND. Established seller since 2000. Seller Inventory # L0-9781410729743
Quantity: Over 20 available