Solved

MySQL: Get Range Where there are Two or More Matches

Posted on 2013-05-16
1
257 Views
Last Modified: 2013-05-16
Using MySQL, I would like to get the range ( max - min ) for values.

The problem with my query is that I want it to return NULL if there are less than 2 matches for the time period.

In this example, the value of "BIDRANGE4" should be NULL not 0.

http://sqlfiddle.com/#!2/94d35/1
0
Comment
Question by:hankknight
1 Comment
 
LVL 40

Accepted Solution

by:
Sharath earned 500 total points
ID: 39172442
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

More Fun with XML and MySQL – Parsing Delimited String with a Single SQL Statement Are you ready for another of my SQL tidbits?  Hopefully so, as in this adventure, I will be covering a topic that comes up a lot which is parsing a comma (or other…
Creating and Managing Databases with phpMyAdmin in cPanel.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

758 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

22 Experts available now in Live!

Get 1:1 Help Now