Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

DB recursive relations question

Name: Anonymous 2005-09-02 4:35

Hi /prog, say I have a table with two columns:

- Employee name [primary key]
- Employee data (address, etc.)
- Chief [foreign key to this table]

How could I construct a SELECT statement to get all employees that, for example, have the same address as their boss?

Name: Anonymous 2009-02-21 12:17

>>4
alot of non standard sql language think they're so clever by including reptition and recursion tools in their SQL DBMS but if you think a loop is a good idea in an sql query you're probably doing it wrong

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List