471,893 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,893 software developers and data experts.

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 5057

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 YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.