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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:38:21+00:00 2026-05-31T23:38:21+00:00

I am doing Oracle database project which called Theatre booking system. I am trying

  • 0

I am doing Oracle database project which called “Theatre booking system”.
I am trying to display discounted price through Customer_Concession and Member_Concession.
Null-able foreign keys are bookingId, cconcessionId, and mconcessionId in Ticket table.
I want to display all ticket even one of id is not exist.
How can I write the SQL?
Could you help me?
Thanks.

SELECT t.ticketId, pro.name "Production name", PRICE.LEVELID "Price level", 
Price.price "Price", (Price.price - ccons.discountPrice - mcons.discountPrice)
"Discounted Price", t.seatNo "Seat", t.rowNo "Row", t.block "Block",
per.performance_date "Performance date", per.start_time "Start time", 
per.end_time "End time", t.availability "Availability"

FROM Ticket t, Production pro, Performance per, Price, Price_level, 
Booking, Customer, Customer_Concession ccons, Member_concession mcons

WHERE t.performanceid = per.performanceid AND
  t.PRODUCTIONID = Price.PRODUCTIONID AND
  t.levelId = Price.levelId AND
  Price.PRODUCTIONID = pro.PRODUCTIONID AND
  Price.levelId = Price_level.levelId AND
  t.bookingId = Booking.bookingId AND
  Booking.customerId = Customer.customerId AND
  ccons.cconcessionId = t.cconcessionId AND
  mcons.mconcessionId = t.mconcessionId

ORDER BY t.ticketId
  • 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-31T23:38:23+00:00Added an answer on May 31, 2026 at 11:38 pm

    What you are looking for is called LEFT OUTER JOIN.

    for more info, visit this site: http://www.oreillynet.com/network/2002/04/23/fulljoin.html

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

Sidebar

Related Questions

I am doing my first database project in PostgreSQL or Oracle. I would like
I'm doing a multi-layer MVVM WPF application, which is connected to an Oracle database.
Doing my first tryouts with foreign keys in a mySQL database and are trying
I have an Oracle database where I'm trying to select a user field from
I'm trying to connect to a local oracle database but I'm getting this cryptic
I'm doing a migration from sqlite to oracle backend. The oracle database already exists
I'm doing an insert from a C# .NET app into an Oracle database. The
I am doing multimedia application. my issue is i want to connect oracle database
I'm trying to connect java to a Oracle database within terminal. I'm not very
I'm doing some basic database learning on Oracle 11g over a Citrix client. The

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.