Report2000, that sounds like a righteous desire to me. It would help us help you if you could disclose specific tables, columns, and criteria by which you determine the "Top 10 Industries" enrolled with your company.
Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
Here u go. this is the qury stucture. How can I group the industrycode so thwn i can pick up the top 10 industry
select
company.userid,
company.companyName,
Industry.industrycode,
indusrty.idustryName
from
company company
industry industry
where
company.indusrtycode = industry.industrycode
You never gave the criterea for what is a top 10 company, but I will dummy up a test case.
select *
from
(select
company.userid,
company.companyName,
Industry.industrycode,
indusrty.idustryName
from
company company
industry industry
where
company.indusrtycode = industry.industrycode
order by company.ranking)
where rownum < 11;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.