Understand Tables and How to Create Them 98-364 Database Administration Fundamentals LESSON 2.2.

Slides:



Advertisements
Similar presentations
Copyright © by Royal Institute of Information Technology Introduction To Structured Query Language (SQL) 1.
Advertisements

Beginning SQL Tutorial Author Jay Mussan-Levy. What is SQL?  Structured Query Language  Communicate with databases  Used to created and edit databases.
Introduction to Structured Query Language (SQL)
30-Jun-15 SQL A Brief Introduction. SQL SQL is Structured Query Language Some people pronounce SQL as “sequel” Other people insist that only “ess-cue-ell”
Introduction to Structured Query Language (SQL)
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
INTERNET APPLICATION DEVELOPMENT For More visit:
CPS120: Introduction to Computer Science Information Systems: Database Management Nell Dale John Lewis.
LOGO 1 Lab_02: Basic SQL. 2 Outline  Database Tables  SQL Statements  Semicolon after SQL Statements?  SQL DML and DDL  SQL SELECT Statement  SQL.
 SQL stands for Structured Query Language.  SQL lets you access and manipulate databases.  SQL is an ANSI (American National Standards Institute) standard.
DATA MODELING AND DATABASE DESIGN
INTERNET APPLICATION DEVELOPMENT PRACTICAL ON CONNECTING TO MYSQL.
Databases in Visual Studio. Database in VisualStudio An MS SQL database are built in Visual studio The Name can be something like ”(localdb)\Projects”
Introduction to SQL Steve Perry
Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form.
15/10/20151 PHP & MySQL 'Slide materials are based on W3Schools PHP tutorial, 'PHP website 'MySQL website.
PHP MySQL Introduction. MySQL is the most popular open-source database system. What is MySQL? MySQL is a database. The data in MySQL is stored in database.
CPS120: Introduction to Computer Science Lecture 19 Introduction to SQL.
1 What is database 2? What is normalization? What is SQL? What is transaction?
Structure Query Language SQL. Database Terminology Employee ID 3 3 Last name Small First name Tony 5 5 Smith James
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2015, Fred McClurg, All Rights.
7 1 Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
6 1 Lecture 8: Introduction to Structured Query Language (SQL) J. S. Chou, P.E., Ph.D.
SQL Unit – 2 Base Knowledge Presented By Mr. R.Aravindhan.
DAT602 Database Application Development Lecture 3 Review of SQL Language.
1 DBS201: Introduction to Structure Query Language (SQL) Lecture 1.
SQL Basic. What is SQL? SQL (pronounced "ess-que-el") stands for Structured Query Language. SQL is used to communicate with a database.
SQL. คำสั่ง SQL SQL stands for Structured Query Language is a standard language for accessing and manipulating databases.
Introduction to Databases Queries CS 146. Sample Database: CANDY_CUSTOMER CANDY_PURCHASE CANDY_CUST_TYPE CANDY_PRODUCT.
Database Fundamental & Design by A.Surasit Samaisut Copyrights : All Rights Reserved.
Visual Programing SQL Overview Section 1.
SQL Jan 20,2014. DBMS Stores data as records, tables etc. Accepts data and stores that data for later use Uses query languages for searching, sorting,
Planning & Creating a Database By Ms. Naira Microsoft Access.
Understand Primary, Foreign, and Composite Keys Database Administration Fundamentals LESSON 4.2.
Selecting Data Database Administration Fundamentals LESSON 3.1a.
There are two types of MySQL instructions (Data Definition Language) DDL: Create database, create table, alter table,,,. (Data Manipulation Language) DML.
Relational Database Management System(RDBMS) Structured Query Language(SQL)
IS6146 Databases for Management Information Systems Lecture 3: SQL III – The DDL Rob Gleasure robgleasure.com.
Distribution of Marks For Second Semester Internal Sessional Evaluation External Evaluation Assignment /Project QuizzesClass Attendance Mid-Term Test Total.
Drill Consider the following tables with the following fields: Student: FName, LName, StudentID, Age, Yr, Course Grades: ID, P1, P2, P3 1.Display the.
Jennifer Widom Relational Databases The Relational Model.
Howard Paul. Sequential Access Index Files and Data File Random Access.
Introduction to Database SEM I, AY Department of Information Technology Salalah College of Technology Chapter No.3 SQL.
LM 5 Introduction to SQL MISM 4135 Instructor: Dr. Lei Li.
MySQL Tutorial. Databases A database is a container that groups together a series of tables within a single structure Each database can contain 1 or more.
Understand Data Definition Language (DDL) Database Administration Fundamentals LESSON 1.4.
Create Views Using T-SQL Database Administration Fundamentals LESSON 2.3a.
Select Complex Queries Database Management Fundamentals LESSON 3.1b.
Lec-7. The IN Operator The IN operator allows you to specify multiple values in a WHERE clause. SQL IN Syntax SELECT column_name(s) FROM table_name WHERE.
Introduction to Databases Queries CS 146. Sample Database: CANDY_CUSTOMER CANDY_PURCHASE CANDY_CUST_TYPE CANDY_PRODUCT.
1 Section 1 - Introduction to SQL u SQL is an abbreviation for Structured Query Language. u It is generally pronounced “Sequel” u SQL is a unified language.
 MySQL is a database system used on the web  MySQL is a database system that runs on a server  MySQL is ideal for both small and large applications.
Web Systems & Technologies
Understand Data Manipulation Language (DML)
Using SQL Server through Command Prompt
LESSON Database Administration Fundamentals Inserting Data.
Understand Data Manipulation Language (DML)
SQL Tutorial.
Lecturer: Mukhtar Mohamed Ali “Hakaale”
Relational Databases The Relational Model.
Relational Databases The Relational Model.
PHP and MySQL.
Structured Query Language
Introduction To Structured Query Language (SQL)
Data Management Innovations 2017 High level overview of DB
Introduction To Structured Query Language (SQL)
Microsoft Access Date.
SQL NOT NULL Constraint
SQL Tutorial Basic SQL Commands
SQL AUTO INCREMENT Field
Presentation transcript:

Understand Tables and How to Create Them Database Administration Fundamentals LESSON 2.2

Database Administration Fundamentals LESSON 2.2 Lesson Overview In this lesson, you will learn:  What is ANSI SQL syntax ?  What is a table?  Why are tables used?  How are tables created?

Database Administration Fundamentals LESSON 2.2 What is ANSI?  American National Standards Institute (ANSI)  An organization formed in1918 by a small group of engineering societies and government agencies  Originally called the American Engineering Standards Committee (AESC)

Database Administration Fundamentals LESSON 2.2 What is ANSI SQL syntax ?  Structured Query Language (SQL) was designed to manage relational databases.  See Review Lesson 1.2 for a review of SQL.  SQL syntax is the set of rules governing the structure and content of statements.  When the rules are not followed, the result is a syntax error.

Database Administration Fundamentals LESSON 2.2 What is a table?  Table—a data structure that usually consists of a list of entries, each entry being identified by a unique key and containing a set of related values.  A table is often implemented as an array of records, a linked list, or (in more primitive languages) several arrays of different data types, all using a common indexing scheme.  One record is displayed here in a table with data type labels:  Student ID is the unique item key or index.  The name, address, and city make up the rest of the record.

Database Administration Fundamentals LESSON 2.2 What is a table? (continued)  In relational databases, a data structure characterized by rows and columns, with data occupying or potentially occupying each cell formed by a row-column intersection. The table is the underlying structure of a relation. In this table, “William” is a junction of a Row and Column. The cell is called FirstName, and the data type is Vchar of size 20. These cells make up the table.

Database Administration Fundamentals LESSON 2.2 Why are tables used?  Tables organize data, making it easer to find things.  Tables form the basis of data relationships.  Tables store data that can be related to other data by a unique key or index.  The table here forms a list of data in a specific order.  The administrator chose how to form the table or its schema. (See Review Lesson 1.4.)  The key or index of this table is the Student ID.

Database Administration Fundamentals LESSON 2.2 How are tables created?  Syntax CREATE TABLE table_name (column_name1 data_type, column_name2 data_type, column_name3 data_type,...)  Sample code—creates a table called student_info with five fields/columns CREATE TABLE student_info (student_id char(9) not null, first_name char(20) not null, last_name char(20) not null, address char(40) not null, city char(20) not null)

Database Administration Fundamentals LESSON 2.2 Quiz Create a table that will store the students’ final grades for this class. Include the table name and a minimum of four fields. Extra credit activity: Insert two more fields that would add value and usefulness to this table. Justify the usefulness of the additional two fields.