The performance of inner join types in SQL
Author
Source
International Computer Sciences and Informatics Conference, Amman, Jordan 12-13 January 2016.
Publisher
Publication Date
2016-01-31
Country of Publication
Jordan
No. of Pages
11
Main Subjects
Social Sciences (Multidisciplinary)
English Abstract
The paper compared the performance of four of inner join types ; natural join, join … using, join … on, and the traditional join or comma join, or where clause join.
Natural join ; it is used in joining two tables that have columns with the same name, join … using ; is used if several columns share the same name but you don't want to join using all of these common columns.
You can determine the common column you want to be used in join in the using clause, join… on ; is used when join column names are different [1,2].
Every type of these inner join types has its own conditions, but the question is : if there is a query that meet and comply the conditions of all of these types, which of them have better performance or which of them is the fastest?.
To answer the question we prepared a simple query in oracle 10g to join employees and jobs tables, the query written in four ways to meet the four types of the inner join in SQL, the first by using natural join, the second by using join … using, the third by using join … on, and the forth by using where clause, each query executed 30 times and the execution time is recorded for each one, and the time average for each query is calculated we found that the average of join …on is 0.0050s, the average of where join is 0.0053s, the average of natural join is 0.0077s, the average of join… using is 0.0083s, we conclude that these types of join can be arranged from fastest to lowest speed as follows : join… on, where join, inner natural join, and join …using
Data Type
Conference Papers
Record ID
BIM-767284
American Psychological Association (APA)
al-Nawajah, Fawwaz Yusuf. 2016-01-31. The performance of inner join types in SQL. . , pp.110-120.Amman Jordan : Amman Arab University.
https://search.emarefa.net/detail/BIM-767284
Modern Language Association (MLA)
al-Nawajah, Fawwaz Yusuf. The performance of inner join types in SQL. . Amman Jordan : Amman Arab University. 2016-01-31.
https://search.emarefa.net/detail/BIM-767284
American Medical Association (AMA)
al-Nawajah, Fawwaz Yusuf. The performance of inner join types in SQL. .
https://search.emarefa.net/detail/BIM-767284