MySQL Forums
Forum List  »  Newbie

Count Entries?
Posted by: Anna Müller
Date: November 15, 2016 01:02PM

Hello I have a question.

I have a table with alot of different URLs. Some of the urls are just different in the address but end at the same file name. Is there a way to count the file name?

e.g.

column url:
http://www.domainA.com/File1.jpg
http://www.domainB.com/File1.jpg
http://www.domainC.com/File1.jpg
http://www.domainA.com/File2.jpg
http://www.domainA.com/File3.jpg
http://www.domainB.com/File2.jpg

The result schoulb be:
File1 = 3
File2 = 2
File3 = 1

I know how to use Count and Group by but I have no idea how to tell the group command that it should group only by filename and ignoring the domain address

Options: ReplyQuote


Subject
Written By
Posted
Count Entries?
November 15, 2016 01:02PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.