Solved

MySQL: Get Range Where there are Two or More Matches

Posted on 2013-05-16
1
262 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to count in a table in php 22 45
Restore of mysql database from .SQL file - using Coldfusion 5 41
Very Large data in MYSQL 7 74
MySql Recovery 2 28
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

830 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