hi,
i have 4 tables which i need to create a list of values. it's easier for the user if they are alphabetisized so he can find them easier...but i can't figure out exactly how to do that.
my 4 tables:
LOCATION ([u]locationId</u>, name)
DEPARTMENT ([u]departmentId</u>, locationId, name)
SUBDEPARTMENT ([u]subdepartmentId</u>, departmentid, name)
COST ([u]costId</u>, locationId, departmentId, subdepartmentId, name)
a location has 1 to many costs
a department has 1 to many costs
a department has 1 to many subdepartments
What i need is a list in this order:
===========================
location
department
subdepartment
cost
===========================
somehow i can only get this list for one location and not for all of them
if some sql whizzkid could write a statement for this problem i would be very grateful :D
thanks in advance,
Harold