?
Solved

sql help needed

Posted on 2001-09-14
3
Medium Priority
?
301 Views
Last Modified: 2006-11-17
I have a table with about 5 million records in it.  I need to find the unique values of a field called URL and the number of times these specific URLs appear in my table.

For example:

URL               id
----------------------------
www.yahoo.com      1
www.lycos.com      2
www.yahoo.com      3

I need a report for the above data to return:

www.yahoo.com   2
www.lycos.com   1


Thanks!
0
Comment
Question by:kmurphy99
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
OlegP earned 200 total points
ID: 6482652
select url,count(url)
from table
group by url
0
 
LVL 6

Expert Comment

by:OlegP
ID: 6482669
With order

select url,count(url)
from table
group by url
order by count(url) desc
0
 

Author Comment

by:kmurphy99
ID: 6482723
Thanks!  New to this stuff....
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question