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

  • Home
  • SEARCH
  • 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 7722419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:10:02+00:00 2026-06-01T04:10:02+00:00

Im trying to create a select command to query the database I have and

  • 0

Im trying to create a select command to query the database I have and find different values from different tables in the database.

  • 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-01T04:10:04+00:00Added an answer on June 1, 2026 at 4:10 am

    Try the following, I change all ID columns from CHAR to NUMBER

    CREATE TABLE Actor
    (actorID NUMBER,
    lastName CHAR(24),
    firstName CHAR(24),
    middleName CHAR(24),
    suffix CHAR(6),
    gender CHAR(1),
    birthDate DATE,
    deathDate DATE)
    /
    
    CREATE TABLE Movie
    (movieID NUMBER,
    title CHAR(36),
    year NUMBER,
    company CHAR(50),
    totalNoms NUMBER,
    awardsWon NUMBER,
    DVDPrice NUMBER(5,2),
    discountPrice NUMBER(5,2))
    /
    
    CREATE TABLE Role
    (roleID NUMER,
    roleName CHAR(36),
    gender CHAR(1),
    actorID NUMBER,
    movieID NUMBER)
    /
    
    CREATE TABLE Quote
    (quoteID NUMBER,
    quoteCHAR CHAR(255))
    /
    
    CREATE TABLE RoleQuote
    (roleID NUMBER,
    quoteID NUMBER)
    /
    

    and the select will be:

    SELECT  Movie.Title , Movie.Year , Actor.Firstname, Actor.lastname, Role.roleName, Quote.quoteCHAR 
    FROM    Movie, Actor, Role, Quote, RoleQuote
    WHERE   Movie.movieID = Role.movieId AND 
        Actor.actorID = Role.ActorId AND 
        Role.roleID = RoleQuote.roleID AND
        Quote.quoteID = RoleQuote.quoteID AND
        Quote.quoteCHAR LIKE '%Houston, we have a problem.%'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to create Database as follows: USE Master GO IF NOT EXISTS(SELECT [Name] FROM
I am trying to create a select list starting from the current date of
i am trying to create a dynamic multioption select using dynamic values for a
I'm trying to create a FUNCTION in my Postgres database from a Bash script.
I have the following query: SELECT l.id, (SELECT amount FROM lead_status WHERE lead_id =
I have been trying to make a stored procedure which autodeletes temporary tables. CREATE
I am trying to create two select lists both filled with the same times.
I'm new to this so bear with me. I'm trying to create a select
I am trying to create a view for a UNION of 2 select statements
I'm trying to create a script what permits me to select a few lines

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.