Understanding Core Database Concepts

Slides:



Advertisements
Similar presentations
What is a Database By: Cristian Dubon.
Advertisements

Basic SQL Introduction Presented by: Madhuri Bhogadi.
Brian Alderman | MCT, CEO / Founder of MicroTechPoint Pete Harris | Microsoft Senior Content Publisher.
Chapter 12: Using ADO.NET 2.0 Programming with Microsoft Visual Basic 2005, Third Edition.
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
Concepts of Database Management Sixth Edition
A Guide to MySQL 7. 2 Objectives Understand, define, and drop views Recognize the benefits of using views Use a view to update data Grant and revoke users’
BUSINESS DRIVEN TECHNOLOGY
A Guide to SQL, Seventh Edition. Objectives Understand, create, and drop views Recognize the benefits of using views Grant and revoke user’s database.
1 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management.
Working with SQL and PL/SQL/ Session 1 / 1 of 27 SQL Server Architecture.
Introduction To Databases IDIA 618 Fall 2014 Bridget M. Blodgett.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Akhila Kondai October 30, 2013.
Chapter 4: Organizing and Manipulating the Data in Databases
Chapter 4 SQL. SQL server Microsoft SQL Server is a client/server database management system. Microsoft SQL Server is a client/server database management.
Database Lecture # 1 By Ubaid Ullah.
ASP.NET Programming with C# and SQL Server First Edition
Concepts of Database Management, Fifth Edition Chapter 4: The Relational Model 3: Advanced Topics.
Chapter 4 The Relational Model 3: Advanced Topics Concepts of Database Management Seventh Edition.
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
CPS120: Introduction to Computer Science Lecture 19 Introduction to SQL.
Triggers A Quick Reference and Summary BIT 275. Triggers SQL code permits you to access only one table for an INSERT, UPDATE, or DELETE statement. The.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Chapter 4c, Database H Definition H Structure H Parts H Types.
1 CS 430 Database Theory Winter 2005 Lecture 2: General Concepts.
Information Building and Retrieval Using MySQL Track 3 : Basic Course in Database.
SQL Fundamentals  SQL: Structured Query Language is a simple and powerful language used to create, access, and manipulate data and structure in the database.
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,
Relational Database Management System(RDBMS) Structured Query Language(SQL)
Chapter 3: Relational Databases
Presentation on Database management Submitted To: Prof: Rutvi Sarang Submitted By: Dharmishtha A. Baria Roll:No:1(sem-3)
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
SQL Basics Review Reviewing what we’ve learned so far…….
Agenda for Today  DATABASE Definition What is DBMS? Types Of Database Most Popular Primary Database  SQL Definition What is SQL Server? Versions Of SQL.
Understanding Core Database Concepts Lesson 1. Objectives.
Fundamental of Database Systems
Aga Private computer Institute Prepared by: Srwa Mohammad
- The most common types of data models.
Fundamentals of DBMS Notes-1.
“Introduction To Database and SQL”
DATABASE CONCEPTS A database is a collection of logically related data designed to meet the information needs of one or more users Data bases are store-houses.
Prepared by : Moshira M. Ali CS490 Coordinator Arab Open University
Chapter 9 Database Systems
Fundamentals & Ethics of Information Systems IS 201
Database Management System
Introduction To Database Systems
Server-Side Application and Data Management IT IS 3105 (FALL 2009)
Applied CyberInfrastructure Concepts Fall 2017
Chapter 4 Relational Databases
ICT Database Lesson 1 What is a Database?.
Databases and Information Management
Module 1 Introduction to Microsoft SQL Server 2016
SQL 101.
“Introduction To Database and SQL”
Introduction to Database Management System
Accounting System Design
MANAGING DATA RESOURCES
Chapter 8 Working with Databases and MySQL
Database.
MANAGING DATA RESOURCES
مقدمة في قواعد البيانات
A Guide to SQL, Eighth Edition
Data Model.
Accounting System Design
DATABASES WHAT IS A DATABASE?
DATABASE Purpose of database
INTRODUCTION A Database system is basically a computer based record keeping system. The collection of data, usually referred to as the database, contains.
Module 1 Introduction to Microsoft SQL Server 2017
Presentation transcript:

Understanding Core Database Concepts Lesson 1

Objectives

Database A database (db) is an organized collection of data, typically stored in electronic format. It allows you to input data, organize the data and retrieve the data quickly. Traditional databases are organized by fields, records, and files.

Database Files Microsoft SQL server uses three types of files to store the database: Primary data files, with an .mdf extension, which contain user-defined objects, such as tables and views, as well as system tables. Secondary data files, with an .ndf extension, on separate physical hard disks to give your database more room. Transaction log files use an .ldf extension and don’t contain any objects such as tables or views.

Database Management System (DBMS) Most users do not access the databases directly, Instead, users use a database management system (DBMS) to access the databases indirectly. DBMS is a collection of programs that enables you to enter, organize, and select data in a database. For example, a ticket agent may run a ticket system program on his or her desk computer which will, in turn, access the database.

Types of Databases A flat type database are considered flat because they are two dimensional tables consisting of rows and columns. A hierarchical database design is similar to a tree structure (such as a family tree). Each parent can have multiple children, but each child can have only one parent. A relational database is similar to a hierarchical database in that data is stored in tables and any new information is automatically added into the table without the need to reorganize the table itself. Different from hierarchical database, a table in a relational database can have multiple parents.

Database Servers Databases are often found on database servers so that they can be accessed by multiple users and to provide a high-level of performance. A popular database server is Microsoft SQL Server.

Constraints Constraints are limitations or rules placed on a field or column to ensure that data that is considered invalid is not entered.

SQL Server Management Studio (SSMS) The central feature of SSMS is the Object Explorer, which allows the user to browse, select and manage any of the objects within the server.

SQL Server Management Studio (SSMS)

Data Manipulation Language (DML) Data Manipulation Language (DML) is the language element which allows you to use the core statements: SELECT: Retrieves rows from the database and enables the selection of one or many rows or columns from one or many tables in SQL Server. INSERT: Adds one or more new rows to a table or a view in SQL Server. UPDATE: Changes existing data in one or more columns in a table or view. DELETE: Removes rows from a table or view. MERGE: Performs insert, update, or delete operations on a target table based on the results of a join with a source table.

Data Definition Language (DDL) Data Definition Language (DDL) is a subset of the Transact-SQL language. It deals with creating database objects like tables, constraints, and stored procedures. Some DDL commands include: USE: Changes the database context. CREATE: Creates a SQL Server database object (table, view or stored procedure) ALTER: Changes an existing object DROP: Removes an object from the database

System Tables System views belong to the sys schema. Some of these system tables include: sys.Tables sys.Columns sys.Databases sys.Constraints sys.Views sys.Procedures sys.Indexes sys.Triggers sys.Objects

Summary A database (db) is an organized collection of data, typically stored in electronic format. It allows you to input data, organize the data and retrieve the data quickly. SQL Server uses three types of files to store the database. Primary data files, with an .mdf extension, are the first files created in a database and can contain user-defined objects, such as tables and views, as well as system tables that SQL Server requires for keeping track of the database.

Summary If the database gets too big and you run out of room on your first hard disk, you can create secondary data files, with an .ndf extension, on separate physical hard disks to give your database more room. The third type of file is a transaction log file. Transaction log files use an .ldf extension and don’t contain any objects such as tables or views.

Summary To retrieve data within a database, you would run a database query, which is an inquiry into the database in order to get information back from the database. In other words, a query is used to ask for information from the database and data is returned. A database index is a data structure that improves the speed of data retrieval operations on a database table. Most users do not access the databases directly, Instead, users use a database management system (DBMS) to access the databases indirectly.

Summary A flat type database is very simplistic in design. They are most commonly used in plain text formats, as their purpose is to hold one record per line, making the access performance and queries very quick. Tables, used to store data, are two dimensional objects consisting of rows and columns. A hierarchical database design is similar to a tree structure (such as a family tree). Each parent can have multiple children, but each child can have only one parent.

Summary A relational database is similar to a hierarchical database in that data is stored in tables and any new information is automatically added into the table without the need to reorganize the table itself. Different from hierarchical database, a table in a relational database can have multiple parents. Databases are often found on database servers so that they can be accessed by multiple users and to provide a high-level of performance. A popular database server runs Microsoft SQL Server.

Summary Constraints are limitations or rules placed on a field or column to ensure that data that is considered invalid is not entered. The SQL Server Management Studio (SSMS) is the primary tool to manage the server and its databases using a graphical interface.

Summary Data Manipulation Language (DML) is the language element which allows you to use the core statements: INSERT, UPDATE, DELETE, and MERGE to manipulate data in any SQL Server tables. Data Definition Language (DDL) is a subset of the Transact-SQL language; it deals with creating database objects like tables, constraints, and stored procedures.