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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:21:50+00:00 2026-06-16T03:21:50+00:00

i have a timetable application and i’m stuck at a point. now while allotting

  • 0

i have a timetable application and i’m stuck at a point. now while allotting a slot to a teacher i need to display only those rooms which are vacant based on certain conditions i.e. the day and period coordinates(x,y) and the semesters which means the even semesters (2,4,6) cannot have classes in that room at same time and same is for the odd semesters(1,3,5).

my table structure:

Room table
roomid, roomname

papers table
id, semster, papername

ttresponsibility table(this is the one where we store the allocations)
id, teacherid, day, period, subjectid, room

Now my requirement is to fetch only those rooms at the time of allocation which are vacant. this ofcourse should be while selecting for a teacher and the course, semester and the paper has been selected. my idea is to populate the rooms dropdown on the onchange event of paper dropdown. Please correct me if i’m wrong.

  • 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-16T03:21:51+00:00Added an answer on June 16, 2026 at 3:21 am

    Something like this might get there:

    SELECT roomname
    FROM Room
    WHERE roomid NOT IN
    (
        SELECT roomid
        FROM ttresponsibility
        WHERE period = *insert_timeperiod_to_search_for_empty_rooms_here*
            AND day = *insert_day_to_search_for_empty_rooms_here*
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question about scheduling. I need to make a timetable generator for
I have a binary application on windows (train timetable software) which contains a lot
I have a timetable in memory, and need to be able to print it
So I'm making a small App Engine application through python which reads a timetable
I have an app which downloads a timetable and saves it, it also regularly
I have two tables, timetable and lesson_booking these are linked via timetable_id . timetable
I have to implement an algorithm that generates a timetable for a university. I've
I have a problem looping through my tableLegs for a bus timetable to find
I have 2 for loops and need to check if the model contains value
In my Java Application creating Value Object(Java Bean) in that have one field @Entity

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.