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

Posted on 2017-01-16
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 500 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

Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

Question has a verified solution.

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

Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Introduction to Processes

687 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