SlideShare a Scribd company logo
1 of 46
IP SUMMER VACATION
NAME- HARPRASAD MAHAPATRA
STD-12TH-A
ROLL NO-8
SUB-INFORMATION PRACTISES
ROW AND COLUMN OPERATIONS IN SERIES
1) MATHEMATICAL OPERATORS
HEAD FUNCTION
TAIL FUNCTION
SERIES SELECTION
SERIES INDEXING
SERIES SLICING
OPERATION ON DICTIONARY
-COLUMN OPERATION
ROW OPERATION
SQL DATE AND TIME FUNCTIONS
SQL STRING RELATED FUNCTION
By:
AVINASH RAMAWAT
ORDER BY CLAUSE
 ORDER BY clause is used to display the result of
a query in a specific order(sorted order).
 The sorting can be done in ascending or in
descending order. It should be kept in mind that
the actual data in the database is not sorted but
only the results of the query are displayed in
sorted order.
 Note:- If order is not specifies that by default the sorting will be
performed in ascending order.
GROUP BY
 The GROUP BY clause can be used in a SELECT statement to
collect data across multiple records and group the results by one or
more columns.
EXAMPLE :
HAVING CLAUSE
 The HAVING clause is used in combination with the GROUP BY
clause. It can be used in a SELECT statement to filter the records
that a GROUP BY returns.
JOINS
A JOIN is a query through which we can extract
queries from two or more tables. It means, it
combines rows from two or more tables. Rows in
one table can be joined to rows in another table
according to common values existing in
corresponding columns.
TYPES OF JOIN
There are various types of joins:
 Cartesian Product
 Equi Join
 Non-Equi Join
 Natural Join
CARTESIAN PRODUCT
OR
CROSS JOIN
The CROSS JOIN or CARTESIAN JOIN is used
to produce the Cartesian product of two tables.
The Cartesian product is a basic type of join that
matches each row from one table to every row
from another table.
TABLES- BOOK3 AND BOOK1
FOR PERFORMING CROSS JOIN
CROSS JOIN
TABLES FOR
EQUIJOIN, NON EQUI JOIN & NATURAL JOIN
EQUI JOIN
In an EQUI-JOIN operation, the values in the
columns are being joined and compared for equality.
All the columns in the tables being joined are
included in the results.
NON-EQUI JOIN
Non equi join is a query that specifies some
relationship other than equality between the
columns. It means that records are joined on the
condition other than Equal operator
(<,>,<>,>=,<=) for joining column.
NON EQUI JOIN
NATURAL JOIN
The join in which one of the identical columns exist,
is called Natural Join. The natural join is much
similar to Equi-Join, records are joined on the
equality condition of joining column except that the
common column appears one time.
UNION
The UNION operator is used to combine the result-
set of two or more SELECT statements. Notice that
each SELECT statement within the UNION must
have the same number of columns. The columns
must also have similar data types. Also, the columns
in each SELECT statement must be in the same
order.
 Note: The UNION operator selects only distinct
values by default. To allow duplicate values, use the
ALL keyword with UNION.
UNION OF TWO QUERY
TABLES FOR
UNION, INTERSECT & MINUS
EXAMPLE :
UNION ALL
MINUS
 MINUS is a little bit different. Let’s say we want
to see only book titles that are not also movie
titles. We need to “minus” everything from
the BOOK1 table that is also in
the BOOK2 table. The MINUS set operator is
designed for this type of task.
MINUS OF TWO QUERY
MINUS OPERATION IN MYSQL
MySqL does not support Minus operator so here we use left join to achieve
minus operation in MySQL.
INTERSECTION
An INTERSECT query returns the intersection of
2 or more data sets. If a record exists in both data
sets, it will be included in the INTERSECT
results. However, if a record exists in one data set
and not in the other, it will be omitted from the
INTERSECT results.
INTERSECTION
INTERSECTION OPERATION IN MYSQL
MySqL does not support Intersection operator so here we use join operator
to achieve minus operation in MySQL.

More Related Content

Similar to MergeResult_2024_02_09_08_59_11.pptx

Assignment 4
Assignment 4Assignment 4
Assignment 4SneaK3
 
Ms sql server ii
Ms sql server  iiMs sql server  ii
Ms sql server iiIblesoft
 
Sql(structured query language)
Sql(structured query language)Sql(structured query language)
Sql(structured query language)Ishucs
 
DBMS and SQL(structured query language) .pptx
DBMS and SQL(structured query language) .pptxDBMS and SQL(structured query language) .pptx
DBMS and SQL(structured query language) .pptxjainendraKUMAR55
 
Bt0075 rdbms with mysql 2
Bt0075 rdbms with mysql 2Bt0075 rdbms with mysql 2
Bt0075 rdbms with mysql 2Techglyphs
 
SQL Fundamentals
SQL FundamentalsSQL Fundamentals
SQL FundamentalsBrian Foote
 
Assignment 3
Assignment 3Assignment 3
Assignment 3SneaK3
 
Be a pro in LOOKUP function in Excel.pptx
Be a pro in LOOKUP function in Excel.pptxBe a pro in LOOKUP function in Excel.pptx
Be a pro in LOOKUP function in Excel.pptxtaiwooloyede49
 
PPT of Common Table Expression (CTE), Window Functions, JOINS, SubQuery
PPT  of Common Table Expression (CTE), Window Functions, JOINS, SubQueryPPT  of Common Table Expression (CTE), Window Functions, JOINS, SubQuery
PPT of Common Table Expression (CTE), Window Functions, JOINS, SubQueryAbhishek590097
 
Application sql issues_and_tuning
Application sql issues_and_tuningApplication sql issues_and_tuning
Application sql issues_and_tuningAnil Pandey
 

Similar to MergeResult_2024_02_09_08_59_11.pptx (20)

Chapter9 more on database and sql
Chapter9 more on database and sqlChapter9 more on database and sql
Chapter9 more on database and sql
 
SQL JOIN
SQL JOINSQL JOIN
SQL JOIN
 
Assignment 4
Assignment 4Assignment 4
Assignment 4
 
Sql
SqlSql
Sql
 
Ms sql server ii
Ms sql server  iiMs sql server  ii
Ms sql server ii
 
Sql(structured query language)
Sql(structured query language)Sql(structured query language)
Sql(structured query language)
 
Oracle SQL Part 2
Oracle SQL Part 2Oracle SQL Part 2
Oracle SQL Part 2
 
DBMS and SQL(structured query language) .pptx
DBMS and SQL(structured query language) .pptxDBMS and SQL(structured query language) .pptx
DBMS and SQL(structured query language) .pptx
 
Bt0075 rdbms with mysql 2
Bt0075 rdbms with mysql 2Bt0075 rdbms with mysql 2
Bt0075 rdbms with mysql 2
 
SQL Fundamentals
SQL FundamentalsSQL Fundamentals
SQL Fundamentals
 
Sql slid
Sql slidSql slid
Sql slid
 
Lab4 join - all types listed
Lab4   join - all types listedLab4   join - all types listed
Lab4 join - all types listed
 
Assignment 3
Assignment 3Assignment 3
Assignment 3
 
1 introduction to my sql
1 introduction to my sql1 introduction to my sql
1 introduction to my sql
 
MSSQL_Book.pdf
MSSQL_Book.pdfMSSQL_Book.pdf
MSSQL_Book.pdf
 
Be a pro in LOOKUP function in Excel.pptx
Be a pro in LOOKUP function in Excel.pptxBe a pro in LOOKUP function in Excel.pptx
Be a pro in LOOKUP function in Excel.pptx
 
SQL | DML
SQL | DMLSQL | DML
SQL | DML
 
Views, Triggers, Functions, Stored Procedures, Indexing and Joins
Views, Triggers, Functions, Stored Procedures,  Indexing and JoinsViews, Triggers, Functions, Stored Procedures,  Indexing and Joins
Views, Triggers, Functions, Stored Procedures, Indexing and Joins
 
PPT of Common Table Expression (CTE), Window Functions, JOINS, SubQuery
PPT  of Common Table Expression (CTE), Window Functions, JOINS, SubQueryPPT  of Common Table Expression (CTE), Window Functions, JOINS, SubQuery
PPT of Common Table Expression (CTE), Window Functions, JOINS, SubQuery
 
Application sql issues_and_tuning
Application sql issues_and_tuningApplication sql issues_and_tuning
Application sql issues_and_tuning
 

Recently uploaded

PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxMarlene Maheu
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...Nguyen Thanh Tu Collection
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportDenish Jangid
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfcupulin
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFVivekanand Anglo Vedic Academy
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...EduSkills OECD
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024Borja Sotomayor
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppCeline George
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽中 央社
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxneillewis46
 
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfRich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfJerry Chew
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................MirzaAbrarBaig5
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxCeline George
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaEADTU
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17Celine George
 

Recently uploaded (20)

PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfRich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 

MergeResult_2024_02_09_08_59_11.pptx

  • 1. IP SUMMER VACATION NAME- HARPRASAD MAHAPATRA STD-12TH-A ROLL NO-8 SUB-INFORMATION PRACTISES
  • 2. ROW AND COLUMN OPERATIONS IN SERIES 1) MATHEMATICAL OPERATORS
  • 3.
  • 10.
  • 11.
  • 12.
  • 14.
  • 15.
  • 16. SQL DATE AND TIME FUNCTIONS
  • 17.
  • 18. SQL STRING RELATED FUNCTION
  • 19.
  • 21. ORDER BY CLAUSE  ORDER BY clause is used to display the result of a query in a specific order(sorted order).  The sorting can be done in ascending or in descending order. It should be kept in mind that the actual data in the database is not sorted but only the results of the query are displayed in sorted order.  Note:- If order is not specifies that by default the sorting will be performed in ascending order.
  • 22.
  • 23. GROUP BY  The GROUP BY clause can be used in a SELECT statement to collect data across multiple records and group the results by one or more columns.
  • 25. HAVING CLAUSE  The HAVING clause is used in combination with the GROUP BY clause. It can be used in a SELECT statement to filter the records that a GROUP BY returns.
  • 26. JOINS A JOIN is a query through which we can extract queries from two or more tables. It means, it combines rows from two or more tables. Rows in one table can be joined to rows in another table according to common values existing in corresponding columns.
  • 27. TYPES OF JOIN There are various types of joins:  Cartesian Product  Equi Join  Non-Equi Join  Natural Join
  • 28. CARTESIAN PRODUCT OR CROSS JOIN The CROSS JOIN or CARTESIAN JOIN is used to produce the Cartesian product of two tables. The Cartesian product is a basic type of join that matches each row from one table to every row from another table.
  • 29. TABLES- BOOK3 AND BOOK1 FOR PERFORMING CROSS JOIN
  • 31. TABLES FOR EQUIJOIN, NON EQUI JOIN & NATURAL JOIN
  • 32. EQUI JOIN In an EQUI-JOIN operation, the values in the columns are being joined and compared for equality. All the columns in the tables being joined are included in the results.
  • 33. NON-EQUI JOIN Non equi join is a query that specifies some relationship other than equality between the columns. It means that records are joined on the condition other than Equal operator (<,>,<>,>=,<=) for joining column.
  • 35. NATURAL JOIN The join in which one of the identical columns exist, is called Natural Join. The natural join is much similar to Equi-Join, records are joined on the equality condition of joining column except that the common column appears one time.
  • 36. UNION The UNION operator is used to combine the result- set of two or more SELECT statements. Notice that each SELECT statement within the UNION must have the same number of columns. The columns must also have similar data types. Also, the columns in each SELECT statement must be in the same order.  Note: The UNION operator selects only distinct values by default. To allow duplicate values, use the ALL keyword with UNION.
  • 37. UNION OF TWO QUERY
  • 41. MINUS  MINUS is a little bit different. Let’s say we want to see only book titles that are not also movie titles. We need to “minus” everything from the BOOK1 table that is also in the BOOK2 table. The MINUS set operator is designed for this type of task.
  • 42. MINUS OF TWO QUERY
  • 43. MINUS OPERATION IN MYSQL MySqL does not support Minus operator so here we use left join to achieve minus operation in MySQL.
  • 44. INTERSECTION An INTERSECT query returns the intersection of 2 or more data sets. If a record exists in both data sets, it will be included in the INTERSECT results. However, if a record exists in one data set and not in the other, it will be omitted from the INTERSECT results.
  • 46. INTERSECTION OPERATION IN MYSQL MySqL does not support Intersection operator so here we use join operator to achieve minus operation in MySQL.