SlideShare una empresa de Scribd logo
1 de 9
Intentionally left empty
Intentionally left empty
[Development Simply Put] For SQL
Hierarchical Data, How To Show Only Tree
Branches Including Certain Type Of Entities
And Discard Others
If you have a tree of entities represented into a SQL database into parent-child relation, you
may need to be able to view only the tree branches which include a certain type of entities
and discard the branches which don't include this type. If you ever faced such situation or
even curious to know how to manage such situation, you can read this article.

"If you can't explain it simply, you don't understand it well
enough" -Albert Einstein
Why?
I am "Ahmed Tarek" the owner and author of the "Development Simply Put" blog. During my career
days and day after day I got more confident that it's all about sharing not the title you have. I believe
that everyone has something to share whatever small he thinks of it. Sometimes a great idea comes
out of just a tiny idea and the same for knowledge. I always try to gain knowledge and learn new skills
and I found that the best way to learn is to try to teach what you already know. This makes you think
of the best simplest way to explain complex logic which makes you spot some points may be even
yourself didn't recognize in the first time.
The greatest thing in the human mind is that it carries out too complicated operations and finally
presents it into a simple form, so why do we always try to re-complicate things? This is what
encouraged me to start my blog -Development Simply Put
(http://developmentsimplyput.blogspot.com)- trying to do my best to simplify main concepts in IT
development and share my humble knowledge in this field.

"If you can't explain it simply, you don't understand it well
enough" -Albert Einstein
Links
Blog Link: http://developmentsimplyput.blogspot.com
Facebook Page: https://www.facebook.com/DevelopmentSimplyPut
Google+ Page: https://plus.google.com/115238148611061640682
LinkedIn Group: http://www.linkedin.com/groups/Development-Simply-Put-5024295
RSS 2.0 Feed: http://developmentsimplyput.blogspot.com/feeds/posts/default?alt=rss
Atom 1.0 Feed: http://developmentsimplyput.blogspot.com/feeds/posts/default
Android RSS App: http://www.appsgeyser.com/336849
Follow Link: http://www.blogger.com/follow-blog.g?blogID=852966703260024356
Random Post: http://developmentsimplyput.blogspot.com/?random

"If you can't explain it simply, you don't understand it well
enough" -Albert Einstein
Want To Offer Help?
1. Comment & provide feedback (liked, hated, good, bad, missing, ......)
2. Answer the blog survey (http://www.quibblo.com/quiz/idVKX2u/Development-Simply-PutBlog-Survey)
3. Follow (http://www.blogger.com/follow-blog.g?blogID=852966703260024356)
4. Subscribe (http://developmentsimplyput.blogspot.com/feeds/posts/default?alt=rss)
5. Share blog links
6. Invite friends whom you think will be interested
"If you can't explain it simply, you don't understand it well
enough" -Albert Einstein
About Me
My Resume:
LinkedIn: http://www.linkedin.com/in/atarekhasan
Yatedo: http://www.yatedo.com/atarekhasan
Zerply: http://zerply.com/ahmed-tarek-hasan/public
Stackoverflow: http://stackoverflow.com/users/1284593/ahmed-tarek-hasan
My Social Accounts:
Facebook: https://www.facebook.com/ahmed.t.hasan
Google+: https://plus.google.com/u/0/117461717174836938716
Twitter: https://twitter.com/AhmedTarekHasa1
StumbleUpon: http://www.stumbleupon.com/stumbler/AhmedTarekHasan/likes
Pinterest: http://pinterest.com/ahmedtarekhasan

"If you can't explain it simply, you don't understand it well
enough" -Albert Einstein

Más contenido relacionado

Más de Ahmed Tarek Hasan

[Development Simply Put] How To Make Sure jQuery Is Loaded And Only Once
[Development Simply Put] How To Make Sure jQuery Is Loaded And Only Once[Development Simply Put] How To Make Sure jQuery Is Loaded And Only Once
[Development Simply Put] How To Make Sure jQuery Is Loaded And Only OnceAhmed Tarek Hasan
 
[Development Simply Put] How To Get List Of SPs,Views,Functions,Triggers Cont...
[Development Simply Put] How To Get List Of SPs,Views,Functions,Triggers Cont...[Development Simply Put] How To Get List Of SPs,Views,Functions,Triggers Cont...
[Development Simply Put] How To Get List Of SPs,Views,Functions,Triggers Cont...Ahmed Tarek Hasan
 
[Development Simply Put] Events & Delegates In C# - Win Forms Controls
[Development Simply Put] Events & Delegates In C# - Win Forms Controls[Development Simply Put] Events & Delegates In C# - Win Forms Controls
[Development Simply Put] Events & Delegates In C# - Win Forms ControlsAhmed Tarek Hasan
 
[Development Simply Put] Events & Delegates In C# - The Concept
[Development Simply Put] Events & Delegates In C# - The Concept[Development Simply Put] Events & Delegates In C# - The Concept
[Development Simply Put] Events & Delegates In C# - The ConceptAhmed Tarek Hasan
 
[Development Simply Put] Delegates In C# - The Definition
[Development Simply Put] Delegates In C# - The Definition[Development Simply Put] Delegates In C# - The Definition
[Development Simply Put] Delegates In C# - The DefinitionAhmed Tarek Hasan
 
[Development Simply Put] 4 Ways To Send Parameters To A C# Method
[Development Simply Put] 4 Ways To Send Parameters To A C# Method[Development Simply Put] 4 Ways To Send Parameters To A C# Method
[Development Simply Put] 4 Ways To Send Parameters To A C# MethodAhmed Tarek Hasan
 

Más de Ahmed Tarek Hasan (7)

[Development Simply Put] How To Make Sure jQuery Is Loaded And Only Once
[Development Simply Put] How To Make Sure jQuery Is Loaded And Only Once[Development Simply Put] How To Make Sure jQuery Is Loaded And Only Once
[Development Simply Put] How To Make Sure jQuery Is Loaded And Only Once
 
[Development Simply Put] How To Get List Of SPs,Views,Functions,Triggers Cont...
[Development Simply Put] How To Get List Of SPs,Views,Functions,Triggers Cont...[Development Simply Put] How To Get List Of SPs,Views,Functions,Triggers Cont...
[Development Simply Put] How To Get List Of SPs,Views,Functions,Triggers Cont...
 
[Development Simply Put] Events & Delegates In C# - Win Forms Controls
[Development Simply Put] Events & Delegates In C# - Win Forms Controls[Development Simply Put] Events & Delegates In C# - Win Forms Controls
[Development Simply Put] Events & Delegates In C# - Win Forms Controls
 
[Development Simply Put] Events & Delegates In C# - The Concept
[Development Simply Put] Events & Delegates In C# - The Concept[Development Simply Put] Events & Delegates In C# - The Concept
[Development Simply Put] Events & Delegates In C# - The Concept
 
[Development Simply Put] Delegates In C# - The Definition
[Development Simply Put] Delegates In C# - The Definition[Development Simply Put] Delegates In C# - The Definition
[Development Simply Put] Delegates In C# - The Definition
 
[Development Simply Put] 4 Ways To Send Parameters To A C# Method
[Development Simply Put] 4 Ways To Send Parameters To A C# Method[Development Simply Put] 4 Ways To Send Parameters To A C# Method
[Development Simply Put] 4 Ways To Send Parameters To A C# Method
 
Development Simply Put
Development Simply PutDevelopment Simply Put
Development Simply Put
 

Último

Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 

Último (20)

Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 

[Development Simply Put] For SQL Hierarchical Data, How To Show Only Tree Branches Including Certain Type Of Entities And Discard Others

  • 1.
  • 4. [Development Simply Put] For SQL Hierarchical Data, How To Show Only Tree Branches Including Certain Type Of Entities And Discard Others If you have a tree of entities represented into a SQL database into parent-child relation, you may need to be able to view only the tree branches which include a certain type of entities and discard the branches which don't include this type. If you ever faced such situation or even curious to know how to manage such situation, you can read this article. "If you can't explain it simply, you don't understand it well enough" -Albert Einstein
  • 5.
  • 6. Why? I am "Ahmed Tarek" the owner and author of the "Development Simply Put" blog. During my career days and day after day I got more confident that it's all about sharing not the title you have. I believe that everyone has something to share whatever small he thinks of it. Sometimes a great idea comes out of just a tiny idea and the same for knowledge. I always try to gain knowledge and learn new skills and I found that the best way to learn is to try to teach what you already know. This makes you think of the best simplest way to explain complex logic which makes you spot some points may be even yourself didn't recognize in the first time. The greatest thing in the human mind is that it carries out too complicated operations and finally presents it into a simple form, so why do we always try to re-complicate things? This is what encouraged me to start my blog -Development Simply Put (http://developmentsimplyput.blogspot.com)- trying to do my best to simplify main concepts in IT development and share my humble knowledge in this field. "If you can't explain it simply, you don't understand it well enough" -Albert Einstein
  • 7. Links Blog Link: http://developmentsimplyput.blogspot.com Facebook Page: https://www.facebook.com/DevelopmentSimplyPut Google+ Page: https://plus.google.com/115238148611061640682 LinkedIn Group: http://www.linkedin.com/groups/Development-Simply-Put-5024295 RSS 2.0 Feed: http://developmentsimplyput.blogspot.com/feeds/posts/default?alt=rss Atom 1.0 Feed: http://developmentsimplyput.blogspot.com/feeds/posts/default Android RSS App: http://www.appsgeyser.com/336849 Follow Link: http://www.blogger.com/follow-blog.g?blogID=852966703260024356 Random Post: http://developmentsimplyput.blogspot.com/?random "If you can't explain it simply, you don't understand it well enough" -Albert Einstein
  • 8. Want To Offer Help? 1. Comment & provide feedback (liked, hated, good, bad, missing, ......) 2. Answer the blog survey (http://www.quibblo.com/quiz/idVKX2u/Development-Simply-PutBlog-Survey) 3. Follow (http://www.blogger.com/follow-blog.g?blogID=852966703260024356) 4. Subscribe (http://developmentsimplyput.blogspot.com/feeds/posts/default?alt=rss) 5. Share blog links 6. Invite friends whom you think will be interested "If you can't explain it simply, you don't understand it well enough" -Albert Einstein
  • 9. About Me My Resume: LinkedIn: http://www.linkedin.com/in/atarekhasan Yatedo: http://www.yatedo.com/atarekhasan Zerply: http://zerply.com/ahmed-tarek-hasan/public Stackoverflow: http://stackoverflow.com/users/1284593/ahmed-tarek-hasan My Social Accounts: Facebook: https://www.facebook.com/ahmed.t.hasan Google+: https://plus.google.com/u/0/117461717174836938716 Twitter: https://twitter.com/AhmedTarekHasa1 StumbleUpon: http://www.stumbleupon.com/stumbler/AhmedTarekHasan/likes Pinterest: http://pinterest.com/ahmedtarekhasan "If you can't explain it simply, you don't understand it well enough" -Albert Einstein