Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unusual code 2

Status
Not open for further replies.

xxing

Programmer
Feb 17, 2004
61
NZ
Hi I have been given stored procs that has some unusual code I have never seen before.

Code:
SELECT
o1.name,
o2.name,
p.firstname + ' ' + p.surname,
p.firstname + ' ' + p.surname + ', ' + o2.name,
d.decision_id,
rr.decision_id
FROM 
{
oj 
((((DECISION d
INNER JOIN PERSON p ON d.NOMINATED_PERSON_ID=p.PERSON_ID) 
INNER JOIN JOB j ON d.JOB_ID=j.JOBID) 
INNER JOIN ORGANISATION o1 ON j.ORGANISATION_ID=o1.ORGANISATION_ID)
INNER JOIN ORGANISATION o2 ON d.ORGANISATION_ID=o2.ORGANISATION_ID) 
LEFT OUTER JOIN REWORK_REQUEST rr ON d.DECISION_ID=rr.DECISION_ID 
}

What does the { oj in the from clause mean?

Thank you for your help

Regards
Mark
 
I read that article but I can't understand why they would be needed? what do they get you that the joins themselves wouldn't give you?

"NOTHING is more important in a database than integrity." ESquared
 
Thanks for the explanation RyanEk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top