× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



This is a great point made here - calculations and function calls can be expensive and slow - comparisons are cheap and usually fast. Especially if there is an index to support this in order of myyear, mymonth, myday. Or EVIs over each one or combination.

At 04:24 PM 10/10/2006, you wrote:

>Thanks guys. I believe I was overthinking it if you can believe that

Keep in mind, SQL has to bang each row to use that solution. For one-off
or infrequent hits it's fine, but if you want it to use an index you've
got to break it up like:

Where myyear>2006 or (myyear=2006 and mymonth > 11) or (myyear=2006 and
mymonth=11 and myday>12)

If you want anything > 2006-11-12

-Walden

--
Walden H Leverich III
Tech Software
(516) 627-3800 x3051
WaldenL@xxxxxxxxxxxxxxx
http://www.TechSoftInc.com

Quiquid latine dictum sit altum viditur.
(Whatever is said in Latin seems profound.)


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of John Candidi
Sent: Tuesday, October 10, 2006 4:19 PM
To: 'Midrange Systems Technical Discussion'
Subject: RE: SQL Question

Thanks guys. I believe I was overthinking it if you can believe that

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rick baird
Sent: Tuesday, October 10, 2006 2:58 PM
To: Midrange Systems Technical Discussion
Subject: Re: SQL Question

where digits(yyyy)||digits(mm)||digits(dd) >= '20061001'

On 10/10/06, John Candidi <jacandidi@xxxxxxxxxxxxxxxxxxxx> wrote:
> I am trying to pull from a table where the year, month and day are 3
> separate fields. I want to concatenate them and then select from that
> same table based on the concatted field. I'm sure this is doable but
> my
attempts
> have been unsuscessful
>
>
>
> John A Candidi
>
> Rutgers Insurance Companies
>
> IT Director - Iseries Manager
>
> 856-779-2274
>
>
>
>
>
> --
> This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
> To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
> unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/midrange-l
> or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
> a moment to review the archives at
> http://archive.midrange.com/midrange-l.
>
>
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.