A database is a collection of organized data that can be easily accessed and managed. A database management system (DBMS) is software that helps create and manage databases. The relational data model organizes data into tables with rows and columns. Structured Query Language (SQL) is a standardized language used to perform tasks like data retrieval, insertion, deletion, and updating in a relational database. Common SQL commands include DDL commands to define the database schema, DML commands to manipulate data, and DCL commands to control transactions.
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
The document provides an overview of key database concepts including:
- A database is a collection of logically related information stored and managed using database management system software.
- Relational databases organize data into tables with rows and columns and use keys to link related data across tables. Structured Query Language (SQL) is used to perform operations like data queries and manipulation.
- Database management involves tasks like defining the database structure with data definition language statements, manipulating data with data manipulation language statements, and running queries with the SELECT statement to retrieve and work with data in the database.
The document discusses different types of query languages used to retrieve data from a database. It states that there are two main types: procedural query languages and non-procedural query languages. Procedural query languages require the user to specify the step-by-step process to retrieve data, while non-procedural languages only require the user to specify what data to retrieve without how. Relational algebra is provided as an example of a procedural query language, while relational calculus is given as a non-procedural language. SQL is described as a practical implementation of both relational algebra and relational calculus used to interact with relational databases.
This document provides an introduction to SQL (Structured Query Language). SQL is a language used to define, query, modify, and control relational databases. The document outlines the main SQL commands for data definition (CREATE, ALTER, DROP), data manipulation (INSERT, UPDATE, DELETE), and data control (GRANT, REVOKE). It also discusses SQL data types, integrity constraints, and how to use SELECT statements to query databases using projections, selections, comparisons, logical conditions, and ordering. The FROM clause is introduced as specifying the relations involved in a query.
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.
1. The document provides an overview of MySQL concepts including databases, tables, keys, and SQL commands.
2. It defines databases, DBMS, relational databases, RDBMS, benefits of using a DBMS, and introduces MySQL as an open source RDBMS.
3. It also covers SQL commands like SELECT, INSERT, UPDATE, DELETE and concepts like data types, constraints, indexes and functions.
This document provides an overview of databases and SQL. It begins by defining what a database is and the different types, including relational and non-relational databases. It then explains what SQL is and how it is used to perform CRUD operations on relational databases. The document outlines database structure and what tables are. It also describes key SQL concepts like data types, commands, queries, constraints, joins and more.
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
The document provides an overview of key database concepts including:
- A database is a collection of logically related information stored and managed using database management system software.
- Relational databases organize data into tables with rows and columns and use keys to link related data across tables. Structured Query Language (SQL) is used to perform operations like data queries and manipulation.
- Database management involves tasks like defining the database structure with data definition language statements, manipulating data with data manipulation language statements, and running queries with the SELECT statement to retrieve and work with data in the database.
The document discusses different types of query languages used to retrieve data from a database. It states that there are two main types: procedural query languages and non-procedural query languages. Procedural query languages require the user to specify the step-by-step process to retrieve data, while non-procedural languages only require the user to specify what data to retrieve without how. Relational algebra is provided as an example of a procedural query language, while relational calculus is given as a non-procedural language. SQL is described as a practical implementation of both relational algebra and relational calculus used to interact with relational databases.
This document provides an introduction to SQL (Structured Query Language). SQL is a language used to define, query, modify, and control relational databases. The document outlines the main SQL commands for data definition (CREATE, ALTER, DROP), data manipulation (INSERT, UPDATE, DELETE), and data control (GRANT, REVOKE). It also discusses SQL data types, integrity constraints, and how to use SELECT statements to query databases using projections, selections, comparisons, logical conditions, and ordering. The FROM clause is introduced as specifying the relations involved in a query.
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.
1. The document provides an overview of MySQL concepts including databases, tables, keys, and SQL commands.
2. It defines databases, DBMS, relational databases, RDBMS, benefits of using a DBMS, and introduces MySQL as an open source RDBMS.
3. It also covers SQL commands like SELECT, INSERT, UPDATE, DELETE and concepts like data types, constraints, indexes and functions.
This document provides an overview of databases and SQL. It begins by defining what a database is and the different types, including relational and non-relational databases. It then explains what SQL is and how it is used to perform CRUD operations on relational databases. The document outlines database structure and what tables are. It also describes key SQL concepts like data types, commands, queries, constraints, joins and more.
This document provides an overview of SQL and MySQL. It discusses that MySQL is an open source relational database management system that uses SQL. SQL allows users to create, access, and manage relational databases. The document then covers relational data models and terminology used in relational databases like tables, rows, columns, primary keys, and foreign keys. It also discusses SQL commands for data definition, manipulation, and control. Finally, it provides examples of SQL queries to retrieve, insert, update and structure data from tables in a MySQL database.
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.
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.
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.
SQL is a standard language used to manage data in relational database systems. The SELECT statement is used to retrieve data from databases. It allows specifying columns, tables, filters and sorting. Common clauses include SELECT, FROM, WHERE, ORDER BY, and optional clauses like DISTINCT, GROUP BY and HAVING. Operators allow filtering rows by conditions, ranges, patterns and more. SQL is a non-procedural language used to perform queries, inserts, updates and deletes on a relational database.
SQL is a standard language used to access and manage relational database systems. It was originally developed in the 1970s at IBM for use in database management systems. Some popular database systems that support SQL include MySQL, PostgreSQL, Oracle, SQLite, and Microsoft SQL Server. SQL allows users to define and manipulate the structure and data of databases through commands like SELECT, INSERT, UPDATE, DELETE, and more.
SQL is a standard language for storing, manipulating and retrieving data in databases. It allows users to access and manipulate data in databases. Some key functions of SQL include executing queries against a database, retrieving data from a database, inserting, updating and deleting records in a database, and creating, altering and dropping database objects like tables.
- A database is an organized collection of data stored together to serve applications. Most databases store data in tables which can be managed using RDBMS software like MySQL.
- MySQL is an open source and free RDBMS that uses SQL and allows storing, modifying, and querying data across various platforms. It provides features like security, connectivity, and transaction control.
- SQL commands allow defining the database structure using DDL, manipulating data using DML, and controlling transactions with TCL. Common queries include SELECT, INSERT, UPDATE, DELETE. Functions and clauses like WHERE, ORDER BY, GROUP BY etc. filter and organize query results.
SQL commands can be classified into DDL, DML, and DCL. DDL commands allow users to define and modify database schema by creating/deleting tables and imposing constraints. DML commands allow users to manipulate data by inserting, updating, deleting, and extracting data from tables. Common DDL commands include CREATE TABLE and ALTER TABLE. Common DML commands include SELECT, INSERT, UPDATE, and DELETE. SQL also supports pattern matching using wildcards like % and _ in the LIKE operator.
PL/SQL provides three collection types: associative arrays, nested tables, and variable-size arrays. Associative arrays use keys to access unbounded elements, nested tables are like one-dimensional arrays with an arbitrary number of elements, and variable-size arrays store a fixed number of elements in sequential order. Both associative arrays and nested tables can have object types as elements, but only nested tables can be stored in database columns.
The document introduces common data types in SQL such as char, varchar, int, numeric, and date. It describes how to create databases and tables using SQL statements like CREATE DATABASE, CREATE TABLE, INSERT INTO, and ALTER TABLE. It also covers SQL queries using SELECT, FROM, WHERE, ORDER BY, LIKE and other clauses to retrieve and filter data from one or more tables.
An tutorial for sql learners in very easy way. It contains all the sql commands like ddl, dml, etc. with suitable examples.
at the end there are 3 sets of question with their solution with explanation. each set contains 40+ questions.
This document provides an overview of SQL and relational database concepts. It begins with a brief history of SQL and standards. It then covers data definition language to define database schemas, basic query structure using SELECT, FROM, and WHERE clauses, and additional SQL features like joins, null values, aggregate functions, and modifying databases. It provides examples of creating tables, inserting and deleting data, and performing various types of queries.
SQL (Structured Query Language) is a standard language for accessing and manipulating databases. It allows users to execute queries against a database, retrieve data from a database, insert records into a database, update records in a database, and delete records from a database. Common SQL statements include SELECT to retrieve data, INSERT to add data, UPDATE to modify data, DELETE to remove data, and CREATE/ALTER to manage tables and databases.
This document provides information about SQL and database management systems. It discusses:
- SQL is a standard language for querying, manipulating, and defining data in databases. It was developed by IBM in the 1970s.
- SQL can be used to perform functions like retrieving data from a database, inserting new records, updating existing records, and deleting records.
- The main components of SQL are DDL, DML, DCL, and DQL which allow creating, modifying and deleting database structures, manipulating data, controlling access to data, and querying data respectively.
- Common SQL statements are discussed including SELECT, INSERT, UPDATE, DELETE, ALTER, CREATE TABLE, and DROP TABLE. Data types and
Presented by,
Mr. Abhilash K
Database Architect, Livares Technologies
Introduction
About DBMS
A database management system (DBMS) is a software for
creating and managing databases. DBMS provides
users/programmers with a systematic way to create,
retrieve, update and manage data.
What is RDBMS
A type of DBMS in which the database is organized and
accessed according to the relationships between data
values. RDBMS are designed to take care of large amounts
of data and also the security of this data
This document provides an overview of SQL (Structured Query Language). It discusses SQL functions including data manipulation language (DML) and data definition language (DDL). DML commands like SELECT, UPDATE, DELETE and INSERT are covered. The SELECT statement syntax and use of clauses like WHERE, ORDER BY, GROUP BY and JOINs are explained. Aggregate functions like COUNT, AVG, SUM etc and scalar functions are also summarized. Examples are provided throughout to illustrate the concepts and syntax.
The document provides information about Structured Query Language (SQL) and its use for accessing and modifying relational databases. It discusses how SQL was originally developed at IBM in the 1970s and is now used by many database management systems like MySQL, PostgreSQL, Oracle, SQLite, and Microsoft SQL Server. The document also provides some key advantages of using SQL and describes common SQL commands for managing databases and querying data.
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxEduSkills OECD
Iván Bornacelly, Policy Analyst at the OECD Centre for Skills, OECD, presents at the webinar 'Tackling job market gaps with a skills-first approach' on 12 June 2024
This document provides an overview of SQL and MySQL. It discusses that MySQL is an open source relational database management system that uses SQL. SQL allows users to create, access, and manage relational databases. The document then covers relational data models and terminology used in relational databases like tables, rows, columns, primary keys, and foreign keys. It also discusses SQL commands for data definition, manipulation, and control. Finally, it provides examples of SQL queries to retrieve, insert, update and structure data from tables in a MySQL database.
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.
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.
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.
SQL is a standard language used to manage data in relational database systems. The SELECT statement is used to retrieve data from databases. It allows specifying columns, tables, filters and sorting. Common clauses include SELECT, FROM, WHERE, ORDER BY, and optional clauses like DISTINCT, GROUP BY and HAVING. Operators allow filtering rows by conditions, ranges, patterns and more. SQL is a non-procedural language used to perform queries, inserts, updates and deletes on a relational database.
SQL is a standard language used to access and manage relational database systems. It was originally developed in the 1970s at IBM for use in database management systems. Some popular database systems that support SQL include MySQL, PostgreSQL, Oracle, SQLite, and Microsoft SQL Server. SQL allows users to define and manipulate the structure and data of databases through commands like SELECT, INSERT, UPDATE, DELETE, and more.
SQL is a standard language for storing, manipulating and retrieving data in databases. It allows users to access and manipulate data in databases. Some key functions of SQL include executing queries against a database, retrieving data from a database, inserting, updating and deleting records in a database, and creating, altering and dropping database objects like tables.
- A database is an organized collection of data stored together to serve applications. Most databases store data in tables which can be managed using RDBMS software like MySQL.
- MySQL is an open source and free RDBMS that uses SQL and allows storing, modifying, and querying data across various platforms. It provides features like security, connectivity, and transaction control.
- SQL commands allow defining the database structure using DDL, manipulating data using DML, and controlling transactions with TCL. Common queries include SELECT, INSERT, UPDATE, DELETE. Functions and clauses like WHERE, ORDER BY, GROUP BY etc. filter and organize query results.
SQL commands can be classified into DDL, DML, and DCL. DDL commands allow users to define and modify database schema by creating/deleting tables and imposing constraints. DML commands allow users to manipulate data by inserting, updating, deleting, and extracting data from tables. Common DDL commands include CREATE TABLE and ALTER TABLE. Common DML commands include SELECT, INSERT, UPDATE, and DELETE. SQL also supports pattern matching using wildcards like % and _ in the LIKE operator.
PL/SQL provides three collection types: associative arrays, nested tables, and variable-size arrays. Associative arrays use keys to access unbounded elements, nested tables are like one-dimensional arrays with an arbitrary number of elements, and variable-size arrays store a fixed number of elements in sequential order. Both associative arrays and nested tables can have object types as elements, but only nested tables can be stored in database columns.
The document introduces common data types in SQL such as char, varchar, int, numeric, and date. It describes how to create databases and tables using SQL statements like CREATE DATABASE, CREATE TABLE, INSERT INTO, and ALTER TABLE. It also covers SQL queries using SELECT, FROM, WHERE, ORDER BY, LIKE and other clauses to retrieve and filter data from one or more tables.
An tutorial for sql learners in very easy way. It contains all the sql commands like ddl, dml, etc. with suitable examples.
at the end there are 3 sets of question with their solution with explanation. each set contains 40+ questions.
This document provides an overview of SQL and relational database concepts. It begins with a brief history of SQL and standards. It then covers data definition language to define database schemas, basic query structure using SELECT, FROM, and WHERE clauses, and additional SQL features like joins, null values, aggregate functions, and modifying databases. It provides examples of creating tables, inserting and deleting data, and performing various types of queries.
SQL (Structured Query Language) is a standard language for accessing and manipulating databases. It allows users to execute queries against a database, retrieve data from a database, insert records into a database, update records in a database, and delete records from a database. Common SQL statements include SELECT to retrieve data, INSERT to add data, UPDATE to modify data, DELETE to remove data, and CREATE/ALTER to manage tables and databases.
This document provides information about SQL and database management systems. It discusses:
- SQL is a standard language for querying, manipulating, and defining data in databases. It was developed by IBM in the 1970s.
- SQL can be used to perform functions like retrieving data from a database, inserting new records, updating existing records, and deleting records.
- The main components of SQL are DDL, DML, DCL, and DQL which allow creating, modifying and deleting database structures, manipulating data, controlling access to data, and querying data respectively.
- Common SQL statements are discussed including SELECT, INSERT, UPDATE, DELETE, ALTER, CREATE TABLE, and DROP TABLE. Data types and
Presented by,
Mr. Abhilash K
Database Architect, Livares Technologies
Introduction
About DBMS
A database management system (DBMS) is a software for
creating and managing databases. DBMS provides
users/programmers with a systematic way to create,
retrieve, update and manage data.
What is RDBMS
A type of DBMS in which the database is organized and
accessed according to the relationships between data
values. RDBMS are designed to take care of large amounts
of data and also the security of this data
This document provides an overview of SQL (Structured Query Language). It discusses SQL functions including data manipulation language (DML) and data definition language (DDL). DML commands like SELECT, UPDATE, DELETE and INSERT are covered. The SELECT statement syntax and use of clauses like WHERE, ORDER BY, GROUP BY and JOINs are explained. Aggregate functions like COUNT, AVG, SUM etc and scalar functions are also summarized. Examples are provided throughout to illustrate the concepts and syntax.
The document provides information about Structured Query Language (SQL) and its use for accessing and modifying relational databases. It discusses how SQL was originally developed at IBM in the 1970s and is now used by many database management systems like MySQL, PostgreSQL, Oracle, SQLite, and Microsoft SQL Server. The document also provides some key advantages of using SQL and describes common SQL commands for managing databases and querying data.
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxEduSkills OECD
Iván Bornacelly, Policy Analyst at the OECD Centre for Skills, OECD, presents at the webinar 'Tackling job market gaps with a skills-first approach' on 12 June 2024
This presentation was provided by Racquel Jemison, Ph.D., Christina MacLaughlin, Ph.D., and Paulomi Majumder. Ph.D., all of the American Chemical Society, for the second session of NISO's 2024 Training Series "DEIA in the Scholarly Landscape." Session Two: 'Expanding Pathways to Publishing Careers,' was held June 13, 2024.
Temple of Asclepius in Thrace. Excavation resultsKrassimira Luka
The temple and the sanctuary around were dedicated to Asklepios Zmidrenus. This name has been known since 1875 when an inscription dedicated to him was discovered in Rome. The inscription is dated in 227 AD and was left by soldiers originating from the city of Philippopolis (modern Plovdiv).
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...indexPub
The recent surge in pro-Palestine student activism has prompted significant responses from universities, ranging from negotiations and divestment commitments to increased transparency about investments in companies supporting the war on Gaza. This activism has led to the cessation of student encampments but also highlighted the substantial sacrifices made by students, including academic disruptions and personal risks. The primary drivers of these protests are poor university administration, lack of transparency, and inadequate communication between officials and students. This study examines the profound emotional, psychological, and professional impacts on students engaged in pro-Palestine protests, focusing on Generation Z's (Gen-Z) activism dynamics. This paper explores the significant sacrifices made by these students and even the professors supporting the pro-Palestine movement, with a focus on recent global movements. Through an in-depth analysis of printed and electronic media, the study examines the impacts of these sacrifices on the academic and personal lives of those involved. The paper highlights examples from various universities, demonstrating student activism's long-term and short-term effects, including disciplinary actions, social backlash, and career implications. The researchers also explore the broader implications of student sacrifices. The findings reveal that these sacrifices are driven by a profound commitment to justice and human rights, and are influenced by the increasing availability of information, peer interactions, and personal convictions. The study also discusses the broader implications of this activism, comparing it to historical precedents and assessing its potential to influence policy and public opinion. The emotional and psychological toll on student activists is significant, but their sense of purpose and community support mitigates some of these challenges. However, the researchers call for acknowledging the broader Impact of these sacrifices on the future global movement of FreePalestine.
Chapter wise All Notes of First year Basic Civil Engineering.pptxDenish Jangid
Chapter wise All Notes of First year Basic Civil Engineering
Syllabus
Chapter-1
Introduction to objective, scope and outcome the subject
Chapter 2
Introduction: Scope and Specialization of Civil Engineering, Role of civil Engineer in Society, Impact of infrastructural development on economy of country.
Chapter 3
Surveying: Object Principles & Types of Surveying; Site Plans, Plans & Maps; Scales & Unit of different Measurements.
Linear Measurements: Instruments used. Linear Measurement by Tape, Ranging out Survey Lines and overcoming Obstructions; Measurements on sloping ground; Tape corrections, conventional symbols. Angular Measurements: Instruments used; Introduction to Compass Surveying, Bearings and Longitude & Latitude of a Line, Introduction to total station.
Levelling: Instrument used Object of levelling, Methods of levelling in brief, and Contour maps.
Chapter 4
Buildings: Selection of site for Buildings, Layout of Building Plan, Types of buildings, Plinth area, carpet area, floor space index, Introduction to building byelaws, concept of sun light & ventilation. Components of Buildings & their functions, Basic concept of R.C.C., Introduction to types of foundation
Chapter 5
Transportation: Introduction to Transportation Engineering; Traffic and Road Safety: Types and Characteristics of Various Modes of Transportation; Various Road Traffic Signs, Causes of Accidents and Road Safety Measures.
Chapter 6
Environmental Engineering: Environmental Pollution, Environmental Acts and Regulations, Functional Concepts of Ecology, Basics of Species, Biodiversity, Ecosystem, Hydrological Cycle; Chemical Cycles: Carbon, Nitrogen & Phosphorus; Energy Flow in Ecosystems.
Water Pollution: Water Quality standards, Introduction to Treatment & Disposal of Waste Water. Reuse and Saving of Water, Rain Water Harvesting. Solid Waste Management: Classification of Solid Waste, Collection, Transportation and Disposal of Solid. Recycling of Solid Waste: Energy Recovery, Sanitary Landfill, On-Site Sanitation. Air & Noise Pollution: Primary and Secondary air pollutants, Harmful effects of Air Pollution, Control of Air Pollution. . Noise Pollution Harmful Effects of noise pollution, control of noise pollution, Global warming & Climate Change, Ozone depletion, Greenhouse effect
Text Books:
1. Palancharmy, Basic Civil Engineering, McGraw Hill publishers.
2. Satheesh Gopi, Basic Civil Engineering, Pearson Publishers.
3. Ketki Rangwala Dalal, Essentials of Civil Engineering, Charotar Publishing House.
4. BCP, Surveying volume 1
🔥🔥🔥🔥🔥🔥🔥🔥🔥
إضغ بين إيديكم من أقوى الملازم التي صممتها
ملزمة تشريح الجهاز الهيكلي (نظري 3)
💀💀💀💀💀💀💀💀💀💀
تتميز هذهِ الملزمة بعِدة مُميزات :
1- مُترجمة ترجمة تُناسب جميع المستويات
2- تحتوي على 78 رسم توضيحي لكل كلمة موجودة بالملزمة (لكل كلمة !!!!)
#فهم_ماكو_درخ
3- دقة الكتابة والصور عالية جداً جداً جداً
4- هُنالك بعض المعلومات تم توضيحها بشكل تفصيلي جداً (تُعتبر لدى الطالب أو الطالبة بإنها معلومات مُبهمة ومع ذلك تم توضيح هذهِ المعلومات المُبهمة بشكل تفصيلي جداً
5- الملزمة تشرح نفسها ب نفسها بس تكلك تعال اقراني
6- تحتوي الملزمة في اول سلايد على خارطة تتضمن جميع تفرُعات معلومات الجهاز الهيكلي المذكورة في هذهِ الملزمة
واخيراً هذهِ الملزمة حلالٌ عليكم وإتمنى منكم إن تدعولي بالخير والصحة والعافية فقط
كل التوفيق زملائي وزميلاتي ، زميلكم محمد الذهبي 💊💊
🔥🔥🔥🔥🔥🔥🔥🔥🔥
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.pptHenry Hollis
The History of NZ 1870-1900.
Making of a Nation.
From the NZ Wars to Liberals,
Richard Seddon, George Grey,
Social Laboratory, New Zealand,
Confiscations, Kotahitanga, Kingitanga, Parliament, Suffrage, Repudiation, Economic Change, Agriculture, Gold Mining, Timber, Flax, Sheep, Dairying,
A Visual Guide to 1 Samuel | A Tale of Two HeartsSteve Thomason
These slides walk through the story of 1 Samuel. Samuel is the last judge of Israel. The people reject God and want a king. Saul is anointed as the first king, but he is not a good king. David, the shepherd boy is anointed and Saul is envious of him. David shows honor while Saul continues to self destruct.
2. A database is a collection of interrelated data. It’s a collection of information
that is organised so that it can be easily accessed, managed and updated.
e.g. A school’s database
Database
3. Advantages of Database
● Reduces redundancy.
● Controls data inconsistency.
● Facilitates data sharing.
● Ensures data security
● Integrity can be maintained.
4. DBMS(DataBase Management System) is a software which helps us establish
and implement a database. It consists of a group of programs which helps in
storing, retrieving and manipulating data while considering appropriate
safety measures.
e.g. MySQL, Microsoft SQL Server, Oracle, MongoDB, PostgreSQL, etc.
DBMS
5. Relational Data Model
In relational data models, data is organised in tables(rows and columns).
These tables are called relations.
Name Roll_No Marks
Harsh 1 100
Raghav 3 99
Abhinandan 23 01
Bhanupriya 7 00
Hemant 2 73
6. Terminologies
1. Relation : A table storing logically related data.
2. Domain : Pool of values from which the actual values appearing in
a given column are drawn.
3. Tuple : row
4. Attribute : Column
5. Degree : no. of rows/tuples.
6. Cardinality : no. of columns/attributes.
number of attribute or column
number of tuples or row
7. 1. View : A virtual table that doesn’t really exist, but it’s used to view the
base table or tables derived from one or more base tables.
2. Primary : One or more attributes that can uniquely identify tuples within
key the table.
3. Candidate : All attribute combinations inside a table that are candidates to
key become primary key.
4. Alternate : A candidate key which is not primary key.
key
5. Foreign : A non-key attribute whose values are derived from the primary
key key of some other table, is called foreign key in its current table.
Terminologies
8. SQL(Structured Query Language) is a database language that is recognised by nearly
all RDBMSs(Relational DataBase Management System).
It contains set of commands that enables us to create and operate on relational
databases.
Why we use SQL?
SQL is fast, very high level, platform independent, standardized, portable language which
requires almost no coding skills.
SQL
9. DDL Commands
DDL or Data Definition Language
It contains set of commands that allows us to perform tasks related to data definition.
It specifies the storage structure and access methods for database system.
DDL consists of :
● Creating, altering & dropping.
● Granting, revoking privileges and roles.
● Maintenance commands.
10. DML Commands
DML or Data Manipulation Language
It consists of commands that allows you to perform data manipulation.
DML consists of :
● Insertion
● Deletion
● Modification
● Retrieval
11. TCL Commands
TCL or Transaction Control Language
It consists of commands that allows us to manage and control the transactions
(a transaction is one complete unit of work involving many steps)
TCL consists of :
● Making changes to database, permanent.
● Undoing changes to database, permanent.
● Creating savepoints.
● Setting properties for current transactions.
*DCL and DQL are beyond scope of syllabus, we’ll study it later sometime.
12. Important Data Types in MySQL
Data Type Description
CHAR string(0-255)
VARCHAR string(0-255)
TINYINT integer(-128 to 127)
SMALLINT integer(-32768 to 32767)
INT integer(-231
to 231
-1)
BIGINT integer(-263
to 263
-1)
FLOAT Decimal(precise to 23 digits)
Data Type Description
DOUBLE Decimal(24 to 53 digits)
DECIMAL ‘DOUBLE’ stored as string
DATE YYYY-MM-DD
DATETIME YYYY-MM-DD HH:MM:SS
TIMESTAMP YYYYMMDDHHMMSS
TIME HH:MM:SS
13. Varchar
The difference between a char and varchar is of fixed length and variable length.
When a column is given datatype char(n), then values under this attribute are
strings of n bytes. If a value is less than n bytes, then empty spaces are added till
nth byte.
In varchar(n), values are still strings of n bytes. No spaces are added even if size is
smaller than n bytes.
‘Hey’ char(5) varchar(5)
‘Hey ’ ‘Hey’
14. Varchar Varchar2
● It can identify NULL and empty
string separately.
● It’s an internal data type.
● Minimum size - 1
Maximum size - 2000
● NULL and empty string are same.
● It’s an external data type.
● Minimum size - 1
Maximum size - 4000
15. Creating table
CREATE TABLE <table-name> ( <column-name> <data type>, .. , .. , .. )
CREATE TABLE student
( name char(20),
rollno int,
marks int );
Name rollno marks
16. Inserting data into table
INSERT INTO <tablename> (<column list>)
VALUES (<value>, <value2>, ....);
INSERT INTO student
VALUES (‘Harsh’, 141, 97);
INSERT INTO student(Name, marks)
VALUES (‘Raghav’, 99);
INSERT INTO student
VALUES (‘Hemant’, 146, NULL);
Name rollno marks
Harsh 141 97
Raghav null 99
Hemant 146 null
17. CREATE TABLE <table-name>( <column-name> date, .. , .... )
CREATE TABLE transac(Amount int, Date date)
INSERT INTO transac
VALUES (10000, '2021-17-01');
INSERT INTO transac(Amount,Date)
VALUES (-3000, '2021-19-01');
INSERT INTO transac
VALUES (2, '2021-24-01');
Using DATE
Amount Date
10000 2021-17-01
-3000 2021-19-01
2 2021-24-01
18. The SELECT command is used to pull information from a table.
SELECT what_to_select
FROM which_table
WHERE conditions_to_satisfy;
Making Queries
CREATE TABLE student
( Name char(20) NOT NULL,
Rollno int,
Marks int );
Name rollno marks
Harsh 141 97
Raghav null 99
Hemant 146 null
Name
Harsh
Raghav
Hemant
SELECT Name
FROM student
19. SELECT Name, rollno
FROM student
Making Queries
Name rollno marks
Harsh 141 97
Raghav null 99
Hemant 146 null
Name rollno
Harsh 141
Raghav null
Hemant 146
SELECT Name
FROM student
where marks>95
Name
Harsh
Raghav
SELECT *
FROM student
Name rollno marks
Harsh 141 97
Raghav null 99
Hemant 146 null
20. SELECT ALL Name
FROM student
ALL, DISTINCT, BETWEEN
Name rollno marks
Harsh 141 97
Raghav 143 99
Hemant 146 97
Name
Harsh
Raghav
Hemant
SELECT DISTINCT marks
FROM student
marks
97
99
SELECT *
FROM student
WHERE marks
BETWEEN 90 AND 98
Name rollno marks
Harsh 141 97
Hemant 146 97
90 & 98 are inclusive
21. SELECT Name, rollno
FROM student
WHERE marks IS null
Null, ORDER BY
Name rollno marks
Harsh 141 97
Raghav null 99
Hemant 146 null
Name rollno
Hemant 146
SELECT Name, rollno
FROM student
WHERE marks IS not null
SELECT *
FROM student
ORDER BY marks ASC
Name rollno marks
Hemant 146 null
Harsh 141 97
Raghav null 99
Name rollno
Harsh 141
Raghav null
22. SELECT marks, count(*)
FROM student
GROUP BY marks
GROUP BY, count,
DESCRIBE, DISTINCT
Name rollno marks
Harsh 141 97
Raghav 143 99
Hemant 146 97
marks count(*)
97 2
99 1
SELECT DISTINCT marks
FROM student
marks
97
99
DESCRIBE student
Field Type NULL Key Default Extra
Name char(20) N PRI
rollno int
marks int
This is just an example table, real output might differ.
23. SELECT rollno, marks
FROM student
WHERE Name IN (‘Harsh’, ‘Suraj’, ‘Khushi’)
IN, HAVING
rollno marks
141 97
SELECT marks, count(marks)
FROM student
GROUP BY marks
HAVING count(marks)>1
marks count(marks)
97 2
Name rollno marks
Harsh 141 97
Raghav 143 99
Hemant 146 97
24. SELECT name
FROM student
WHERE name
LIKE ‘H%’
LIKE
Name rollno marks
Harsh 141 97
Raghav 143 99
Hemant 146 97
SELECT name
FROM student
WHERE name
LIKE ‘H_m%’
Name
Harsh
Hemant
Name
Hemant
SELECT name
FROM student
WHERE name LIKE ‘%t’
OR name LIKE ‘%gh%
SELECT name
FROM student
WHERE name
LIKE ‘%a_s%’
Name
Raghav
Hemant
Name
Harsh
25. SELECT SUM(marks)
FROM student
SQL functions
sum(marks)
293
SELECT AVG(marks)
FROM student
avg(marks)
97.666666….
Name rollno marks
Harsh 141 97
Raghav 143 99
Hemant 146 97
SELECT productid, max(quantity),
min(quantity)
FROM Orders
GROUP BY productid having
avg(quantity)>100
26. An SQL Join is a query that fetches data from two or more tables whose
records are joined with one another based on a condition.
SELECT <attributes>
FROM <table1>,<table2>,<table3>, . . . .
WHERE <join condition of tables>
e.g. SELECT Name, marks, AdmNo
FROM student, list
WHERE student.name=list.name
This will join tables student and list on the basis of condition
student.name=list.name
SQL Joins
27. Types of Joins
1. Cartesian Product/Cross Join :
Without any condition, returns all joined records.
2. Equi Join :
Joins two or more tables based on a condition using equality operator.
3. Natural Join :
A type of equi join where the join condition compares all the same names
columns in both tables.
28. A primary key is used to uniquely identify each row in the table. It can be either
one attribute or an artificial field(like serial number).
Primary key
Name rollno marks
Harsh 141 97
Raghav 143 99
Hemant 146 97
CREATE TABLE student
( Name char(20)
Rollno int PRIMARY KEY
Marks int );
INSERT INTO student
VALUES (‘Bhanu’, 141, 33)
29. A composite key or primary key composition is a combination of two or more
columns in a table that can be used to uniquely identify each row in the table.
Composite key
Name Class RollNo
Harsh 9 80
Raghav 10 80
Hemant 10 87
CREATE TABLE student
( Name char(20)
Class int
Marks int
PRIMARY KEY(Class, Marks );
30. FOREIGN key
Name rollno marks class
Harsh 141 97
Raghav 143 99
Hemant 146 97
rollno Maths Science Hindi English
141 100 100 100 100
143 99 93 97 85
146 80 87 81 33
CREATE TABLE subject marks
( rollno int,
Maths int,
Science int,
Hindi int,
English int,
FOREIGN KEY (rollno)
REFERENCES student(rollno) );
31. ALTER TABLE <tablename>
Name rollno marks class
Harsh 141 97
Raghav 143 99
Hemant 146 97
CREATE TABLE student
( Name char(20)
Rollno int
Marks int );
ALTER TABLE student
ADD PRIMARY KEY (Rollno);
ADD class int
DROP COLUMN Name
MODIFY COLUMN class char(5)