Purchase Solution

isbns from two different tables

Not what you're looking for?

Ask Custom Question

I have a query that starts with the line:

SELECT books.isbn, order_lines.isbn

...why would I want to see isbns from two different tables? What sort of query would warrant that - an inner join or an outer join?

Assume the table "books" contains books that the company stocks. Assume the table order_lines only contains books that have actually been ordered.

Purchase this Solution

Solution Summary

The expert examines isbns from two different tables. The sort of query which would be warranted are determined.

Solution Preview

1) You want to use inner join on tables 'books' and 'order_lines'
when you want to get all records from both of tables 'books' and 'order_lines'
where there is a match i.e having same ISBN. If there are rows in 'books' that do not have matches in 'order_lines', those rows (BOOKS records) will not be listed.
So innerjoin will give all the books records that are in both tables 'books' and 'order_lines'
So with the assumption the table "books" contains books that the company stocks. Assume the table order_lines only contains books that have actually been ordered.
the innerjoin query results displaying companystocks books that have been ...

Purchase this Solution


Free BrainMass Quizzes
Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Basic Networking Questions

This quiz consists of some basic networking questions.