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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:22:05+00:00 2026-05-27T13:22:05+00:00

I am planning to make an online bus ticket reservation systems . In this,

  • 0

I am planning to make an online bus ticket reservation systems . In this, the ticket agent as well as the online user can book the tickets available . But I am stuck while I am building my flow chart . Buses with same numbers can go to and fro journey,ie a bus with number AS 1234 can go to X and Y in both direction . So how I will be able to search the bus from X and Y only,because that bus will be entered for both direction in database . 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-27T13:22:05+00:00Added an answer on May 27, 2026 at 1:22 pm

    How about adding an extra attribute like “running”. Set it to accept NULL also. If its a bus with bidirectional traffic., When the bus with bus number-AS4532 is running from X->Y, mark attribute “running=’to'” in that record. If its vice-versa set it as “running=”fro”‘. if its unidirectional bus, mark attribute as “N/A”.

    So you can do something like,

    SELECT seats_free FROM Buses WHERE busNo="AS1234" and place1="X" and place2="Y" and running="to";
    SELECT seats_free FROM Buses WHERE busNo="AS1234" and place1="X" and place2="Y" and running="fro";
    SELECT seats_free FROM Buses WHERE busNo="AS1221" and place1="X" and place2="Y" and running="N/A";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm planning to make an application that can let the user accessing the Internet
I'm a django(python) web developer. I can also make 2D flash games. I'm planning
I am planning to make an iPhone search app. the user types in the
I am planning to make an recipe application. In this application firstly a list
Well I am planning to make small site with full ajax requests. Login, registration
I was planning to make an app that can hide itself outside the top
I have developed a few python programs that I want to make available online.
im planning to make a Simple Screen transition Dashboard. I am going to make
I am planning to make an iPhone application that pulls the information from websites
So I am planning to make an existing website mobile friendly. The good part

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.