Structured Query Language (Sql)

Total Page:16

File Type:pdf, Size:1020Kb

Structured Query Language (Sql) STRUCTURED QUERY LANGUAGE (SQL) Structured Query Language is a language that provides an interface to Relational Database Management System.SQL was developed by IBM in 1970s for the use of data in big organisation properly. SQL consists of several commands for communication with Oracle server. SQL is a non-procedural language, which has an English like structure and allow the user to specify what is wanted rather than how it should be done. SQL supports many statements that directly implement the corresponding relational algebra operation.SQL is the Standard Database Language supported by every RDBMS. SQL is used to communicate with a database. According to ANSI (American National Standards Institute), it is the standard language for relational database management systems. SQL statements are used to perform tasks such as update data on a database, or retrieve data from a database. Some common relational database management systems that use SQL are: Oracle, Sybase, Microsoft SQL Server, Access, Ingres, etc. Although most database systems use SQL, most of them also have their own additional proprietary extensions that are usually only used on their system. However, the standard SQL commands such as "Select", "Insert", "Update", "Delete", "Create", and "Drop" can be used to accomplish almost everything that one needs to do with a database. This tutorial will provide you with the instruction on the basics of each of these commands as well as allow you to put them to practice using the SQL Interpreter. Features of SQL. • It is non-procedural or set oriented language. • Recovery and concurrency. • Integrity constraints. • The security can be maintained by view mechanism. • It is English like language. • Time efficient. Classification of SQL statements. ➢ Data Definition Language(DDL). It is a set of SQL command used to define the data in the data-base. This definition includes all the entity sets and their associated attributes as well as the relationship among the entity sets.(Used to define the objects in a relational database).e.g.CREATE,ALTER and DROP. ➢ Data Manipulation Language(DML). It is a set of SQL commands used to manipulate the data in the data-base. Data Manipualtion involves retrieval of data from data-base, insertion of new data into the data-base and deletion or modification of existing data.(Used for query,addition,deletion and updation of data stored in the database).e.g.SELECT,UPDATE and DELETE. ➢ Data Control Language(DCL). ): It is a set of SQL commands used to control the access of data from data-base.(Used for controlling data stored in the database).e.g.GRANT,REVOKE. ➢ Tranaction Control Language(TCL). It is a set of SQL commands used to control the transaction activities done on the data-base. (Used to save the changes made in the table as well as to ignore the changes).e.g.ROLLBACK,SAVEPOINT and COMMITE. ➢ Data Query Language(DQL). It is a component of SQL statement that allow to get data from data-base..(Used to query data from the table).e.g.SELECT. S.NO SQL COMMANDS DESCRIPTION COMPONENTS CREATE To create the schema object (table). To alter the schema object. ALTER 1. DDL DROP To delete the schema object. RENAME To rename the schema object. INSERT To insert data in the table. UPDATE To update existing data with in a table. To delete all the records from the 2. DML table or to remove rows from the DELETE table. GRANT To give permission and take away parbaligious to access the data. 3. DCL REVOKE To give permission and take away parbaligious to access the data. COMMIT To make a transaction permanent. 4. TCL SAVEPOINT To set a point to which transaction can be rollback. To undo changes in the ROLLBACK transaction. 5. DQL SELECT To retrive data from one or more table. SQL DATATYPES When we create a table, we need to specify the datatype of each column.Datatypes are declared to identify the type of data that will be held or stored for a particular column or variable.The datatypes may be followed by one or more number of parentheses which give information about the column’s width.The table given below list important datatypes. S.NO DATATYPES DESCRIPTION 1. CHAR(255) This data type is used to store character strings value of fixed length. The size in bracket determine the number of characters the cell can hold. The maximum number of characters this data type can hold is 255 characters. 2. VARCHAR/ This data type is used to store the variable length alpha VARCHAR2 numeric data. It is more flexible form than the char data type. (4000) The maximum number of characters it can hold is 4000 characters. 3. This data type is used to represent date and time. The DATE standard format is DD-MM-YY i.e. 22-jan-13. To enter date other than the standard format we can use appropriate function. 4. NUMBER(P,S) This data type is used to store number either fixed or floating (38) points. It can be used to store either zero, positive and negative numbers. The precision (P) determine the maximum length of the data, and the scale (S) determine the number of places to the right of the decimal. If scale is omitted then, by default it is a zero value. The maximum value of precision value is upto 38 digits. 5. LONG(2GB) This data type is used to store variable length character strengths containing upto 2 GB. 6. RAW/LONG This data type are used to store binary data such as digitised RAW(2GB) picture or image. Raw data type can have a maximum length of 255 bytes. Long raw data type can contain upto 2 GB. Commands used in Data Definition Language (DDL) 1. CREATE TABLE Command. We use CREATE TABLE command to create a new database.With this command we can specify a name,type,precision and scale for each field in the data base to be created. Syntax:- CREATE TABLE <table_name> (column_name1 type(size), column_name2 type(size), . column_name n type(size)); Example:-To create a table STUDENT holding the SNO, ROLLNO, NAME, BRANCH, SEM, MARKS the following command has to be writen CREATE TABLE STUDENT (SNO NUMBER(5), ROLLNO NUMBER(10), NAME CHAR(20), BRANCH CHAR(10), SEM VARCHAR2(10), MARKS NUMBER(10)); 2. ALTER TABLE Command. This command is used to change the table.We can add new column,change the datatype of columns or drop any constraints using ALTER TABLE command. • The ADD Clause. Using ADD clause we can add new column into the table. Syntax:- ALTER TABLE<table name> ADD(column_name type(size)); Example:- If we have to add new column for PN_NO into a table STUDENT then we have to write: ALTER TABLE STUDENT ADD(PH_NO NUMBER(10)); • The MODIFY Clause. Use the MODIFY keyword to modify the definition of an existing column. Syntax:- ALTER TABLE<table_name> MODIFY(Column_name type(size)); Exmple:-If we have to change the size of column PN_NO into the table STUDENT,then we have to write: ALTER TABLE STUDENT MODIFY(PH_NO NUMBER(15)); • Dropping a column. Use to remove a column which is no longer required for your table. Syntax:- ALTER TABLE<table_name> DROP COLUMN<column_name>; Example:- If we have to remove the column PN_NO from the table STUDENT,then we have to write: ALTER TABLE STUDENT DROP COLUMN PH_NO; 3.DROP TABLE Command. This command is use to remove the table physically. Syntax:- DROP TABLE<table_name> Example:- If we have to drop the table than,we have to write: DROP TABLE STUDENT; 4.RENAME Command. This command is use to rename the existing table. Syntax:- RENAME<old_tablt_name>TO<new_table_name> Example:-If we have to rename the existing table STUDENT than, we have to write: RENAME STUDENT TO STUDENT1; Commands used in Data Manipulation Language(DML) 1.The INSERT INTO Command. This commands adds a new record to the existing database.The new record includes data specified with the INSERT INTO command. Syntax:- INSERT INTO<table_name> VALUES(<expression1.<expression2>, . <expression_n>); Example:- If we have to enter the new student record into table STUDENT,than we have to write: INSERT INTO STUDENT VALUES(1,1100606,’BHUPI’,’BCA’,4,400) 2.The DELETE Command. This command is use to delete the existing rows of a table. • Delete all the rows from table. It is use to delete all the rows from the table. Syntax:- DELETE from <table_name>; Example:-If we have to remove all the rows from the table STUDENT than,we have to write: DELETE FROM STUDENT; • Delete the specific rows. It is use to delete the specific row from the table. Syntax:- DELETE from<table_name> WHERE<condition>; Example:-If we have to remove specific row from the table STUDENT than,we have to write: DELETE FROM STUDENT WHERE NAME=’ARJUN’; 3.The UDATE Command. This command is used to update the contents of the table that have been added in the past. • To UPDATE all the rows. It is use to update all the rows in the table. Syntax:- UPDATE<table_name> Set,column_name>=<expression/value>; Example:- If we have to update the given rows than,we have to write: UPDATE STUDENT SET BRANCH=’MCA’; • To UPDATE a given rows. It is use to update a given or selected row in the table. Syntax:- UPDATE<table_name> Set,column_name>=<expression/value> WHERE<condition>; Example:- If we have to update a given row than,we have to write: UPDATE STUDENT SET BRANCH=’MCA’ WHERE NAME=’ATINDER’; Commands used in Data Query Language(DQL) 1.The SELECT Command. This command is use to retrieve information from one or more database.
Recommended publications
  • 9. SQL FUNDAMENTALS What Is SQL?
    ROHINI COLLEGE OF ENGINEERING & TECHNOLOGY 9. SQL FUNDAMENTALS What is SQL? • SQL stands for Structured Query Language • SQL allows you to access a database • SQL is an ANSI standard computer language • SQL can execute queries against a database • SQL can retrieve data from a database • SQL can insert new records in a database • SQL can delete records from a database • SQL can update records in a database • SQL is easy to learn SQL is an ANSI (American National Standards Institute) standard computer language for accessing and manipulating database systems. SQL statements are used to retrieve and update data in a database. • SQL works with database programs like MS Access, DB2, Informix, MS SQL Server, Oracle, Sybase, etc. There are many different versions of the SQL language, but to be in compliance with the ANSI standard, they must support the same major keywords in a similar manner (such as SELECT, UPDATE, DELETE, INSERT, WHERE, and others). SQL Database Tables • A database most often contains one or more tables. Each table is identified by a name (e.g. "Customers" or "Orders"). Tables contain records (rows) with data. Below is an example of a table called "Persons": CS8492-DATABASE MANAGEMENT SYSTEMS ROHINI COLLEGE OF ENGINEERING & TECHNOLOGY SQL Language types: Structured Query Language(SQL) as we all know is the database language by the use of which we can perform certain operations on the existing database and also we can use this language to create a database. SQL uses certain commands like Create, Drop, Insert, etc. to carry out the required tasks. These SQL commands are mainly categorized into four categories as: 1.
    [Show full text]
  • Uniform Data Access Platform for SQL and Nosql Database Systems
    Information Systems 69 (2017) 93–105 Contents lists available at ScienceDirect Information Systems journal homepage: www.elsevier.com/locate/is Uniform data access platform for SQL and NoSQL database systems ∗ Ágnes Vathy-Fogarassy , Tamás Hugyák University of Pannonia, Department of Computer Science and Systems Technology, P.O.Box 158, Veszprém, H-8201 Hungary a r t i c l e i n f o a b s t r a c t Article history: Integration of data stored in heterogeneous database systems is a very challenging task and it may hide Received 8 August 2016 several difficulties. As NoSQL databases are growing in popularity, integration of different NoSQL systems Revised 1 March 2017 and interoperability of NoSQL systems with SQL databases become an increasingly important issue. In Accepted 18 April 2017 this paper, we propose a novel data integration methodology to query data individually from different Available online 4 May 2017 relational and NoSQL database systems. The suggested solution does not support joins and aggregates Keywords: across data sources; it only collects data from different separated database management systems accord- Uniform data access ing to the filtering options and migrates them. The proposed method is based on a metamodel approach Relational database management systems and it covers the structural, semantic and syntactic heterogeneities of source systems. To introduce the NoSQL database management systems applicability of the proposed methodology, we developed a web-based application, which convincingly MongoDB confirms the usefulness of the novel method. Data integration JSON ©2017 Elsevier Ltd. All rights reserved. 1. Introduction solution to retrieve data from heterogeneous source systems and to deliver them to the user.
    [Show full text]
  • IEEE Paper Template in A4 (V1)
    International Journal of Electrical Electronics & Computer Science Engineering Special Issue - NCSCT-2018 | E-ISSN : 2348-2273 | P-ISSN : 2454-1222 March, 2018 | Available Online at www.ijeecse.com Structural and Non-Structural Query Language Vinayak Sharma1, Saurav Kumar Jha2, Shaurya Ranjan3 CSE Department, Poornima Institute of Engineering and Technology, Jaipur, Rajasthan, India [email protected], [email protected], [email protected] Abstract: The Database system is rapidly increasing and it The most important categories are play an important role in all commercial-scientific software. In the current scenario every field work is related to DDL (Data Definition Language) computer they store their data in the database. Using DML (Data Manipulation Language) database helps to maintain the large records. This paper aims to summarize the different database and their usage in DQL (Data Query Language) IT field. In company database is more appropriate or more 1. Data Definition Language: Data Definition suitable to store the data. Language, DDL, is the subset of SQL that are used by a Keywords: DBS, Database Management Systems-DBMS, database user to create and built the database objects, Database-DB, Programming Language, Object-Oriented examples are deletion or the creation of a table. Some of System. the most Properties of DDL commands discussed I. INTRODUCTION below: CREATE TABLE The database system is used to develop the commercial- scientific application with database. The application DROP INDEX requires set of element for collection transmission, ALTER INDEX storage and processing of data with computer. Database CREATE VIEW system allow the database develop application. This ALTER TABLE paper deal with the features of Nosql and need of Nosql in the market.
    [Show full text]
  • IVOA Astronomical Data Query Language Version
    International Virtual Observatory Alliance IVOA Astronomical Data Query Language Version 2.0 IVOA Recommendation 30 Oct 2008 This version: 2.0 Latest version: http://www.ivoa.net/Documents/latest/ADQL.html Previous version(s): 2.0-20081028 Editor(s): Pedro Osuna and Inaki Ortiz Author(s): Inaki Ortiz, Jeff Lusted, Pat Dowler, Alexander Szalay, Yuji Shirasaki, Maria A. Nieto- Santisteban, Masatoshi Ohishi, William O’Mullane, Pedro Osuna, the VOQL-TEG and the VOQL Working Group. Abstract This document describes the Astronomical Data Query Language (ADQL). ADQL has been developed based on SQL92. This document describes the subset of the SQL grammar supported by ADQL. Special restrictions and extensions to SQL92 have been defined in order to support generic and astronomy specific operations. 1 Status of This Document This document has been produced by the VO Query Language Working Group. It has been reviewed by IVOA Members and other interested parties, and has been endorsed by the IVOA Executive Committee as an IVOA Recommendation. It is a stable document and may be used as reference material or cited as a normative reference from another document. IVOA's role in making the Recommendation is to draw attention to the specification and to promote its widespread deployment. This enhances the functionality and interoperability inside the Astronomical Community. Please note that version 1.0 was never promoted to Proposed Recommendation. A list of current IVOA Recommendations and other technical documents can be found at http://www.ivoa.net/Documents/.
    [Show full text]
  • SQL - Data Query Language
    SQL - Data Query language Eduardo J Ruiz October 20, 2009 1 Basic Structure • The simple structure for a SQL query is the following: select a1...an from t1 .... tr where C Where t1 . tr is a list of relations in the database schema, a1 . an the elements in the resultant relation and C a list of constraints. • ai can be 1. A constant 2. An attribute in the resultant relation 3. A function applied to one attribute or several attributes 4. An aggregation function 5. * if we want to list all the attributes of a particular relation • n is the arity of the resultant relation. • C contains the list of restrictions that enforces the joins and the selections • Some queries are equivalent to πa1...an σC (t1 × t2 . tr) Select all the attributes from the students with a GPA greater than 3.0 σgpa>3.0student select * from student where gpa > 3.0 The following query use a function to present the student full-name (concat is a mysql function) πpantherid,name+lastname(σgpa>3.0∧gender=0F 0 (student)) 1 select panterid, concat(name,’ ’,lastname) from student where gpa > 3.0 and gender=’F’ Cartesian product. All the students with all the courses. σpantherid,courseid(student × enrolled) select panterid, courseid from student,enrolled • Query construction: 1. Select all the useful tables from the schema 2. Add the necessary join conditions (this is the most important step) 3. Add the necessary filter conditions 4. Select the attributes (apply fancy functions as needed) 5. Sort the results 2 Renaming • You can rename tables and attributes • Why: to avoid ambiguity (two tables with the same attributes, self joins), to use clearer names, to add names to anonymous columns In the following example we rename the concatenated attribute to full name and we add an extra attribute.
    [Show full text]
  • Cs6302 Database Management System Two Marks Unit I Introduction to Dbms
    CS6302 DATABASE MANAGEMENT SYSTEM TWO MARKS UNIT I INTRODUCTION TO DBMS 1. Who is a DBA? What are the responsibilities of a DBA? April/May-2011 A database administrator (short form DBA) is a person responsible for the design, implementation, maintenance and repair of an organization's database. They are also known by the titles Database Coordinator or Database Programmer, and is closely related to the Database Analyst, Database Modeller, Programmer Analyst, and Systems Manager. The role includes the development and design of database strategies, monitoring and improving database performance and capacity, and planning for future expansion requirements. They may also plan, co-ordinate and implement security measures to safeguard the database 2. What is a data model? List the types of data model used. April/May-2011 A database model is the theoretical foundation of a database and fundamentally determines in which manner data can be stored, organized, and manipulated in a database system. It thereby defines the infrastructure offered by a particular database system. The most popular example of a database model is the relational model. types of data model used Hierarchical model Network model Relational model Entity-relationship Object-relational model Object model 3.Define database management system. Database management system (DBMS) is a collection of interrelated data and a set of programs to access those data. 4.What is data base management system? A database management system (DBMS) is a software package with computer programs that control the creation, maintenance, and the use of a database. It allows organizations to conveniently develop databases for various applications by database administrators (DBAs) and other specialists.
    [Show full text]
  • 444 Difference Between Sql and Nosql Databases
    International Journal of Management, IT & Engineering Vol. 8 Issue 6, June 2018, ISSN: 2249-0558 Impact Factor: 7.119 Journal Homepage: http://www.ijmra.us, Email: [email protected] Double-Blind Peer Reviewed Refereed Open Access International Journal - Included in the International Serial Directories Indexed & Listed at: Ulrich's Periodicals Directory ©, U.S.A., Open J-Gage as well as in Cabell’s Directories of Publishing Opportunities, U.S.A Difference between SQL and NoSQL Databases Kalyan Sudhakar* Abstract This article explores the various differences between SQL and NoSQL databases. It begins by giving brief descriptions of both SQL and NoSQL databases and then discussing the various pros and cos of each database type. This article also examines the applicability differences between the two database types. Structured Query Language (SQL) refers to a domain-specific or standardized programming language used by database designers in designing and managing relational SQL databases or controlling data stored in RDSMS (relational database management system). The scope of SQL database encompasses data query, data definition (creation and modification of schema), data manipulation (inserting, deleting, and updating), as well as control of data access. NoSQL databases are non-relational and can exist together with relational databases. NoSQL databases are most suitable for use in applications that involve large amounts of data, and the data can either be unstructured, structured, or semi- structured. SQL databases have been the most widely used databases in the world over the years. However, it is the requirements that drive data models, which in turns, influence the choice between SQL and NoSQL databases.
    [Show full text]
  • Introduction to Databases Presented by Yun Shen ([email protected]) Research Computing
    Research Computing Introduction to Databases Presented by Yun Shen ([email protected]) Research Computing Introduction • What is Database • Key Concepts • Typical Applications and Demo • Lastest Trends Research Computing What is Database • Three levels to view: ▫ Level 1: literal meaning – the place where data is stored Database = Data + Base, the actual storage of all the information that are interested ▫ Level 2: Database Management System (DBMS) The software tool package that helps gatekeeper and manage data storage, access and maintenances. It can be either in personal usage scope (MS Access, SQLite) or enterprise level scope (Oracle, MySQL, MS SQL, etc). ▫ Level 3: Database Application All the possible applications built upon the data stored in databases (web site, BI application, ERP etc). Research Computing Examples at each level • Level 1: data collection text files in certain format: such as many bioinformatic databases the actual data files of databases that stored through certain DBMS, i.e. MySQL, SQL server, Oracle, Postgresql, etc. • Level 2: Database Management (DBMS) SQL Server, Oracle, MySQL, SQLite, MS Access, etc. • Level 3: Database Application Web/Mobile/Desktop standalone application - e-commerce, online banking, online registration, etc. Research Computing Examples at each level • Level 1: data collection text files in certain format: such as many bioinformatic databases the actual data files of databases that stored through certain DBMS, i.e. MySQL, SQL server, Oracle, Postgresql, etc. • Level 2: Database
    [Show full text]
  • Tamilnadu 12Th Computer Application Lesson 3 – One Marks
    www.usefuldesk.com Tamilnadu 12th Computer Application Lesson 3 – One Marks Choose the correct answer: 1. Which language is used to request information from a Database? A. Relational B. Structural C. Query D. Compiler ANSWER: C 2. The _____ diagram gives a logical structure of the database graphically. A. Entity-Relationship B. Entity C. Architectural Representation D. Database ANSWER:B 3. An entity set that does not have enough attributes to form primary key is known as A. Strong entity set B. Weak entity set C. Identity set D. Owner set ANSWER: B 4. _____ Command is used to delete a database. A. Delete database database_name B. Delete database_name C. Drop database database_name D. Drop database_name ANSWER: D 5. Which type of below DBMS is MySQL? A. Object Oriented B. Hierarchical C. Relational D. Network ANSWER: C 6. MySQL is freely available and is open source. A.True B. False C. Website: www.usefuldesk.comFacebook: www.facebook.com/usefuldeskE-mail: [email protected] www.usefuldesk.com D. ANSWER: A 7. _____ represents a “tuple” in a relational database? A. Table B. Row C. Column D. Object ANSWER: B 8. Communication is established with MySQL using A. SQL B. Network calls C. Java D. API’s ANSWER: A 9. Which is MySQL instance responsible for data processing? A. MySQL Client B. MySQL Server C. SQL D. Server Daemon Program ANSWER: D 10. The structure representing the organizational view of entire database is known as _____ in MySQL database. A. Schema B. View C. Instance D. Table ANSWER: D 11. Expand DBMS A.Data Base Management Software B.
    [Show full text]
  • Database Systems 05 Query Languages (SQL)
    1 SCIENCE PASSION TECHNOLOGY Database Systems 05 Query Languages (SQL) Matthias Boehm Graz University of Technology, Austria Computer Science and Biomedical Engineering Institute of Interactive Systems and Data Science BMVIT endowed chair for Data Management Last update: Apr 01, 2019 2 Announcements/Org . #1 Video Recording . Since lecture 03, video/audio recording ( setting ) . Link in TeachCenter & TUbe (but not public yet) . #2 Exercise 1 . Submission through TeachCenter (max 5MB, draft possible) . Submission open (deadline Apr 02, 12.59pm ) . #3 Exercise 2 . Modified published date Apr 3 Apr 08 . Introduced during next lecture . #4 Participation . Awesome to see active involvement via newsgroup, PRs, etc . Reminder: office hours Monday 1pm-2pm INF.01014UF Databases / 706.004 Databases 1 – 05 Query Languages (SQL) Matthias Boehm, Graz University of Technology, SS 2019 3 Agenda . Structured Query Language (SQL) . Other Query Languages (XML, JSON) INF.01014UF Databases / 706.004 Databases 1 – 05 Query Languages (SQL) Matthias Boehm, Graz University of Technology, SS 2019 4 Why should I care? . SQL as a Standard . Standards ensure interoperability , avoid vendor lock-in , and protect application investments . Mature standard with heavy industry support for decades . Rich eco system (existing apps, BI tools, services, frameworks, drivers, design tools, systems) [https://xkcd.com/927/ ] . SQL is here to stay . Foundation of mobile/server application data management . Adoption of existing standard by new systems (e.g., SQL on Hadoop, cloud DBaaS) . Complemented by NoSQL abstractions, Microsoft see lecture 10 NoSQL (key-value, document, graph) INF.01014UF Databases / 706.004 Databases 1 – 05 Query Languages (SQL) Matthias Boehm, Graz University of Technology, SS 2019 5 Structured Query Language (SQL) INF.01014UF Databases / 706.004 Databases 1 – 05 Query Languages (SQL) Matthias Boehm, Graz University of Technology, SS 2019 Structured Query Language (SQL) 6 Overview SQL .
    [Show full text]
  • Unit-4: Database Management System
    Page 1 of 21 Unit-4: Database Management System Contents: Introduction to DBMS, DBMS Models, SQL, Database Design and Data Security, Data Warehouse, Data Mining, Database Administrator What is Database? Database is a collection of related data and data is a collection of facts and figures that can be processed to produce information. Mostly data represents recordable facts. Data aids in producing information, which is based on facts. For example, if we have data about marks obtained by all students, we can then conclude about toppers and average marks. A database management system stores data in such a way that it becomes easier to retrieve, manipulate, and produce information. Characteristics of DBMS Real-world entity: A modern DBMS is more realistic and uses real-world entities to design its architecture. It uses the behavior and attributes too. For example, a school database may use students as an entity and their age as an attribute. Relation-based tables: DBMS allows entities and relations among them to form tables. A user can understand the architecture of a database just by looking at the table names. Isolation of data and application: A database system is entirely different than its data. A database is an active entity, whereas data is said to be passive, on which the database works and organizes. DBMS also stores metadata, which is data about data, to ease its own process. Less redundancy: DBMS follows the rules of normalization, which splits a relation when any of its attributes is having redundancy in values. Normalization is a mathematically rich and scientific process that reduces data redundancy.
    [Show full text]
  • Database Management Systems Ebooks for All Edition (
    Database Management Systems eBooks For All Edition (www.ebooks-for-all.com) PDF generated using the open source mwlib toolkit. See http://code.pediapress.com/ for more information. PDF generated at: Sun, 20 Oct 2013 01:48:50 UTC Contents Articles Database 1 Database model 16 Database normalization 23 Database storage structures 31 Distributed database 33 Federated database system 36 Referential integrity 40 Relational algebra 41 Relational calculus 53 Relational database 53 Relational database management system 57 Relational model 59 Object-relational database 69 Transaction processing 72 Concepts 76 ACID 76 Create, read, update and delete 79 Null (SQL) 80 Candidate key 96 Foreign key 98 Unique key 102 Superkey 105 Surrogate key 107 Armstrong's axioms 111 Objects 113 Relation (database) 113 Table (database) 115 Column (database) 116 Row (database) 117 View (SQL) 118 Database transaction 120 Transaction log 123 Database trigger 124 Database index 130 Stored procedure 135 Cursor (databases) 138 Partition (database) 143 Components 145 Concurrency control 145 Data dictionary 152 Java Database Connectivity 154 XQuery API for Java 157 ODBC 163 Query language 169 Query optimization 170 Query plan 173 Functions 175 Database administration and automation 175 Replication (computing) 177 Database Products 183 Comparison of object database management systems 183 Comparison of object-relational database management systems 185 List of relational database management systems 187 Comparison of relational database management systems 190 Document-oriented database 213 Graph database 217 NoSQL 226 NewSQL 232 References Article Sources and Contributors 234 Image Sources, Licenses and Contributors 240 Article Licenses License 241 Database 1 Database A database is an organized collection of data.
    [Show full text]