The document discusses different types of SQL statements including DDL, DML, and DCL. It defines each type and provides examples of common commands. It also covers topics like integrity constraints, aggregate functions, and set operations in SQL.
Islamic University Previous Year Question Solution 2018 (ADBMS)Rakibul Hasan Pranto
A database management system (DBMS) is software designed to define, manipulate, retrieve, and manage data in a database. The primary goal of a DBMS is to provide convenient and efficient ways to store and retrieve database information. It manages data by defining the structure for storing information and providing mechanisms for manipulating that information.
This document provides an introduction and overview of key concepts related to SQL Server databases including:
- The database engine and its role in storing, processing, and securing data
- System and user databases
- Database objects like tables, views, indexes, stored procedures
- Structured Query Language (SQL) and its sublanguages for data definition, manipulation, and transaction control
- Guidelines for writing SQL statements
- Creating and using databases along with creating tables and defining data types and constraints
This document provides an introduction and overview of database management systems (DBMS) and MySQL. It discusses what a DBMS is, the benefits it provides like data security and consistency. It also covers relational database concepts like tables, rows, columns and keys. The document demonstrates how to install MySQL and describes the different components of structured query language (SQL) like DDL, DML, DCL and TCL. It defines SQL data types, constraints and provides examples to illustrate concepts.
This document provides examples and explanations of various SQL concepts including:
1. It describes the advantages of DBMS such as minimizing redundancy, eliminating redundancy, sharing data securely, improving flexibility, and ensuring data integrity.
2. It explains different types of SQL commands - DDL for defining database schema, DML for manipulating data, and DCL for controlling access. Examples are provided for commands like CREATE, ALTER, DROP, SELECT, INSERT, UPDATE, DELETE, GRANT, REVOKE.
3. It defines joins and explains different types of joins like inner join, outer joins, self join and cartesian joins that are used to combine data from multiple tables.
A database management system (DBMS) is system software that allows for the creation, management, and use of databases, making it easier to create, retrieve, update and manage large amounts of data in an organized manner. The document discusses the definition, importance, implementation, requirements, and challenges of a DBMS, as well as entity relationship diagrams, modeling, and security concepts related to databases. In conclusion, a DBMS is an effective system for systematic data management that is widely used around the world.
Database questions and answers document containing:
1. SQL queries for fetching data from tables using SELECT and WHERE clauses.
2. Joins to retrieve data from multiple tables using SELECT, FROM, and WHERE clauses.
3. Differences between unique key and primary key including allowing null values and number allowed per table.
4. Uses and types of indexes to improve query performance including on single or multiple columns.
5. Purpose and examples of foreign key constraints to maintain referential integrity.
6. Aggregate functions like AVG, COUNT, MAX used in queries.
SQL stands for Structured Query Language
SQL lets you access and manipulate databases
SQL became a standard of the American National Standards Institute (ANSI) in 1986, and of the International Organization for Standardization (ISO) in 1987
Islamic University Previous Year Question Solution 2018 (ADBMS)Rakibul Hasan Pranto
A database management system (DBMS) is software designed to define, manipulate, retrieve, and manage data in a database. The primary goal of a DBMS is to provide convenient and efficient ways to store and retrieve database information. It manages data by defining the structure for storing information and providing mechanisms for manipulating that information.
This document provides an introduction and overview of key concepts related to SQL Server databases including:
- The database engine and its role in storing, processing, and securing data
- System and user databases
- Database objects like tables, views, indexes, stored procedures
- Structured Query Language (SQL) and its sublanguages for data definition, manipulation, and transaction control
- Guidelines for writing SQL statements
- Creating and using databases along with creating tables and defining data types and constraints
This document provides an introduction and overview of database management systems (DBMS) and MySQL. It discusses what a DBMS is, the benefits it provides like data security and consistency. It also covers relational database concepts like tables, rows, columns and keys. The document demonstrates how to install MySQL and describes the different components of structured query language (SQL) like DDL, DML, DCL and TCL. It defines SQL data types, constraints and provides examples to illustrate concepts.
This document provides examples and explanations of various SQL concepts including:
1. It describes the advantages of DBMS such as minimizing redundancy, eliminating redundancy, sharing data securely, improving flexibility, and ensuring data integrity.
2. It explains different types of SQL commands - DDL for defining database schema, DML for manipulating data, and DCL for controlling access. Examples are provided for commands like CREATE, ALTER, DROP, SELECT, INSERT, UPDATE, DELETE, GRANT, REVOKE.
3. It defines joins and explains different types of joins like inner join, outer joins, self join and cartesian joins that are used to combine data from multiple tables.
A database management system (DBMS) is system software that allows for the creation, management, and use of databases, making it easier to create, retrieve, update and manage large amounts of data in an organized manner. The document discusses the definition, importance, implementation, requirements, and challenges of a DBMS, as well as entity relationship diagrams, modeling, and security concepts related to databases. In conclusion, a DBMS is an effective system for systematic data management that is widely used around the world.
Database questions and answers document containing:
1. SQL queries for fetching data from tables using SELECT and WHERE clauses.
2. Joins to retrieve data from multiple tables using SELECT, FROM, and WHERE clauses.
3. Differences between unique key and primary key including allowing null values and number allowed per table.
4. Uses and types of indexes to improve query performance including on single or multiple columns.
5. Purpose and examples of foreign key constraints to maintain referential integrity.
6. Aggregate functions like AVG, COUNT, MAX used in queries.
SQL stands for Structured Query Language
SQL lets you access and manipulate databases
SQL became a standard of the American National Standards Institute (ANSI) in 1986, and of the International Organization for Standardization (ISO) in 1987
Statements,joins and operators in sql by thanveer danish melayi(1)Muhammed Thanveer M
This document discusses SQL statements, operators, and joins. It describes three types of SQL statements - DML, DDL, and DCL - and provides examples. It also explains four types of joins - inner, full, left, and right joins - and provides syntax examples. Finally, it outlines different types of SQL operators like arithmetic, comparison, and logical operators and provides a sample query using logical operators.
MySQL is a popular and freely available open-source relational database management system (RDBMS). It stores data in tables and relationships between data are also stored in tables. MySQL uses SQL and works on many operating systems. It has commands for data definition (CREATE, ALTER, DROP), data manipulation (SELECT, INSERT, UPDATE, DELETE), transaction control (COMMIT, ROLLBACK), and data access control (GRANT, REVOKE). Joins allow retrieving data from multiple tables by linking rows together. Common join types are inner joins, outer joins, and self joins.
DATABASE MANAGMENT SYSTEM (DBMS) AND SQLDev Chauhan
(i) DDL (Data Definition Language) is used to define the schema of the database. It is used to create, modify or delete definitions of database objects like tables, indexes, views etc.
(ii) DML (Data Manipulation Language) is used to manipulate the data present in the database. It is used to insert, update or delete rows/records from tables. Examples are SELECT, INSERT, UPDATE, DELETE statements.
(iii) Primary Key is a column or set of columns in a table that uniquely identifies each row/record in the table. It must contain unique values and cannot contain NULL values.
(iv) Candidate Key is a column or set of columns that can uniquely identify rows/records in a
This document contains questions and answers related to database testing. It discusses testing data validity, integrity, performance, procedures, triggers and functions. It also describes primary keys, foreign keys, NULL values, differences between Oracle, SQL and SQL Server. Database indexing, isolation levels, and creating indexes on all columns are also covered.
This document provides an overview of the relational database language SQL. It begins by defining basic data types in SQL like numbers, characters, dates and times. It then discusses the SQL Data Definition Language (DDL) which is used to define and modify database schemas and objects. Specific DDL commands like CREATE, DROP, ALTER, TRUNCATE and RENAME are described. The document also covers the SQL Data Manipulation Language (DML) including commands for queries, inserts, updates and deletes. Additional topics discussed include constraints, indexes, views and the advantages of SQL.
SQL is a language used to store, retrieve, and manage data in relational database management systems. It contains commands like SELECT, INSERT, UPDATE, DELETE to query and manipulate data. SQL also allows functions, operators, transactions, and other capabilities to ensure data integrity and security. Integrity constraints like primary keys and foreign keys help maintain relational integrity between tables.
This document discusses SQL fundamentals including what is data, databases, database management systems, and relational databases. It defines key concepts like tables, rows, columns, and relationships. It describes different types of DBMS like hierarchical, network, relational, and object oriented. The document also covers SQL commands like SELECT, INSERT, UPDATE, DELETE, constraints, functions and more. It provides examples of SQL queries and functions.
This document provides an overview of Oracle SQL and its key components. It covers data types, SQL statements including DDL, DML, DQL, DCL, TCL, and system control statements. It also discusses constraints, joins, set operators, clauses, expressions and operators, functions, subqueries, views, indexes, and other Oracle-specific components like sequences, synonyms, and database links. Examples are provided for many SQL statements. The document is intended as a reference for the Oracle 11g SQL exam.
A relational database management system (RDBMS) is a database management system that is based on the relational model. An RDBMS makes it possible for end users to create, read, update and delete data in a database systematically. Normalization is a technique used to organize data in a database to eliminate redundancy and improve data integrity. It involves decomposing tables and relations to their lowest sets of attributes. Some common types of normalization forms are first normal form, second normal form, third normal form and Boyce-Codd normal form.
This document discusses various topics related to enterprise resource planning (ERP) systems and technologies. It defines ERP as business process management software that integrates applications to manage business functions. It describes the typical lifecycle of an ERP implementation project, including pre-evaluation, evaluation, project planning, gap analysis, reengineering, training, testing, and post-implementation. It also discusses ERP-related technologies like business intelligence, supply chain management, and customer relationship management.
The document discusses various components and concepts related to database management systems (DBMS). It defines a database as a collection of related data organized for easy access, management, and updating. It describes the main components of a DBMS as hardware, software, data, procedures, and database access language. It also discusses key DBMS concepts like data definition language, data manipulation language, functions, constraints, and having clause.
The document provides information about Structured Query Language (SQL) including its basic concepts, data types, CREATE TABLE and INSERT commands, constraints, operators and data modifications. It defines key SQL concepts such as relations, attributes, tuples, primary keys, foreign keys and discusses SQL's capabilities for data definition, manipulation, queries and transaction control. Examples are given for creating a table and inserting records into the table.
The document provides an introduction to SQL and database concepts. It defines key terms like data, information, fields, records, databases, tuples, attributes, primary keys, and foreign keys. It also describes SQL commands for creating tables, inserting data, querying data using conditions, sorting results, and using aggregate functions. Common data types and constraints in SQL are explained. Functions for mathematical operations, string manipulation and date/time are also listed.
This document discusses Python database programming. It introduces databases and how they store data in tables connected through columns. It discusses SQL for creating, accessing, and manipulating database data. It then discusses how Python supports various databases and database operations. It covers the Python DB-API for providing a standard interface for database programming. It provides examples of connecting to a database, executing queries, and retrieving and inserting data.
SQL is a standard language for accessing and manipulating databases. It allows users to retrieve, insert, update, and delete data as well as create, modify and delete tables. The main SQL commands are grouped into four categories: data definition language for creating/modifying database structures, data manipulation language for interacting with data, transaction control language for managing transactions, and data control language for security. Common SQL commands include CREATE, SELECT, INSERT, UPDATE, DELETE, ALTER, and DROP.
The document discusses relational databases and database management systems, including what a database is, the different levels of data abstraction (physical, logical, and view levels), purposes of databases like storage and security of data, database languages used to define, manipulate and control data, and relational database concepts such as tables, rows, columns, keys, and relational operations. It also covers database architecture, the relational model using tables, tuples, attributes, domains and keys, and relational algebra operations like selection, projection, joins, and set operations.
The document discusses various SQL Server concepts and features including:
1) Encrypted stored procedures, linked servers, Analysis Services features like OLAP and data mining models.
2) The Analysis Services repository stores metadata for cubes and data sources. SQL Service Broker allows asynchronous messaging between databases.
3) User-defined data types are based on system types and ensure columns store the same type of data. Data types like bit store 0, 1, or null values.
This document contains information about a database management systems practical file submitted by Sachin for their fourth semester computer science course. It includes an index of experiments completed and sections covering database languages like DDL, DML, and DCL. It also discusses topics like data types in SQL, set operations, joins, query processing, and constraints.
This document provides an overview of structured query language (SQL) and basic database concepts. It defines common database terms like data, information, fields, records, tuples, attributes, and keys. It also describes SQL's data definition language for creating tables, data manipulation language for inserting, updating and deleting data, and transaction control language. The document outlines various SQL data types, constraints, operators and functions. It provides examples of SQL commands for creating tables, inserting data, querying with select statements, and ordering and grouping query results.
Statements,joins and operators in sql by thanveer danish melayi(1)Muhammed Thanveer M
This document discusses SQL statements, operators, and joins. It describes three types of SQL statements - DML, DDL, and DCL - and provides examples. It also explains four types of joins - inner, full, left, and right joins - and provides syntax examples. Finally, it outlines different types of SQL operators like arithmetic, comparison, and logical operators and provides a sample query using logical operators.
MySQL is a popular and freely available open-source relational database management system (RDBMS). It stores data in tables and relationships between data are also stored in tables. MySQL uses SQL and works on many operating systems. It has commands for data definition (CREATE, ALTER, DROP), data manipulation (SELECT, INSERT, UPDATE, DELETE), transaction control (COMMIT, ROLLBACK), and data access control (GRANT, REVOKE). Joins allow retrieving data from multiple tables by linking rows together. Common join types are inner joins, outer joins, and self joins.
DATABASE MANAGMENT SYSTEM (DBMS) AND SQLDev Chauhan
(i) DDL (Data Definition Language) is used to define the schema of the database. It is used to create, modify or delete definitions of database objects like tables, indexes, views etc.
(ii) DML (Data Manipulation Language) is used to manipulate the data present in the database. It is used to insert, update or delete rows/records from tables. Examples are SELECT, INSERT, UPDATE, DELETE statements.
(iii) Primary Key is a column or set of columns in a table that uniquely identifies each row/record in the table. It must contain unique values and cannot contain NULL values.
(iv) Candidate Key is a column or set of columns that can uniquely identify rows/records in a
This document contains questions and answers related to database testing. It discusses testing data validity, integrity, performance, procedures, triggers and functions. It also describes primary keys, foreign keys, NULL values, differences between Oracle, SQL and SQL Server. Database indexing, isolation levels, and creating indexes on all columns are also covered.
This document provides an overview of the relational database language SQL. It begins by defining basic data types in SQL like numbers, characters, dates and times. It then discusses the SQL Data Definition Language (DDL) which is used to define and modify database schemas and objects. Specific DDL commands like CREATE, DROP, ALTER, TRUNCATE and RENAME are described. The document also covers the SQL Data Manipulation Language (DML) including commands for queries, inserts, updates and deletes. Additional topics discussed include constraints, indexes, views and the advantages of SQL.
SQL is a language used to store, retrieve, and manage data in relational database management systems. It contains commands like SELECT, INSERT, UPDATE, DELETE to query and manipulate data. SQL also allows functions, operators, transactions, and other capabilities to ensure data integrity and security. Integrity constraints like primary keys and foreign keys help maintain relational integrity between tables.
This document discusses SQL fundamentals including what is data, databases, database management systems, and relational databases. It defines key concepts like tables, rows, columns, and relationships. It describes different types of DBMS like hierarchical, network, relational, and object oriented. The document also covers SQL commands like SELECT, INSERT, UPDATE, DELETE, constraints, functions and more. It provides examples of SQL queries and functions.
This document provides an overview of Oracle SQL and its key components. It covers data types, SQL statements including DDL, DML, DQL, DCL, TCL, and system control statements. It also discusses constraints, joins, set operators, clauses, expressions and operators, functions, subqueries, views, indexes, and other Oracle-specific components like sequences, synonyms, and database links. Examples are provided for many SQL statements. The document is intended as a reference for the Oracle 11g SQL exam.
A relational database management system (RDBMS) is a database management system that is based on the relational model. An RDBMS makes it possible for end users to create, read, update and delete data in a database systematically. Normalization is a technique used to organize data in a database to eliminate redundancy and improve data integrity. It involves decomposing tables and relations to their lowest sets of attributes. Some common types of normalization forms are first normal form, second normal form, third normal form and Boyce-Codd normal form.
This document discusses various topics related to enterprise resource planning (ERP) systems and technologies. It defines ERP as business process management software that integrates applications to manage business functions. It describes the typical lifecycle of an ERP implementation project, including pre-evaluation, evaluation, project planning, gap analysis, reengineering, training, testing, and post-implementation. It also discusses ERP-related technologies like business intelligence, supply chain management, and customer relationship management.
The document discusses various components and concepts related to database management systems (DBMS). It defines a database as a collection of related data organized for easy access, management, and updating. It describes the main components of a DBMS as hardware, software, data, procedures, and database access language. It also discusses key DBMS concepts like data definition language, data manipulation language, functions, constraints, and having clause.
The document provides information about Structured Query Language (SQL) including its basic concepts, data types, CREATE TABLE and INSERT commands, constraints, operators and data modifications. It defines key SQL concepts such as relations, attributes, tuples, primary keys, foreign keys and discusses SQL's capabilities for data definition, manipulation, queries and transaction control. Examples are given for creating a table and inserting records into the table.
The document provides an introduction to SQL and database concepts. It defines key terms like data, information, fields, records, databases, tuples, attributes, primary keys, and foreign keys. It also describes SQL commands for creating tables, inserting data, querying data using conditions, sorting results, and using aggregate functions. Common data types and constraints in SQL are explained. Functions for mathematical operations, string manipulation and date/time are also listed.
This document discusses Python database programming. It introduces databases and how they store data in tables connected through columns. It discusses SQL for creating, accessing, and manipulating database data. It then discusses how Python supports various databases and database operations. It covers the Python DB-API for providing a standard interface for database programming. It provides examples of connecting to a database, executing queries, and retrieving and inserting data.
SQL is a standard language for accessing and manipulating databases. It allows users to retrieve, insert, update, and delete data as well as create, modify and delete tables. The main SQL commands are grouped into four categories: data definition language for creating/modifying database structures, data manipulation language for interacting with data, transaction control language for managing transactions, and data control language for security. Common SQL commands include CREATE, SELECT, INSERT, UPDATE, DELETE, ALTER, and DROP.
The document discusses relational databases and database management systems, including what a database is, the different levels of data abstraction (physical, logical, and view levels), purposes of databases like storage and security of data, database languages used to define, manipulate and control data, and relational database concepts such as tables, rows, columns, keys, and relational operations. It also covers database architecture, the relational model using tables, tuples, attributes, domains and keys, and relational algebra operations like selection, projection, joins, and set operations.
The document discusses various SQL Server concepts and features including:
1) Encrypted stored procedures, linked servers, Analysis Services features like OLAP and data mining models.
2) The Analysis Services repository stores metadata for cubes and data sources. SQL Service Broker allows asynchronous messaging between databases.
3) User-defined data types are based on system types and ensure columns store the same type of data. Data types like bit store 0, 1, or null values.
This document contains information about a database management systems practical file submitted by Sachin for their fourth semester computer science course. It includes an index of experiments completed and sections covering database languages like DDL, DML, and DCL. It also discusses topics like data types in SQL, set operations, joins, query processing, and constraints.
This document provides an overview of structured query language (SQL) and basic database concepts. It defines common database terms like data, information, fields, records, tuples, attributes, and keys. It also describes SQL's data definition language for creating tables, data manipulation language for inserting, updating and deleting data, and transaction control language. The document outlines various SQL data types, constraints, operators and functions. It provides examples of SQL commands for creating tables, inserting data, querying with select statements, and ordering and grouping query results.
Similar to SQL and Integrity Constraints (2).pptx (20)
Thinking of getting a dog? Be aware that breeds like Pit Bulls, Rottweilers, and German Shepherds can be loyal and dangerous. Proper training and socialization are crucial to preventing aggressive behaviors. Ensure safety by understanding their needs and always supervising interactions. Stay safe, and enjoy your furry friends!
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...Levi Shapiro
Letter from the Congress of the United States regarding Anti-Semitism sent June 3rd to MIT President Sally Kornbluth, MIT Corp Chair, Mark Gorenberg
Dear Dr. Kornbluth and Mr. Gorenberg,
The US House of Representatives is deeply concerned by ongoing and pervasive acts of antisemitic
harassment and intimidation at the Massachusetts Institute of Technology (MIT). Failing to act decisively to ensure a safe learning environment for all students would be a grave dereliction of your responsibilities as President of MIT and Chair of the MIT Corporation.
This Congress will not stand idly by and allow an environment hostile to Jewish students to persist. The House believes that your institution is in violation of Title VI of the Civil Rights Act, and the inability or
unwillingness to rectify this violation through action requires accountability.
Postsecondary education is a unique opportunity for students to learn and have their ideas and beliefs challenged. However, universities receiving hundreds of millions of federal funds annually have denied
students that opportunity and have been hijacked to become venues for the promotion of terrorism, antisemitic harassment and intimidation, unlawful encampments, and in some cases, assaults and riots.
The House of Representatives will not countenance the use of federal funds to indoctrinate students into hateful, antisemitic, anti-American supporters of terrorism. Investigations into campus antisemitism by the Committee on Education and the Workforce and the Committee on Ways and Means have been expanded into a Congress-wide probe across all relevant jurisdictions to address this national crisis. The undersigned Committees will conduct oversight into the use of federal funds at MIT and its learning environment under authorities granted to each Committee.
• The Committee on Education and the Workforce has been investigating your institution since December 7, 2023. The Committee has broad jurisdiction over postsecondary education, including its compliance with Title VI of the Civil Rights Act, campus safety concerns over disruptions to the learning environment, and the awarding of federal student aid under the Higher Education Act.
• The Committee on Oversight and Accountability is investigating the sources of funding and other support flowing to groups espousing pro-Hamas propaganda and engaged in antisemitic harassment and intimidation of students. The Committee on Oversight and Accountability is the principal oversight committee of the US House of Representatives and has broad authority to investigate “any matter” at “any time” under House Rule X.
• The Committee on Ways and Means has been investigating several universities since November 15, 2023, when the Committee held a hearing entitled From Ivory Towers to Dark Corners: Investigating the Nexus Between Antisemitism, Tax-Exempt Universities, and Terror Financing. The Committee followed the hearing with letters to those institutions on January 10, 202
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...NelTorrente
In this research, it concludes that while the readiness of teachers in Caloocan City to implement the MATATAG Curriculum is generally positive, targeted efforts in professional development, resource distribution, support networks, and comprehensive preparation can address the existing gaps and ensure successful curriculum implementation.
This slide is special for master students (MIBS & MIFB) in UUM. Also useful for readers who are interested in the topic of contemporary Islamic banking.
Executive Directors Chat Leveraging AI for Diversity, Equity, and InclusionTechSoup
Let’s explore the intersection of technology and equity in the final session of our DEI series. Discover how AI tools, like ChatGPT, can be used to support and enhance your nonprofit's DEI initiatives. Participants will gain insights into practical AI applications and get tips for leveraging technology to advance their DEI goals.
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
2. Concept of DDL, DML, DCL
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.
3.
4. DDL – Data Definition Language
Data Definition Language actually consists of the SQL commands that
can be used to define the database schema. It simply deals with
descriptions of the database schema and is used to create and modify
the structure of database objects in the database.DDL is a set of SQL
commands used to create, modify, and delete database structures but
not data. These commands are normally not used by a general user,
who should be accessing the database via an application.
5. ● CREATE: This command is used to create the database or its objects
(like table, index, function, views, store procedure, and triggers).
● DROP: This command is used to delete objects from the database.
● ALTER: This is used to alter the structure of the database.
● TRUNCATE: This is used to remove all records from a table,
including all spaces allocated for the records are removed.
● COMMENT: This is used to add comments to the data dictionary.
● RENAME: This is used to rename an object existing in the database.
6. DQL (Data Query Language)
DQL statements are used for performing queries on the data within
schema objects. The purpose of the DQL Command is to get some
schema relation based on the query passed to it. We can define
DQL as follows it is a component of SQL statement that allows
getting data from the database and imposing order upon it. It
includes the SELECT statement. This command allows getting the
data out of the database to perform operations with it. When a
SELECT is fired against a table or tables the result is compiled into
a further temporary table, which is displayed or perhaps received
by the program i.e. a front-end.
7. ● SELECT: It is used to retrieve data from the database.
8. DML(Data Manipulation Language)
DML or Data Manipulation Language and this includes most of
the SQL statements. It is the component of the SQL statement
that controls access to data and to the database. Basically, DCL
statements are grouped with DML statements
9. ● INSERT: It is used to insert data into a table.
● UPDATE: It is used to update existing data within a
table.
● DELETE : It is used to delete records from a database
table.
● LOCK: Table control concurrency.
● CALL: Call a PL/SQL or JAVA subprogram.
● EXPLAIN PLAN: It describes the access path to data.
10. DCL (Data Control Language)
DCL includes commands such as GRANT and REVOKE which mainly
deal with the rights, permissions, and other controls of the database
system.
● GRANT:This command gives users access privileges to the database.
● REVOKE: This command withdraws the user’s access privileges given by using the GRANT command.
12. ● Applications: – It can be considered as a user-friendly web
page where the user enters the requests. Here he simply...
● End User: – They are the real users of the database. They
can be developers, designers, administrators, or the
actual...
● DDL: – Data Definition Language (DDL) is a query fired to
create database, schema, tables, mappings, etc in the
database.
● DDL Compiler: – This part of the database is responsible
for processing the DDL commands. That means this
compiler...
13. Set operations
Union
Union combines two different results obtained by a query into a single result in the form of
a table. However, the results should be similar if union is to be applied on them.
Syntex:
Select Student_Name from Art_Students
UNION
Select Student_Name from Dance_Students
14. Intersection
The intersection operator gives the common data values between the two data
sets that are intersected. The two data sets that are intersected should be similar
for the intersection operator to work. Intersection also removes all duplicates
before displaying the result.
Syntex:
Select Student_Name from Art_Students
INTERSECT
Select Student_Name from Dance_Students
16. COUNT FUNCTION
● COUNT function is used to Count the number of rows in a database table. It can work on both numeric and non-
numeric data types.
● COUNT function uses the COUNT(*) that returns the count of all the rows in a specified table. COUNT(*)
considers duplicate and Null.
Syntax
1. COUNT(*)
2. or
3. COUNT( [ALL|DISTINCT] expression )
17. SUM Function
Sum function is used to calculate the sum of all selected columns. It works on numeric fields only.
Syntax
1. SUM()
2. or
3. SUM( [ALL|DISTINCT] expression )
18. AVG function
The AVG function is used to calculate the average value of the numeric type. AVG function returns the average of all
non-Null values.
Syntax
1. AVG()
2. or
3. AVG( [ALL|DISTINCT] expression )
19. MAX Function
MAX function is used to find the maximum value of a certain column. This function determines the largest value of all
selected values of a column.
Syntax
MAX()
1. or
2. MAX( [ALL|DISTINCT] expression )
20. MIN Function
MIN function is used to find the minimum value of a certain column. This function determines the smallest value of all selected
values of a column.
Syntax
1. MIN()
2. or
3. MIN( [ALL|DISTINCT] expression )
22. Domain Constraints
Domain Constraints are user-defined columns that help the user
to enter the value according to the data type. And if it encounters
a wrong input it gives the message to the user that the column is
not fulfilled properly. Or in other words, it is an attribute that
specifies all the possible values that the attribute can hold like
integer, character, date, time, string, etc.
23. Domain Constraints – Not Null: Null values are the values that are unassigned or we can also say that which are
unknown or the missing attribute values and by default, a column can hold the null values.
Create table employee
(employee_id varchar(30),
employee_name varchar(30) not null,
salary NUMBER);
24. Domain Constraints – Check: It defines a condition that each row must satisfy which means it restricts the
value of a column between ranges or we can say that it is just like a condition or filter checking before saving
data into a column. It ensures that when a tuple is inserted inside the relation must satisfy the predicate
given in the check clause.
Create table employee
(employee_id varchar(30) not
null check(employee_id > 0),
employee_name varchar(30),
salary NUMBER);
26. Domain constraints
● Domain constraints can be defined as the definition of a valid set of
values for an attribute.
● The data type of domain includes string, character, integer, time, date,
currency, etc. The value of the attribute must be available in the
corresponding domain.
27. Entity integrity constraints
● The entity integrity constraint states that primary key value can't be null.
● This is because the primary key value is used to identify individual rows in
relation and if the primary key has a null value, then we can't identify those
rows.
● A table can contain a null value other than the primary key field.
28. Referential Integrity Constraints
● A referential integrity constraint is specified between two tables.
● In the Referential integrity constraints, if a foreign key in Table 1
refers to the Primary Key of Table 2, then every value of the Foreign
Key in Table 1 must be null or be available in Table 2.
29. Key constraints
● Keys are the entity set that is used to identify an entity within its entity
set uniquely.
● An entity set can have multiple keys, but out of which one key will be
the primary key. A primary key can contain a unique and null value in
the relational table.