BuyFindarrow_forward

A Guide to SQL

9th Edition
Philip J. Pratt
Publisher: Course Technology Ptr
ISBN: 9781111527273
Chapter 5, Problem 14RQ
Textbook Problem
37 views

What is the formal name for the product of two tables? How do you form a product in SQL?

Explanation of Solution

Cartesian join:

  • It is the formal name for multiplying two tables.
  • It is also called as “CROSS JOIN” that returns the result that contains the product of number of rows in the first and second table.
  • If “WHERE” clause is used in “CROSS JOIN” then it works like “INNER JOIN”.

Syntax:

SELECT table_Name1.column_Name1, table_Name2.column_Name2… FROM table_Name1, table_Name2,…;

Performing Cartesian join:

Creating tables:

CREATE TABLE cseitstudent(studentID INT, sname VARCHAR(30), department VARCHAR(5), sem INT);

CREATE TABLE placement(PlacementID INT,StudentID INT, departme...

Still sussing out bartleby?

Check out a sample textbook solution.

See a sample solution

The Solution to Your Study Problems

Bartleby provides explanations to thousands of textbook problems written by our experts, many with advanced degrees!

Get Started

Chapter 5 Solutions

A Guide to SQL
Show all chapter solutions
add
Ch. 5 - Which rows are included in an inner join? What...Ch. 5 - Which rows are included in a left outer join? What...Ch. 5 - Which rows are included in a right outer join?...Ch. 5 - What is the formal name for the product of two...Ch. 5 - Use the Internet to find definitions for the terms...Ch. 5 - For each order, list the order number and order...Ch. 5 - For each order placed on October 15, 2015, list...Ch. 5 - For each order, list the order number, order date,...Ch. 5 - Use the IN operator to find the number and name of...Ch. 5 - Repeat Exercise 4, but this time use the EXISTS...Ch. 5 - Find the number and name of each customer that did...Ch. 5 - For each order, list the order number, order date,...Ch. 5 - Repeat Exercise 7, but this time order the rows by...Ch. 5 - Use a subquery to find the rep number, last name,...Ch. 5 - Repeat Exercise 9, but this time do not use a...Ch. 5 - Find the number and name of each customer that...Ch. 5 - List the item number, description, and category...Ch. 5 - List the order number and order date for each...Ch. 5 - List the order number and order date for each...Ch. 5 - List the order number and order date for each...Ch. 5 - List the order number and order date for each...Ch. 5 - List the order number and order date for each...Ch. 5 - List the item number, description, unit price, and...Ch. 5 - If you used ALL in Exercise 18, repeat the...Ch. 5 - For each rep, list the customer number, customer...Ch. 5 - For each reservation, list the reservation ID,...Ch. 5 - For each reservation for customer Ryan Goff, list...Ch. 5 - List the trip name of each trip that has Miles...Ch. 5 - List the trip name of each trip that has the type...Ch. 5 - For each reservation that has a trip date of July...Ch. 5 - List the reservation ID, trip ID, and trip date...Ch. 5 - Repeat Exercise 6, but this time use the EXISTS...Ch. 5 - Find the guide last name and guide first name of...Ch. 5 - Repeat Exercise 8 but use aliases for the table...Ch. 5 - List the trip IDs and trip names (or each pair of...Ch. 5 - Find the trip name of all reservations for hiking...Ch. 5 - List the number and name of each customer that...Ch. 5 - List the number and name of each customer that...Ch. 5 - Find the trip ID and trip name for each trip whose...Ch. 5 - Find the trip ID and trip name for each trip whose...Ch. 5 - Display the trip ID, trip name, and reservation ID...Ch. 5 - Repeat Exercise 8 but list the guide name only...Ch. 5 - Repeat Exercise 10, but this time list only hiking...Ch. 5 - For every condo, list the location number, unit...Ch. 5 - For every completed or open service request for...Ch. 5 - For every service request for janitorial work,...Ch. 5 - List the first and last names of all owners who...Ch. 5 - Repeat Exercise 4, but this time use the EXISTS...Ch. 5 - List the unit numbers of any pair of condos that...Ch. 5 - List the square footage, owner number, owner last...Ch. 5 - Repeat Exercise 7, but this time include only...Ch. 5 - List the location number, unit number, and condo...Ch. 5 - List the location number, unit number, and condo...Ch. 5 - List the location number, unit number, and condo...Ch. 5 - Find the service ID and condo ID for each service...Ch. 5 - Find the service ID and condo ID for each service...Ch. 5 - List the condo ID, square footage, owner number,...Ch. 5 - Repeat Exercise 14, but this time be sure each...Ch. 5 - Repeat Exercise 15 using a different SQL command...

Additional Engineering Textbook Solutions

Find more solutions based on key concepts
Show solutions add
What is feed, and how is feed stated for drill press operations?

Precision Machining Technology (MindTap Course List)

Name the engine operating conditions that most affect ignition timing requirements.

Automotive Technology: A Systems Approach (MindTap Course List)

Use VBA to create a custom-made dialog box for Problem 14.14. 14.14 A person by the name of Huehscher developed...

Engineering Fundamentals: An Introduction to Engineering (MindTap Course List)

The resultant of the three forces is a force R that passes through point B. Determine R and F.

International Edition---engineering Mechanics: Statics, 4th Edition

Name the two types of smoke alarms.

EBK ELECTRICAL WIRING RESIDENTIAL

Unencrypted, readable data is called ciphertext.

Enhanced Discovering Computers 2017 (Shelly Cashman Series) (MindTap Course List)

If your motherboard supports ECC DDR3 memory, can you substitute non-ECC DDR3 memory?

A+ Guide to Hardware (Standalone Book) (MindTap Course List)

EAPoL is primarily used with what kind of transmission?

Network+ Guide to Networks (MindTap Course List)