This is way cool, and I am now sidetracked on where I can use this for 
reporting..lol

But not gonna help with my current problem though.  And honestly I don't 
think a DB solution is the answer..

M

On Thursday, March 22, 2018 at 7:09:56 PM UTC-5, [email protected] 
wrote:
>
> This might as well: 
> https://dev.mysql.com/doc/refman/5.7/en/partitioning-range.html
>
>  
>
> *James E. Thomas*
> *Enterprise Practice Support Systems Manager* 
>
> Baker Botts L.L.P.
> [email protected] <javascript:>
> T +1.713.229.2196
> F +1.713.229.8130
> M +1.832.373.8117
>
> 910 Louisiana Street
> Houston, Texas 77002
> USA
>
> [image: bblogo] <http://www.bakerbotts.com/>
> [image: linkedin] 
> <https://www.linkedin.com/company/baker-botts-llp?trk=hb_tab_compy_id_8300> 
> [image: 
> youtube] <https://www.youtube.com/channel/UCgys2C8DwRY-BVN079QNnwQ> [image: 
> facebook] <https://www.facebook.com/BakerBottsLLP/> [image: instagram] 
> <https://www.instagram.com/bakerbotts/> [image: twitter] 
> <https://twitter.com/bakerbotts>
>
>  
>
> *From:* [email protected] <javascript:> [mailto:
> [email protected] <javascript:>] *On Behalf Of *Mike Gillespie
> *Sent:* 22 March, 2018 7:05 PM
> *To:* Houston ColdFusion Users' Group <[email protected] 
> <javascript:>>
> *Subject:* [houcfug] SQL Query help
>
>  
>
> Hey y'all,
>
>  
>
> Sure hope you can help with this one.
>
>  
>
> Is there a way to write a sql query for MySQL such that it returns 
> recordset of say 100 rows with my target recordset in the center from a 
> table of 1000 rows?
>
>  
>
> I need it to load a page of items on an ecomm site, but want to provide 
> not only the target item, but 100 other choices as well.
>
>  
>
> The number 100 and 100 are arbitrary.
>
>  
>
> Basically, pull all records with a price range between .99 and 9.99 with 
> the 4.99 target row in the center of the resultset. ( and yeah, the example 
> is horrible, but it gets the point across)
>
>  
>
> TIA,
>
>  
>
> M
>
> -- 
> -- 
> You received this message because you are subscribed to the "Houston 
> ColdFusion Users' Group" discussion list.
> To unsubscribe, send email to [email protected] <javascript:>
> For more options, visit http://groups.google.com/group/houcfug?hl=en
>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Houston ColdFusion Users' Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>
> *Confidentiality Notice:*
>
> The information contained in this email and any attachments is intended 
> only for the recipient[s] listed above and may be privileged and 
> confidential. Any dissemination, copying, or use of or reliance upon such 
> information by or to anyone other than the recipient[s] listed above is 
> prohibited. If you have received this message in error, please notify the 
> sender immediately at the email address above and destroy any and all 
> copies of this message.
>

-- 
-- 
You received this message because you are subscribed to the "Houston ColdFusion 
Users' Group" discussion list.
To unsubscribe, send email to [email protected]
For more options, visit http://groups.google.com/group/houcfug?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Houston ColdFusion Users' Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to