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 8467325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:36:36+00:00 2026-06-10T15:36:36+00:00

I tried solving the below question. I just want to make sure if I

  • 0

I tried solving the below question. I just want to make sure if I am correct.

student(student-name, street, city)
offering(department, number, section, time, population)
titles(department, number, title)
enrollment(student-name, department, number, section)

If I need to find The department, number, section, title, and population for every course section

The SQL query I tried is :

select a.department, a.number, a.section,b.title,population as "students"
from offering a ,titles b ,enrollment c,student d
where a.department=b.department
and a.number=b.number
and a.department=c.department
and a.number=c.number
and a.section=c.section
group by a.section

Please let me know if I am correct.

Thank you for your time and patience.

  • 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-06-10T15:36:37+00:00Added an answer on June 10, 2026 at 3:36 pm

    I don’t believe that is correct, because the question doesn’t refer to a Student. The question, as I understand it, is to get a list of all sections that are available, along with its title, which shouldn’t need to join to Student. I believe just the Offering and Titles tables would be involved.

    SELECT a.department, a.number, a.section, b.title, a.population 
    FROM offering a INNER JOIN titles b 
    ON a.department=b.department and a.number=b.number 
    ORDER BY a.department, a.number, a.section
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not sure how to best go about this. I've tried solving this my
Edit: Below is my original question. After solving my problem, I thought I'd re-edit
Tried to make a little old school ajax (iframe-javascript) script. A bit of mootools
I started a different thread for this, I tried solving it using the help
I have tried solving this problem by posting other related questions here that focused
I tried solving my problem using this link update - I figured out that
I tried to achieve following using recurssion but im getting segfault pls correct me??
I was looking for solving a LCS problem (Longest common subsequence) and I tried
This question is all about solving a SslPolicyError.RemoteCertificateNotAvailable error. I have developed a TCP
I am stuck at solving Accelerated C++ exercise 8-5 and I don't want to

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.