Application of Recursive Query on Structured Query Language Server
TP311; The advantage of recursive programming is that it is very easy to write and it only requires very few lines of code if done correctly.Structured query language(SQL)is a database language and is used to manipulate data.In Microsoft SQL Server 2000,recursive queries are implemented to retrieve...
Saved in:
Published in | 东华大学学报(英文版) Vol. 40; no. 1; pp. 68 - 73 |
---|---|
Main Authors | , , |
Format | Journal Article |
Language | English |
Published |
Library,North China Institute of Aerospace Engineering,Langfang 065000,China%Department of Computer Science&Information System,Kwantlen Polytechnic University,Surrey,Canada%School of Computer Science and Engineering,North China Institute of Aerospace Engineering,Langfang 065000,China
2023
|
Subjects | |
Online Access | Get full text |
ISSN | 1672-5220 |
DOI | 10.19884/j.1672-5220.202110001 |
Cover
Loading…
Abstract | TP311; The advantage of recursive programming is that it is very easy to write and it only requires very few lines of code if done correctly.Structured query language(SQL)is a database language and is used to manipulate data.In Microsoft SQL Server 2000,recursive queries are implemented to retrieve data which is presented in a hierarchical format,but this way has its disadvantages.Common table expression(CTE)construction introduced in Microsoft SQL Server 2005 provides the significant advantage of being able to reference itself to create a recursive CTE.Hierarchical data structures,organizational charts and other parent-child table relationship reports can easily benefit from the use of recursive CTEs.The recursive query is illustrated and implemented on some simple hierarchical data.In addition,one business case study is brought forward and the solution using recursive query based on CTE is shown.At the same time,stored procedures are programmed to do the recursion in SQL.Test results show that recursive queries based on CTEs bring us the chance to create much more complex queries while retaining a much simpler syntax. |
---|---|
AbstractList | TP311; The advantage of recursive programming is that it is very easy to write and it only requires very few lines of code if done correctly.Structured query language(SQL)is a database language and is used to manipulate data.In Microsoft SQL Server 2000,recursive queries are implemented to retrieve data which is presented in a hierarchical format,but this way has its disadvantages.Common table expression(CTE)construction introduced in Microsoft SQL Server 2005 provides the significant advantage of being able to reference itself to create a recursive CTE.Hierarchical data structures,organizational charts and other parent-child table relationship reports can easily benefit from the use of recursive CTEs.The recursive query is illustrated and implemented on some simple hierarchical data.In addition,one business case study is brought forward and the solution using recursive query based on CTE is shown.At the same time,stored procedures are programmed to do the recursion in SQL.Test results show that recursive queries based on CTEs bring us the chance to create much more complex queries while retaining a much simpler syntax. |
Author | ABHIJIT Sen YAO Zhiqiang XUN Xuelian |
AuthorAffiliation | Library,North China Institute of Aerospace Engineering,Langfang 065000,China%Department of Computer Science&Information System,Kwantlen Polytechnic University,Surrey,Canada%School of Computer Science and Engineering,North China Institute of Aerospace Engineering,Langfang 065000,China |
AuthorAffiliation_xml | – name: Library,North China Institute of Aerospace Engineering,Langfang 065000,China%Department of Computer Science&Information System,Kwantlen Polytechnic University,Surrey,Canada%School of Computer Science and Engineering,North China Institute of Aerospace Engineering,Langfang 065000,China |
Author_xml | – sequence: 1 fullname: XUN Xuelian – sequence: 2 fullname: ABHIJIT Sen – sequence: 3 fullname: YAO Zhiqiang |
BookMark | eNo9j8tOwzAURL0oEqX0F1C2LBKuH3HsZal4SZEQFNaRY1-XRpVTOXEpf08kKlYjncXMnCsyC31AQm4oFFQrJe66gsqK5SVjUDBglAIAnZH5P70ky2HoJgqSVQL0nNyvDof9zppx14es99k72hSH3RGzt4TxJ5voZozJjimiO7PahG0yW8w2GI8Yr8mFN_sBl-dckM_Hh4_1c16_Pr2sV3U-UBAql8qWTghUumIKPbRalqWttFPKIBgUiiNzxljdGiuVFl62aLnmnjJRUuQLcvvX-22Cny40XZ9imBYb9-VOp7bByZnDJK34L2KmUFc |
ClassificationCodes | TP311 |
ContentType | Journal Article |
Copyright | Copyright © Wanfang Data Co. Ltd. All Rights Reserved. |
Copyright_xml | – notice: Copyright © Wanfang Data Co. Ltd. All Rights Reserved. |
DBID | 2B. 4A8 92I 93N PSX TCJ |
DOI | 10.19884/j.1672-5220.202110001 |
DatabaseName | Wanfang Data Journals - Hong Kong WANFANG Data Centre Wanfang Data Journals 万方数据期刊 - 香港版 China Online Journals (COJ) China Online Journals (COJ) |
DatabaseTitleList | |
DeliveryMethod | fulltext_linktorsrc |
Discipline | Engineering |
EndPage | 73 |
ExternalDocumentID | dhdxxb_e202301008 |
GroupedDBID | -02 -0B -SB -S~ 188 2B. 4A8 5VR 5XA 5XC 8RM 92D 92I 92M 93N 9D9 9DB ABJNI ACGFS ADMLS AFUIB ALMA_UNASSIGNED_HOLDINGS CAJEB CCEZO CDRFL CHBEP CW9 FA0 JUIAU PSX Q-- R-B RT2 S.. T8R TCJ TGH TTC U1F U1G U5B U5L UGNYK UZ2 UZ4 |
ID | FETCH-LOGICAL-s1048-68c5d44e89728ef0b9655c79d88ae0ae483e2daac9bac6894f6bec393f12451e3 |
ISSN | 1672-5220 |
IngestDate | Thu May 29 03:59:43 EDT 2025 |
IsPeerReviewed | true |
IsScholarly | true |
Issue | 1 |
Keywords | recursive query hierarchical data common table expression(CTE) structured query language(SQL)server stored procedure |
Language | English |
LinkModel | OpenURL |
MergedId | FETCHMERGED-LOGICAL-s1048-68c5d44e89728ef0b9655c79d88ae0ae483e2daac9bac6894f6bec393f12451e3 |
PageCount | 6 |
ParticipantIDs | wanfang_journals_dhdxxb_e202301008 |
PublicationCentury | 2000 |
PublicationDate | 2023 |
PublicationDateYYYYMMDD | 2023-01-01 |
PublicationDate_xml | – year: 2023 text: 2023 |
PublicationDecade | 2020 |
PublicationTitle | 东华大学学报(英文版) |
PublicationTitle_FL | Journal of Donghua University(English Edition) |
PublicationYear | 2023 |
Publisher | Library,North China Institute of Aerospace Engineering,Langfang 065000,China%Department of Computer Science&Information System,Kwantlen Polytechnic University,Surrey,Canada%School of Computer Science and Engineering,North China Institute of Aerospace Engineering,Langfang 065000,China |
Publisher_xml | – name: Library,North China Institute of Aerospace Engineering,Langfang 065000,China%Department of Computer Science&Information System,Kwantlen Polytechnic University,Surrey,Canada%School of Computer Science and Engineering,North China Institute of Aerospace Engineering,Langfang 065000,China |
SSID | ssj0000627409 |
Score | 2.2258666 |
Snippet | TP311; The advantage of recursive programming is that it is very easy to write and it only requires very few lines of code if done correctly.Structured query... |
SourceID | wanfang |
SourceType | Aggregation Database |
StartPage | 68 |
Title | Application of Recursive Query on Structured Query Language Server |
URI | https://d.wanfangdata.com.cn/periodical/dhdxxb-e202301008 |
Volume | 40 |
hasFullText | 1 |
inHoldings | 1 |
isFullTextHit | |
isPrint | |
link | http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwrR1db9Mw0BrbCzwgPsW3IoSfqowmcRL70WkzdWMbQmulwkvlJA5DQh2wFgb_hn_Kne1mrtaHgXhIZPkz8fl85_N9EPIqqQTHAOZhKzQLWZRHoQKqFUZV1nBWpbm1ej86zkYTdjBNp1s3fntaS8tFtVv_2mhX8i9QhTyAK1rJ_gVku04hA9IAX3gDhOF9LRjLy9tn61SkxrP_d917t9R4dY7RedE97BKVzG3eoZNPmk3CaeY63pSWjBacigEtU8qHlJeYkIzK3CSGVGZeIqNcUpnSco8WA8o5LTnlBS0iLBJQCq1yyoUpsnU6ocN0ctybLvVnb23KYrR_sD-G7-qy3su3vQ-nn75CrY--dMKaDlu5hBVCwUKxF1AmHPi6BoTUwAh8UbB_eb4XoQHORAtPD9lHjFU9MI1pnA6BRH9brLQkVnEvVtsg4Iqz4bKbrXGFDa3f_IBFCjQcVQp_Wte4taf3AjVO0BcWJoxLCBzJ-UDdMIq51Fn_4P_1hx4dynKUEcR9n1BZv1ZrCGmpjg1M5PgXGxnmCmUUnDNLGldd7wK80GGgEyatex1vTpuLi2qmEab9yJjT78RwEgPatyOHR4cnnSAT_Vwzo0rV9ews8XHI1xsHNBZyc5wBj5kb3yG33SkskBal7pItPb9Hbnmzd58UHnIFZ23QIVdgECmA3Evkcnkr5Aoscj0gk71yPBiFLuBIeB4BJQszXqcNY5qLPOa67VciS9M6Fw3nSveVZjzRcaNULSpVZ1ywNoMtMBFJC1xyGunkIdmen831IxIoXTUK-qyA4jHg4ZVWOsfgbyyLGsbrx-Slm4GZ21DOZ1fm_Ml1Kj0lNzFtxYLPyDb8un4OjPKieuFA9QfRvba- |
linkProvider | EBSCOhost |
openUrl | ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=Application+of+Recursive+Query+on+Structured+Query+Language+Server&rft.jtitle=%E4%B8%9C%E5%8D%8E%E5%A4%A7%E5%AD%A6%E5%AD%A6%E6%8A%A5%EF%BC%88%E8%8B%B1%E6%96%87%E7%89%88%EF%BC%89&rft.au=XUN+Xuelian&rft.au=ABHIJIT+Sen&rft.au=YAO+Zhiqiang&rft.date=2023&rft.pub=Library%2CNorth+China+Institute+of+Aerospace+Engineering%2CLangfang+065000%2CChina%25Department+of+Computer+Science%26Information+System%2CKwantlen+Polytechnic+University%2CSurrey%2CCanada%25School+of+Computer+Science+and+Engineering%2CNorth+China+Institute+of+Aerospace+Engineering%2CLangfang+065000%2CChina&rft.issn=1672-5220&rft.volume=40&rft.issue=1&rft.spage=68&rft.epage=73&rft_id=info:doi/10.19884%2Fj.1672-5220.202110001&rft.externalDocID=dhdxxb_e202301008 |
thumbnail_s | http://utb.summon.serialssolutions.com/2.0.0/image/custom?url=http%3A%2F%2Fwww.wanfangdata.com.cn%2Fimages%2FPeriodicalImages%2Fdhdxxb-e%2Fdhdxxb-e.jpg |