RDBMS. SQL is Structured Query Language, which is a computer language for storing, manipulating and retrieving data stored in a relational database.

Similar documents
ASSIGNMENT NO Computer System with Open Source Operating System. 2. Mysql

Exact Numeric Data Types

Tranquility Publications. Web Edition MAC

SQL - QUICK GUIDE SQL - OVERVIEW

1. SQL Overview. Allows users to access data in the relational database management systems.

About the Tutorial. Audience. Prerequisites. Compile/Execute SQL Programs. Copyright & Disclaimer SQL

About the Tutorial. Audience. Prerequisites. Compile/Execute SQL Programs. Copyright & Disclaimer SQL

Unit 1 - Chapter 4,5

SQL Joins and SQL Views

Database: Collection of well organized interrelated data stored together to serve many applications.

Institute of Aga. Network Database LECTURER NIYAZ M. SALIH

T- SQL Lab Exercises and Examples

Institute of Aga. Microsoft SQL Server LECTURER NIYAZ M. SALIH

Advance SQL: SQL Performance Tuning. SQL Views

MySQL. Prof.Sushila Aghav

DBMS Questions for IBPS Bank Exam

Introduction to SQL. SQL is a standard language for accessing and manipulating databases. What is SQL?

TYPES OF COMPUTER NETWORKS

Lecture 1 Overview - Data Communications, Data Networks, and the Internet

B.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1

UNIT-3. The entity-relationship model (or ER model) is a way of graphically representing the

DATABASE MANAGEMENT SYSTEMS PREPARED BY: ENGR. MOBEEN NAZAR

Several major software companies including IBM, Informix, Microsoft, Oracle, and Sybase have all released object-relational versions of their

SQL. History. From Wikipedia, the free encyclopedia.

CS143: Relational Model

PL/SQL-TYCS. The 'Hello World' Example

CONTENTS. Internet Basics. Internet Explorer. Search Engines. . Advantages and Disadvantages of the Internet. Some good websites

COMPUTER NETWORK. PBL(1)

Introduction to Computer Networks INTRODUCTION TO COMPUTER NETWORKS

Network Definition A network can be defined as two or more computers connected together in such a way that they can share resources.

A practical introduction to database design

U1. Data Base Management System (DBMS) Unit -1. MCA 203, Data Base Management System


IT Service Delivery and Support Week Three. IT Auditing and Cyber Security Fall 2016 Instructor: Liang Yao

Lecture 8. Database vs. Files SQL (I) Introduction to SQL database management systems (DBMS)

Ministry of Higher Education and Scientific research

Data and Computer Communications Chapter 1 Data Communications, Data Networks, and the Internet

Data Communication. Introduction of Communication. Data Communication. Elements of Data Communication (Communication Model)

Chapter # 7 Introduction to Structured Query Language (SQL) Part I

DATABASE MANAGEMENT SYSTEMS. UNIT I Introduction to Database Systems

Database Management Systems,

Today Learning outcomes LO2

Question Bank IT(402) Unit Database 1. What is database? Ans: A database is a collection of information that is organized so that it can be easily

Database Management Systems

Database System Concepts and Architecture

What is the fundamental purpose of a communication system? Discuss the communication model s elements.

What is SQL? Toolkit for this guide. Learning SQL Using phpmyadmin

MOTHER TERESA SR. SEC. CO-ED SCHOOL. CLASS VIII (Comp Sc.) CHAPTER-1 : ABOUT NETWORKING

OBJECT-RELATIONAL COMPONENT APPROACHES: A COMPARISON

Chapter 1 Introduction

INFORMATION TECHNOLOGY NOTES

DPS BAHADURGARH BLUE PRINT OF FA GRADE VIII

Jarek Szlichta

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2-1

Outline. Definitions History Basic concepts of DBMS Data Models Relational database Normalization

! Define terms. ! Interpret history and role of SQL. ! Write single table queries using SQL. ! Establish referential integrity using SQL

Rapid Application Development

Exploring Popular SQL Implementations. Query the database to retrieve the data stored therein.

CS313D: ADVANCED PROGRAMMING LANGUAGE

Brief History of SQL. Relational Database Management System. Popular Databases

Lecture 1: Relational Databases

The functions performed by a typical DBMS are the following:

Programming the Database

Chapter 10: Planning and Cabling Networks

Database Fundamentals Chapter 1

Microsoft Access - Using Relational Database Data Queries (Stored Procedures) Paul A. Harris, Ph.D. Director, GCRC Informatics.

Introduction To Computers

Database System Concepts and Architecture. Copyright 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

SQL. Dean Williamson, Ph.D. Assistant Vice President Institutional Research, Effectiveness, Analysis & Accreditation Prairie View A&M University

INTRODUCTION TO ICT.

Relational Database Design, Usage, and Implementation using Oracle

Introduction to Networks

Networks: Communicating and Sharing Resources

SQL. Structured Query Language


Crystal Reports. Overview. Contents. Open Database Connectivity (ODBC)

Form 4 ICT Literacy Modules Methodist Boys School Kuala Lumpur 1.0 PROCESSING DATA

Enterprise Java Unit 1- Chapter 6 Prof. Sujata Rizal

Downloaded from

Chapter. Relational Database Concepts COPYRIGHTED MATERIAL

# DEFINITIONS TERMS. 5) A set of devices interconnected by media links. Network

ETL Testing Material. Address: #104,Nandini Residency, Addagutta Society, Pragathi Nagar Road Jntu X-Roads,HYD. Testing Masters

Handout 4. Logical Database Modeling, Part 1: Relational Data Model. Transforming EER model to Relational.

Computer Science and Engineering Technology Course Descriptions

Test Bank for Database Processing Fundamentals Design and Implementation 13th Edition by Kroenke

UNIT-3 RELATIONAL DATABASE MANAGEMENT SYSTEM

Relational Database Systems Part 01. Karine Reis Ferreira

Computer Networks. Cables Radio signals (wireless/wifi) Telephone lines Satellite links (Long distance)

V SEMESTER DIPLOMA EXAMINATION, JANUARY-2013 COMPUTER NETWORKS Time: 3 Hours Max. Marks: 75

Local Area Network(LAN)

Lesson 1: Network Communications

Topics. History. Architecture. MongoDB, Mongoose - RDBMS - SQL. - NoSQL

Relational databases and SQL

SQL Interview Questions

Review of Network Technologies

Table of Contents Table of Contents...2 Introduction...3 Mission of IT...3 Primary Service Delivery Objectives...3 Availability of Systems...

Using Relational Databases for Digital Research

Database Management System Fall Introduction to Information and Communication Technologies CSD 102

Chapter 1 An introduction to relational databases and SQL

PL/SQL is one of three key programming languages embedded in the Oracle Database, along with SQL itself and Java.

Transcription:

RDBMS What is RDBMS? RDBMS stands for Relational Database Management System. RDBMS is the basis for SQL, and for all modern database systems like MS SQL Server, IBM DB2, Oracle, MySQL, and Microsoft Access. A Relational database management system (RDBMS) is a database management system (DBMS) that is based on the relational model as introduced by E. F. Codd. SQL is a language to operate databases; it includes database creation, deletion, fetching rows, modifying rows, etc. SQL is an ANSI (American National Standards Institute) standard language, but there are many different versions of the SQL language. What is SQL? SQL is Structured Query Language, which is a computer language for storing, manipulating and retrieving data stored in a relational database. SQL is the standard language for Relational Database System. All the Relational Database Management Systems (RDMS) like MySQL, MS Access, Oracle, Sybase, Informix, Postgres and SQL Server use SQL as their standard database language. Also, they are using different dialects, such as MS SQL Server using T-SQL, Oracle usi ng PL/SQL, MS Access version of SQL is called JET SQL (native format) etc. Why SQL? SQL is widely popular because it offers the following advantages Allows users to access data in the relational database management systems. Allows users to describe the data. Allows users to define the data in a database and manipulate that data.

Allows to embed within other languages using SQL modules, libraries & pre-compilers. Allows users to create and drop databases and tables. Allows users to create view, stored procedure, functions in a database. Allows users to set permissions on tables, procedures and views. A Brief History of SQL 1970 Dr. Edgar F. "Ted" Codd of IBM is known as the father of relational databases. He described a relational model for databases. 1974 Structured Query Language appeared. 1978 IBM worked to develop Codd's ideas and released a product named System/R. 1986 IBM developed the first prototype of relational database and standardized by ANSI. The first relational database was released by Relational Software which later came to be known as Oracle. What is a table? The data in an RDBMS is stored in database objects which are called as. This table is basically a collection of related data entries and it consists of numerous columns and rows. Remember, a table is the most common and simplest form of data storage in a relational database. The following program is an example of a CUSTOMERS table ----------+ ID NAME AGE ADDRESS SALARY 1 Ramesh 32 Ahmedabad 2000.00 2 Khilan 25 Delhi 1500.00 3 kaushik 23 Kota 2000.00 4 Chaitali 25 Mumbai 6500.00 5 Hardik 27 Bhopal 8500.00 6 Komal 22 MP 4500.00 7 Muffy 24 Indore 10000.00 ----------+ What is a field? Every table is broken up into smaller entities called fields. The fields in the CUSTOMERS table consist of ID, NAME, AGE, ADDRESS and SALARY.

A field is a column in a table that is designed to maintain specific information about every record in the table. What is a Record or a Row? A record is also called as a row of data is each individual entry that exists in a table. For example, there are 7 records in the above CUSTOMERS table. Following is a single row of data or record in the CUSTOMERS table 1 Ramesh 32 Ahmedabad 2000.00 A record is a horizontal entity in a table. What is a column? A column is a vertical entity in a table that contains all information associated with a specific field in a table. For example, a column in the CUSTOMERS table is ADDRESS, which represents location description and would be as shown below +----------------+ ADDRESS +----------------+ Ahmedabad Delhi Kota Mumbai Bhopal MP Indore +----+-----------+ What is a NULL value? A NULL value in a table is a value in a field that appears to be blank, which means a field with a NULL value is a field with no value. It is very important to understand that a NULL value is different than a zero value or a field that contains spaces. A field with a NULL value is the one that has been left blank during a record creation.

SQL Create Database: Syntax The basic syntax of this CREATE DATABASE statement is as follows CREATE DATABASE DatabaseName; Always the database name should be unique within the RDBMS. If you want to create a new database <testdb>, then the CREATE DATABASE statement would be as shown below SQL> CREATE DATABASE testdb; SQL - CREATE Table : Creating a basic table involves naming the table and defining its columns and each column's data type. The SQL CREATE TABLE statement is used to create a new table. Syntax The basic syntax of the CREATE TABLE statement is as follows CREATE TABLE table_name(column1 datatype,column2 datatype,column3 datatype,.. columnn datatype); CREATE TABLE is the keyword telling the database system what you want to do. In this case, you want to create a new table. The unique name or identifier for the table follows the CREATE TABLE statement. Then in brackets comes the list defining each column in the table and what sort of data type it is. The syntax becomes clearer with the following example. A copy of an existing table can be created using a combination of the CREATE TABLE statement and the SELECT statement. You can check the complete details at Create Table Using another Table. The following code block is an example, which creates a CUSTOMERS table. SQL> CREATE TABLE CUSTOMERS(ID INT(10),NAME CHAR(20),AGE INT(10),ADDRESS CHAR(25),SALARY int(5)); You can verify if your table has been created successfully by looking at the message displayed by the SQL server. Now, you have CUSTOMERS table available in your database which you can use to store the required information related to customers. SQL INSERT Statement:

The SQL INSERT INTO Statement is used to add new rows of data to a table in the database. The following statements would create records in the CUSTOMERS table. INSERT INTO CUSTOMERS VALUES (1, 'Ramesh', 32, 'Ahmedabad', 2000); INSERT INTO CUSTOMERS VALUES (2, 'Khilan', 25, 'Delhi', 1500); INSERT INTO CUSTOMERS VALUES (3, 'kaushik', 23, 'Kota', 2000); INSERT INTO CUSTOMERS VALUES (4, 'Chaitali', 25, 'Mumbai', 6500); INSERT INTO CUSTOMERS VALUES (5, 'Hardik', 27, 'Bhopal', 8500); You can create a record in the CUSTOMERS table by using the second syntax as shown below. SQL - SELECT Query: The SQL SELECT statement is used to fetch the data from a database table which returns this data in the form of a result table. These result tables are called result-sets. SELECT * FROM CUSTOMERS; Consider the CUSTOMERS table having the following records ID NAME AGE ADDRESS SALARY 1 Ramesh 32 Ahmedabad 2000 2 Khilan 25 Delhi 1500 3 kaushik 23 Kota 2000 4 Chaitali 25 Mumbai 6500 5 Hardik 27 Bhopal 8500 6 Komal 22 MP 4500 7 Muffy 24 Indore 10000

What is VOIP: VoIP stands for Voice over Internet Protocol. It is also referred to as IP Telephony, Internet Telephony, and Internet Calling. It is an alternative way of making phone calls that can be very cheap or completely free. The phone part is not always present anymore, as you can communicate without a telephone set. VoIP has been named the most successful technology of the last decade. LAN - local-area network A local-area network (LAN) is a computer network that spans a relatively small area. Most often, a LAN is confined to a single room, building or group of buildings, however, one LAN can be connected to other LANs over any distance via telephone lines and radio waves. A system of LANs connected in this way is called a wide-area network (WAN). The difference between a LAN and WAN is that the wide-area network spans a relatively large geographical area. Typically, a WAN consists of two or more local-area networks (LANs) and are often connected through public networks. Nodes on a LAN Wide Area Network (WAN) A wide area network (WAN) is a telecommunications or computer network that extends over a large geographical distance. A Wide Area Network suits an individual, a Company or Organization that operates different location that is separated by large geographical distances, it will be a matter of necessity to connect these individual locations so as to share, exchange and manager data or communication.

To achieve this, the organization needs a Telecommunication Service Provider (TSP) to interconnect the LANs at the different locations. Metropolitan area network (MAN) A metropolitan area network (MAN) is a network that interconnects users with computer resources in a geographic area or region larger than that covered by even a large local area network (LAN) but smaller than the area covered by a wide area network (WAN). The term is applied to the interconnection of networks in a city into a single larger network (which may then also offer efficient connection to a wide area network). It is also used to mean the interconnection of several local area networks by bridging them with backbone lines. The latter usage is also sometimes referred to as a campus network. s of metropolitan area networks of various sizes can be found in the metropolitan areas of London, England; Lodz, Poland; and Geneva, Switzerland. Large universities also sometimes use the term to describe their networks. A recent trend is the installation of wireless MANs. WHAT IS CYBERSECURITY? Cyber security is the body of technologies, processes and practices designed to protect networks, computers, programs and data from attack, damage or unauthorized access. In a computing context, security includes both cyber security and physical security. Ensuring cyber security requires coordinated efforts throughout an information system. Elements of cyber security include: Application security Information security Network security Disaster recovery / business continuity planning Operational security End-user education One of the most problematic elements of cyber security is the quickly and constantly evolving nature of security risks. The traditional approach has been to focus most resources on the most crucial system components and protect against the biggest known threats, which necessitated leaving some less important system components undefended and some less dangerous risks not protected against