Hello Experts, Below query is not working on oracle. It works in SQL Server 2008. I am facing errors.

Posted on 2017-01-16
Medium Priority
Last Modified: 2017-01-16
Hello Experts,
Below query is not working on oracle. It works in SQL Server 2008. I'm facing errors.
SELECT BDetails.BillDetailId, BDetails.LastDateofTransaction, BDetails.Tax, BDetails.Units, tbl_BillNormals.billId FROM tbl_BillNormals
     SELECT tbl_billdetails.BillDetailId, tbl_billdetails.LastDateofTransaction, tbl_billdetails.Tax, tbl_billdetails.Units FROM tbl_billdetails
     WHERE tbl_billdetails.billId =  tbl_BillNormals.billId
) AS BDetails
Help needed!!!
Question by:Mayank Tripathi
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 29

Accepted Solution

Pawan Kumar earned 2000 total points
ID: 41963443
What error are you facing? Which version of oracle are you using?

try using INNER JOIN like below.

SELECT [yourcolumns.....] FROM tbl_BillNormals b
INNER JOIN tbl_billdetails bd ON b.billId = bd.billId

Open in new window


Author Closing Comment

by:Mayank Tripathi
ID: 41963445
Join did the trick.

Featured Post

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Make the most of your online learning experience.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
Viewers will learn how the fundamental information of how to create a table.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question