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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:16:07+00:00 2026-06-18T04:16:07+00:00

The query works, but I was asked to rewrite it in join operator style.

  • 0

The query works, but I was asked to rewrite it in join operator style.

SELECT pr.ProdName, pr.ProdPrice
FROM Product pr, OrderTbl ord, OrdLine ol, Customer cu
WHERE pr.ProdNo=ol.ProdNo
AND ord.OrdNo=ol.OrdNo
AND cu.CustNo=ord.CustNo
AND cu.CustNo='C2388597'
AND ord.OrdDate BETWEEN '01-Jan-04' AND '31-Jan-04';

I’ve just started out using Oracle, so I’m not sure how. I think I should be using INNER JOINS, but I don’t know exactly how. Could someone help me, please?

  • 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-18T04:16:09+00:00Added an answer on June 18, 2026 at 4:16 am

    You should definitly read about joins though, but here is how this cross join style can be converted to inner join

    SELECT pr.ProdName, pr.ProdPrice
    FROM Product pr
     INNER JOIN OrdLine ol ON pr.ProdNo=ol.ProdNo
     INNER JOIN OrderTbl ord ON ord.OrdNo = ol.OrdNo
     INNER JOIN Customer cu ON cu.CustNo=ord.CustNo 
    WHERE cu.CustNo='C2388597'
    AND ord.OrdDate BETWEEN '01-Jan-04' AND '31-Jan-04';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

MySQL Query works fine using MySQL workbench but produces an error when I am
The following query works on Oracle 10.2.0.1.0 on windows,but doesn't work on Oracle 10.2.0.2.0
I have a problem with a query. This query works with phpMyAdmin, but I
I have a query which works fine in MySQL, but when I run it
I am running the query below in Sybase application which works great but the
I have written a SQL query that works just fine, but am having a
I have the following query. It works just fine but I need to pull
When using the PHP Sphinx client this works: SphinxClient::query ('*', 'index1'); But when I
I'm logging output with log = /var/log/mysql/query.log and this works ok, but I only
I have already asked this before but I never seem getting how it works(I

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.