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

  • Home
  • SEARCH
  • 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 3601536
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:38:02+00:00 2026-05-18T20:38:02+00:00

i need to specify following in one query: It should include the Activity_name and

  • 0

i need to specify following in one query: It should include the Activity_name and Child_ first_name and last_name for each child registered for the specified Activity. There is (Football/Art/IT) activities in Activity Table(which has primary_key for each activity). What would be the query that would list children registered for Art activity? Children name’s should be displayed in one column. Thanks.

  • 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. Editorial Team
    Editorial Team
    2026-05-18T20:38:03+00:00Added an answer on May 18, 2026 at 8:38 pm

    Without providing your table structure, I cannot provide an accurate query.

    However, if I were to design a set of tables that store a list of children, a list of activities, and a correlation between the two, it would consist of three tables named “children,” “activities,” and “linktable” in this example.

    children
        id
        first_name
        last_name
    
    activities
        id
        name
    
    linktable
        child_id
        activity_id
    

    children stores the names and information of every child, and a unique id. activities stores the names and relevant information about activities, as well as a unique id. Finallly, linktable may be something like “schedule” or “signups” in your system, and should link children to activities and allow for what is called a many-to-many relationship. In other words, one child may participate in many activities, and any activity may be engaged by many children.

    The following query is an example of how to see which children are signed up for Art:

    SELECT
        a.name, CONCAT(c.first_name, ' ', c.last_name) AS child_name
    FROM
        children c, activities a, linktable
    WHERE
        linktable.child_id = c.id
    AND
        linktable.activity_id = a.id
    AND
        a.name = 'Art';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can some one specify the windows API, one need to use in order to
I am using VB9's inline XML, and I have a need to specify a
I have a business case whereby I need to be able to specify my
Need to locate the following pattern: The letter I followed by a space then
I've got a MySQL query somewhat like the following: SELECT * FROM products LEFT
Given the following function: def foo(a, b, c): pass How would one obtain a
Need a function that takes a character as a parameter and returns true if
Need a way to allow sorting except for last item with in a list.
Need to an expression that returns only things with an I followed by either
need ask you about some help. I have web app running in Net 2.0.

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.