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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:54:23+00:00 2026-05-30T07:54:23+00:00

I have four tables in my database: student : contain the student’s ID and

  • 0

I have four tables in my database:

  • student : contain the student’s ID and name, etc.
  • student_fee : contains the paid_date, student_id and fee_id with references to the student and fee tables
  • fee : contains the fee_id, fee amount, fee_typeid (ref to fee_type table)
  • fee_type : contain the fee_typeid and type of fees – admission fee, monthly tuition fee, fines, uniform fees, etc.

How do I display the students who have already paid the admission fee (or fee_typeid for admission fee) and those who have not paid it?

Well .. English is not my first language 😉

  • 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-30T07:54:24+00:00Added an answer on May 30, 2026 at 7:54 am
    SELECT * FROM student WHERE student_id IN
        (
            SELECT student_id FROM student_fee WHERE fee_id IN
                (
                     SELECT fee_id FROM fee WHERE fee_typeid=?
                )
        )
    

    I believe this is what you need. This is a method of doing joins without actually writing the join syntax.

    Basically, you are selecting all the fee_id where they are of the type that you want. Then, you are selecting all the student_id where the fee_id matches the ones you just selected. Finally, you pull all the information about the students whose student_id is one of the ids you just pulled.

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

Sidebar

Related Questions

I have four tables in database. person(Perid ,firstname , lastname , gender) Research (Resid
I have four tables in my database( notes , expense , category and items
I have a secondhand sale car database and four tables with relationships. Same column
I have four tables in my database and i want to join that's and
I have a small MS Access database containing four tables and are struggeling with
I have four tables in a MySQL database and I am trying to create
I have four DB tables in an Oracle database that need to be rewritten/refreshed
I have four entities that I would like to translate into database tables via
I have four Database Tables like these: Book ID_Book |ID_Company|Description BookExtension ID_BookExtension | ID_Book|
This is my database structure I have four tables. Table LocalArea and Lanungaue have

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.