100% Zufriedenheitsgarantie Sofort verfügbar nach Zahlung Sowohl online als auch als PDF Du bist an nichts gebunden 4.2 TrustPilot
logo-home
Prüfung

ORACLE : How to create a join with the USING clause in Oracle?

Bewertung
-
Verkauft
-
seiten
4
Klasse
A+
Hochgeladen auf
02-01-2024
geschrieben in
2023/2024

Use the USING clause to specify the columns for the equijoin where several columns have the same names but not same data types.  Use the USING clause to match only one column when more than one column matches.  The NATURAL JOIN and USING clauses are mutually exclusive. Syntax: SELECT n, n FROM table1 JOIN table2 USING (join_column1, join_column2…); Explanation:  table1, table2 are the name of the tables participating in joining.  The natural join syntax contains the NATURAL keyword, the JOIN…USING syntax does not.  An error occurs if the NATURAL and USING keywords occur in the same join clause.  The JOIN…USING clause allows one or more equijoin columns to specify in brackets after the USING keyword. Example: Creating Joins with the USING clause in Oracle In this example, the LOCATIONS table is joined to the COUNTRY table by the country_id column (only column of the same name in both tables). Sample table: locations Sample table: countries SQL> SELECT location_id, postal_code, country_name 2 FROM locations 3 JOIN countries 4 USING (country_id); Copy Sample Output: POSTAL_CODE CITY REGION_ID COUNTRY_NAME ------------ ------------------------------ ---------- ------------------------- 00989 Roma 1 Italy 10934 Venice 1 Italy 1689 Tokyo 3 Japan 6823 Hiroshima 3 Japan 26192 Southlake 2 United

Mehr anzeigen Weniger lesen
Hochschule
Kurs








Ups! Dein Dokument kann gerade nicht geladen werden. Versuch es erneut oder kontaktiere den Support.

Schule, Studium & Fach

Kurs

Dokument Information

Hochgeladen auf
2. januar 2024
Anzahl der Seiten
4
geschrieben in
2023/2024
Typ
Prüfung
Enthält
Fragen & Antworten

Themen

Inhaltsvorschau

How to create a join with the USING clause in Oracle?

 Use the USING clause to specify the columns for the equijoin where several columns
have the same names but not same data types.

 Use the USING clause to match only one column when more than one column matches.

 The NATURAL JOIN and USING clauses are mutually exclusive.

Syntax:
SELECT table1.column, table2.column
FROM table1
JOIN table2 USING (join_column1, join_column2…);
Explanation:

 table1, table2 are the name of the tables participating in joining.

 The natural join syntax contains the NATURAL keyword, the JOIN…USING syntax
does not.

 An error occurs if the NATURAL and USING keywords occur in the same join clause.

 The JOIN…USING clause allows one or more equijoin columns to specify in brackets
after the USING keyword.

Example: Creating Joins with the USING clause in Oracle

In this example, the LOCATIONS table is joined to the COUNTRY table by the
country_id column (only column of the same name in both tables).

Sample table: locations


Sample table: countries


SQL> SELECT location_id, postal_code, country_name

2 FROM locations

3 JOIN countries
$8.99
Vollständigen Zugriff auf das Dokument erhalten:

100% Zufriedenheitsgarantie
Sofort verfügbar nach Zahlung
Sowohl online als auch als PDF
Du bist an nichts gebunden


Ebenfalls erhältlich im paket-deal

Lerne den Verkäufer kennen

Seller avatar
Bewertungen des Ansehens basieren auf der Anzahl der Dokumente, die ein Verkäufer gegen eine Gebühr verkauft hat, und den Bewertungen, die er für diese Dokumente erhalten hat. Es gibt drei Stufen: Bronze, Silber und Gold. Je besser das Ansehen eines Verkäufers ist, desto mehr kannst du dich auf die Qualität der Arbeiten verlassen.
THEEXCELLENCELIBRARY Harvard University
Folgen Sie müssen sich einloggen, um Studenten oder Kursen zu folgen.
Verkauft
17
Mitglied seit
2 Jahren
Anzahl der Follower
6
Dokumente
2641
Zuletzt verkauft
1 Jahren vor
THE EXCELLENCE LIBRARY

The Excellence Library Where Academic Success Begins. Welcome to The Excellence Library — your trusted marketplace for past and upcoming exam papers with verified answers, spanning all academic fields. Whether you're a med student, a future lawyer, a high schooler prepping for finals, or a researcher looking for model dissertations — we've got you covered. What We Offer Accurate & Complete Exam Papers From Medicine, Nursing, Law (Bar Exams), High School subjects, and more. Model Dissertations & Novels Top-tier academic references and full-text materials to guide your writing and study. Affordable & Fair Pricing Quality resources at a price that respects students' budgets. Why Choose Us? Thoroughly Reviewed Answers – Every paper includes clear, correct solutions. Massive Library – Thousands of documents, constantly updated. Academic Excellence, Delivered – We help you prepare smarter, not harder. Fast Delivery – Get what you need, when you need it. Our Goal To empower students and professionals by offering reliable, affordable academic materials — helping you succeed one paper at a time.

Mehr lesen Weniger lesen
2.5

2 rezensionen

5
0
4
0
3
1
2
1
1
0

Warum sich Studierende für Stuvia entscheiden

on Mitstudent*innen erstellt, durch Bewertungen verifiziert

Geschrieben von Student*innen, die bestanden haben und bewertet von anderen, die diese Studiendokumente verwendet haben.

Nicht zufrieden? Wähle ein anderes Dokument

Kein Problem! Du kannst direkt ein anderes Dokument wählen, das besser zu dem passt, was du suchst.

Bezahle wie du möchtest, fange sofort an zu lernen

Kein Abonnement, keine Verpflichtungen. Bezahle wie gewohnt per Kreditkarte oder Sofort und lade dein PDF-Dokument sofort herunter.

Student with book image

“Gekauft, heruntergeladen und bestanden. So einfach kann es sein.”

Alisha Student

Häufig gestellte Fragen