Dies ist eine statische Kopie unseres alten Forums. Es sind keine Interaktionen möglich.
This is a static copy of our old forum. Interactions are not possible.

Neo

Erfahrener Schreiberling

  • "Neo" is male
  • "Neo" started this thread

Posts: 322

Date of registration: Jul 24th 2005

Location: Hannover

Occupation: Informatik

1

Monday, May 15th 2006, 9:24am

Sql

Hallo,

weiß zufällig jemand, wozu man die "WHERE" Bedingung braucht, wenn man "Create a Table using a Subquery" verwendet? Folien vom 12.5.06, Seite 11/23.

migu

free rider

  • "migu" is male

Posts: 2,643

Date of registration: Dec 11th 2001

Occupation: Developer

2

Monday, May 15th 2006, 10:23am

Quoted

Original von Neo
weiß zufällig jemand, wozu man die "WHERE" Bedingung braucht, wenn man "Create a Table using a Subquery" verwendet? Folien vom 12.5.06, Seite 11/23.
Die WHERE-Klausel ist Teil der Unteranfrage. Auf der Folie darüber steht:
"Create a table and insert rows by combining the
CREATE TABLE statement and the AS subquery
option."
Die WHERE-Klausel bestimmt hier also bloß die Tupel, die bei Erzeugung der neuen Tabelle zu ihr hinzugefügt werden.
tar: Anlegen eines leeren Archivs wird feige verweigert.

Neo

Erfahrener Schreiberling

  • "Neo" is male
  • "Neo" started this thread

Posts: 322

Date of registration: Jul 24th 2005

Location: Hannover

Occupation: Informatik

3

Monday, May 15th 2006, 4:03pm

Die neue Tabelle enthält alle Einträge der alten Tabelle, welche die
dep_id = 80 besitzen. Verstehe. Danke

migu

free rider

  • "migu" is male

Posts: 2,643

Date of registration: Dec 11th 2001

Occupation: Developer

4

Monday, May 15th 2006, 5:05pm

Quoted

Original von Neo
Die neue Tabelle enthält alle Einträge der alten Tabelle, welche die
dep_id = 80 besitzen. Verstehe. Danke
Nicht ganz. Das Schema der neuen Tabelle wird durch den SELECT-Teil der Unteranfrage bestimmt. Die Tabelle dept80 hat also ein anderes Schema als die Tabelle employees. Ansonsten hast du natürlich Recht.

PS: Alles zum Thema SQL-Kurs solltest du besser ins Forum für den A-Katalog schreiben, weil es dort hinein gehört.
tar: Anlegen eines leeren Archivs wird feige verweigert.

This post has been edited 1 times, last edit by "migu" (May 15th 2006, 5:06pm)


Markus

the one and only Unterstrich!

Posts: 2,571

Date of registration: Oct 9th 2003

5

Monday, May 15th 2006, 11:06pm

Ich habe mir mal erlaubt, den Thread ins richtige Forum zu schieben.
Charmant sein? Hab ich längst aufgegeben. Glaubt mir doch eh keiner...