SQL inner joins and ambiguous field names
Not what you're looking for?
Why wont this query run and how would you write it correctly? Major hint: try and run the query (use the database attached to Week 2's lecture) ...
you'll get an error message that should explain:
SELECT isbn
FROM books INNER JOIN order_lines ON books.isbn = order_lines.isbn;
Purchase this Solution
Solution Summary
This solution demonstrates an inner join when the tables involved contain fields with the same name.
Solution Preview
First let's look at the query in more detail:
SELECT isbn
FROM books INNER JOIN order_lines ON books.isbn = order_lines.isbn;
The SELECT clause indicates which field(s) you want included in the result set. The fields are indicated by their name. In this case there is only one requested field and it's "isbn".
The FROM clause indicates which tables we are selecting from. This particular FROM ...
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.
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.
Inserting and deleting in a linked list
This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.
Javscript Basics
Quiz on basics of javascript programming language.
C++ Operators
This quiz tests a student's knowledge about C++ operators.