Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 109677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:06:26+00:00 2026-05-11T02:06:26+00:00

Given the one-table design given below how would the following best be queried The

  • 0

Given the one-table design given below how would the following best be queried

  • The set of extended family members given a folk id
  • The set of common ancestors given two folk ids
  • The set of descendants given a folk id

*Bonus 1st cousins, twice removed given a folk id

Table Folk

FolkID (PK) MotherID (FK to folkid) FatherID (FK to folkid) Name Gender 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T02:06:26+00:00Added an answer on May 11, 2026 at 2:06 am

    Someone has to build a familytree application? I did something similar some time ago, using XML and XPath:

    <Persons>      <Person ID='1' Name='Minu eesnimi' Surname='Minu perekonnanimi' Picture='0' Sex='M'>           <Event Name='Birth' Prefix='' Location='Tallinn' Date='14.01.1963'><![CDATA['Ilusal jaanuarihommikul']]>           </Event>           <Event Name='Death' Prefix='' Location='' Date=''/>           <Father ID='2' Type='P&#228;ris'/>           <Mother ID='3' Type='P&#228;ris'/>           <Spouse ID='4'/>         </Person> ... 

    String XPath=’child::*/child::Person[child::Father[@ID=\”+String(ID) +’\’] and child::Mother[@ID=\”+String(Spouse)+’\’]]’; etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given a table of logical resource identifiers (one per row), what is the best
Given a table (mytable) containing a numeric field (mynum), how would one go about
Given table: ID ONE TWO X1 15 15 X2 10 - X3 - 20
Given a table named person (in a MySQL database/schema), kind of like this one:
Given that I have a table that holds vehicle information and one of those
I need to generate a set of coordinates in Erlang. Given one coordinate, say
Is there a proper term in data modeling to describe the following? Given table
I have a table in which in one of the column I would be
I am trying to design an AST for a decision logic table. One of
Given two tables, one for workers and one for tasks completed by workers, CREATE

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.