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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select DISTINCT pages

Status
Not open for further replies.

epkiran

Programmer
Jun 26, 2001
7
SE
How do I use DISTINCT (or whatever) to get DISTINCT Page_no?

A page can be re-used in another course, and I only want to list pages in the chosen course.....now I get a row with the page from every course it is used in....

SELECT p.Page_No, p.OriginalCourse_No, p.Summary
FROM CC_CoursePageView p INNER JOIN
PageObject po ON p.Page_No = po.Page_No
WHERE (po.MediaType_No = '11') AND (po.TechLevel = '3') AND (p.OriginalCourse_No = '337')

Regards
Irene
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top