Database Fundamentals/Introduction
Appearance
This lesson introduces database concepts.
Objectives and Skills
[edit | edit source]Objectives and skills for the database concepts portion of Microsoft Exam 98-364 Database Fundamentals include:[1]
- Understanding core database concepts
- Understand relational database concepts
- Understand what a relational database is, the need for relational database management systems (RDBMS), and how relations are established
- Understand how data is stored in tables
- Understand what a table is and how it relates to the data that will be stored in the database; columns/fields, rows/records
- Understand data definition language (DDL)
- Understand how T-SQL can be used to create database objects, such as tables and views
- Understand data manipulation language (DML)
- Understand what DML is and its role in databases
- Understand relational database concepts
Readings
[edit | edit source]- Wikipedia: Database
- Wikipedia: Relational database
- Wikipedia: SQL
- Wikipedia: Data definition language
- Wikipedia: Data manipulation language
Multimedia
[edit | edit source]- Microsoft Virtual Academy: Introduction to Core Database Concepts
- YouTube: Relational Database Concepts
- YouTube: Intro to SQL
- YouTube: SQL Data Definition Language
- YouTube: SQL Server Management Studio Intro
Activities
[edit | edit source]- Set up an environment to learn about relational databases:
- Microsoft SQL Server 2014:
- Watch YouTube: How To Download and Install Microsoft SQL Server 2014 management studio.
- Download Microsoft: Microsoft SQL Server 2014 Express.
- Install Microsoft SQL Server 2014 Express and SQL Server Management Studio on your computer.
- Microsoft AdventureWorks Sample Database:
- Watch YouTube: Install Adventure Works 2014 Sample Database SQL Server 2014.
- Download Microsoft: AdventureWorks Sample Database and SQL Server Script.
- Install Microsoft Adventureworks Database in SQL Server on your computer.
- Navigating Microsoft SQL Server 2014:
- Watch YouTube: Microsoft SQL Server 2014 - Introductory Tutorial.
- Read Tutorial: SQL Server Management Studio.
- Practice learning how to use Microsoft SQL Server 2014 and SQL Server Management Studio on your computer.
- Microsoft SQL Server 2014:
- Generate a script from the AdventureWorks database to view the database and tables scripts:
- Watch YouTube: How to generate scripts for complete Microsoft SQL Server database (including data).
- Read Microsoft: Generate a Script (SQL Server Management Studio).
- Practice downloading either a database script or table script to identify DDL (use, create, alter, drop, truncate, delete) and DML (select, insert, update, delete, merge) commands.
- Create an Entity Relationship (E-R) diagram to display database relations:
- Watch YouTube: SQL Server Database Diagram in SQL Management Studio.
- Read Microsoft: Open Database Diagram Designer (Visual Database Tools).
- In the E-R diagram, identify the displayed tables, columns and relationships.
- In the Object Explorer, click on the AdventureWorks database to expand folders to display database structure:
- Watch YouTube: Exploring SQL Server Management Studio.
- Read Microsoft: Manage Objects By Using Object Explorer.
- Practice displaying and examining the database tables, columns and data.
Lesson Summary
[edit | edit source]- A database is an organized collection of data.[2]
- A database is a collection of schemas, tables, queries, reports, views and other objects.[3]
- A query language is a computer language used to make queries (or questions about data) in databases and information systems.[4]
- A database index is a data structure that improves the speed of data retrieval operations on a database table. Indexes are used to quickly locate data without searching every row in a database table every time a database table is accessed.[5]
- A database server is a computer program that provides database services to other computer programs or computers as defined by the client–server model.[6]
- A database management system (DBMS) is a computer software application that interacts with the user, other applications, and the database itself to capture and analyze data. A general-purpose DBMS is designed to allow the definition, creation, querying, update, and administration of databases.[7]
- A flat file database is a database which is stored on its host computer system as an ordinary flat file.[8]
- A hierarchical database model is a data model in which the data is organized into a tree-like structure. This model mandates that each child record has only one parent, whereas each parent record can have one or more child records.[9]
- A database table is a collection of related data held in a structured format within a database consisting of fields (columns), and rows.[10]
- A relational database is a database based on the relational model proposed by E.F. Codd in 1970 where data is stored into one or more tables (or "relations") of columns and rows, with a unique key identifying each row.[11]
- A database constraint restricts the data that can be stored in relations. The two principal rules for the relational model are known as entity integrity and referential integrity.[12]
- A primary key uniquely specifies a tuple within a table. In order for an attribute to be a good primary key it must not repeat.[13]
- A foreign key is a field in a relational table that matches the primary key column of another table. The foreign key can be used to cross-reference tables. Foreign keys do not need to have unique values in the referencing relation. [14]
- SQL Server Management Studio (SSMS) is a software application used for configuring, managing, and administering all components within Microsoft SQL Server. The tool includes both script editors and graphical user interface tools which work with objects and features of the server.[15]
- Xquery is a query and functional programming language that queries and transforms collections of structured and unstructured data.[16]
- SQLCMD is a command line application that comes with Microsoft SQL Server, and exposes the management features of SQL Server. It allows SQL queries to be written and executed from the command prompt.[17]
- Transact-SQL Transact-SQL (T-SQL) is Microsoft's and Sybase's proprietary extension to SQL. T-SQL expands on the SQL standard to include procedural programming, local variables, various support functions for string processing, date processing, mathematics, etc. and changes to the DELETE and UPDATE statements.[18]
- A data manipulation language (DML) is a family of syntax elements similar to a computer programming language used for selecting, inserting, deleting and updating data in a database.[19]
- A data definition language (DDL) is a syntax similar to a computer programming language for defining data structures. Structured query language uses a collection of verbs used to modify the schema of the database by adding, changing, or deleting definitions of tables or other objects.[20]
Key Terms
[edit | edit source]- constraints
- Data Definition Language (DDL)
- Data Manipulation Language (DML)
- database (db)
- database management system (DBMS)
- database server
- flat-type database
- hierarchical database
- index
- relational database
- SQLCMD
- SQL Server Management Studio (SSMS)
- table
- Transact-SQL
- query
- XQuery
See Also
[edit | edit source]- Microsoft: Designing Tables
- Microsoft: Implementing a Relational Database
- Microsoft: Data Definition Language (DDL) Statements (Transact-SQL)
- Microsoft: Data Manipulation Language (DML) Statements (Transact-SQL)
- TutorialsPoint: DBMS Overview
References
[edit | edit source]- ↑ Microsoft: Database Fundamentals Exam Details
- ↑ Wikipedia:Database
- ↑ Wikipedia:Database
- ↑ Wikipedia:Query language
- ↑ Wikipedia:Database index
- ↑ Wikipedia:Database server
- ↑ Wikipedia:Database
- ↑ Wikipedia:Flat file database
- ↑ Wikipedia:Hierarchical database model
- ↑ Wikipedia:Table (database)
- ↑ Wikipedia:Relational database model
- ↑ Wikipedia:Relational database model
- ↑ Wikipedia:Relational Database
- ↑ Wikipedia:Relational Database
- ↑ Wikipedia:SQL Server Management Studio
- ↑ Wikipedia:xquery
- ↑ Wikipedia:Microsoft SQL Server
- ↑ Wikipedia:Transact-SQL
- ↑ Wikipedia:Data manipulation language
- ↑ Wikipedia:Data definition language