Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Count
Message
From
21/03/2000 16:11:05
 
 
To
21/03/2000 15:23:07
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Re: Count
Miscellaneous
Thread ID:
00348469
Message ID:
00348586
Views:
29
Thanks David,

I finally got it to work the way I want. I linked the tables together that contained the quantities and that worked.


select course.courseid, course.name, nvl(material.materialid, "None ") as materialid,;
nvl(material.description, "None ") as mname,;
classi.qty, ccrequest.qty2, whatever.qty3;
from course left join cmaterials on course.courseid = cmaterials.courseid;
left join material on cmaterials.materialid = material.materialid;
left join ccrequest on course.courseid = ccrequest.courseid;
left join classi on course.courseid = classi.courseid;
left join whatever on course.courseid = whatever.courseid;
UNION select course.courseid, course.name, nvl(textbook.textid, "None ") as materialid,;
nvl(textbook.textname, "None ") as mname,;
classi.qty, ccrequest.qty2, whatever.qty3;
from course left join coursematerial on course.courseid = coursematerial.courseid;
left join textbook on coursematerial.textid = textbook.textid;
left join ccrequest on course.courseid = ccrequest.courseid;
left join classi on course.courseid = classi.courseid;
left join whatever on course.courseid = whatever.courseid;
into cursor clmaterial


Tyler
Previous
Reply
Map
View

Click here to load this message in the networking platform