Solved

sql help needed

Posted on 2001-09-14
3
271 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
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
OlegP earned 50 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Introduction: I have seen many questions on EE and elsewhere, asking about how to find either gaps in lists of numbers (id field, usually) ranges of values or dates overlapping date ranges combined date ranges I thought it would be a good …
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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…

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now