469,273 Members | 1,755 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,273 developers. It's quick & easy.

FULL OUTER JOIN

SELECT
d.code,
d.description,
v.code AS divCode,
v.descripton AS divDescript,
b.code AS brhCode,
b.description AS brhDescript

FROM
Department d FULL OUTER JOIN Division v
ON d.dptID = v.deptID
FULL OUTER JOIN Branch b
ON v.divID = b.divID
FULL OUTER JOIN Section s
ON b.brchID = s.brchID
FULL OUTER JOIN unit u
ON s.sectionID = u.sectionID
I have built a FULL OUTER JOIN.

For example, if I created an attribute called "TypeName" and defined
as an int data type in each table and those values of the attributes
are from a type table.
Department.typename = type.index_id
Division..typename = type.index_id
branch.typename = type.index_id
section.typename = type.index_id
unit.typename = type.index_id

Where/how should I stick those conditional statement in the query
statement to print out the type name as well as a result?
Jul 20 '05 #1
0 4956

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Dave | last post: by
7 posts views Thread by alexcn | last post: by
4 posts views Thread by Anthony Robinson | last post: by
2 posts views Thread by Lee | last post: by
1 post views Thread by Martijn van Oosterhout | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.