Oracle 10g Query

110 pts.
Tags:
Oracle 10g
Oracle queries
Oracle Table
i made two tables in oralce10g,income and expense they have no relation with each other plz tell me a query how can i get the data from these tables with one query.

Answer Wiki

Thanks. We'll let you know when a new response is added.

You will need to provide more details.

Why do you want to get data from two unrelated tables with one single query ?

To get data from 2 or more tables with 1 query you could use a JOIN query, but you will need at least one column to join them on (tables must be related in some way, or you would get a cartesian product).

You could also use a UNION if columns in both tables are similar (columns requested from one table must match columns requested from the second table in number and types).

Please explain your situation with more details, and post your table structures (and some example data if possible), so we can better help you.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following