PDA

View Full Version : SQL Condition


Guest
10-06-2005, 10:47 AM
What is this condition meaning?

(TRUNC( MOD( ( SYSDATE- load )*24, 24 ) ) > 0 OR TRUNC( MOD(
(SYSDATE- load )*24*60, 60 ) ) > 30)

Thanks,
Kiran

Maxim Demenko
10-06-2005, 11:49 AM
krallabandi@pharmacare.com schrieb: What is this condition meaning? (TRUNC( MOD( ( SYSDATE- load )*24, 24 ) ) > 0 OR TRUNC( MOD( (SYSDATE- load )*24*60, 60 ) ) > 30) Thanks, Kiran

This condition ensures that actual time is at least half an hour later
than the time of "load"

Best regards

Maxim

FredBear
10-06-2005, 12:40 PM
"Maxim Demenko" <mdemenko@gmail.com> a écrit dans le message de news: di3v4k$i8d$00$1@news.t-online.com...
| krallabandi@pharmacare.com schrieb:
| > What is this condition meaning?
| >
| > (TRUNC( MOD( ( SYSDATE- load )*24, 24 ) ) > 0 OR TRUNC( MOD(
| > (SYSDATE- load )*24*60, 60 ) ) > 30)
| >
| > Thanks,
| > Kiran
| >
|
| This condition ensures that actual time is at least half an hour later
| than the time of "load"
|
| Best regards
|
| Maxim

Not really: "load+1455/1440" verifies your sentence but not the condition.

Regards
Michel Cadot

Maxim Demenko
10-06-2005, 01:11 PM
Michel Cadot schrieb: "Maxim Demenko" <mdemenko@gmail.com> a écrit dans le message de news: di3v4k$i8d$00$1@news.t-online.com... | krallabandi@pharmacare.com schrieb: | > What is this condition meaning? | > | > (TRUNC( MOD( ( SYSDATE- load )*24, 24 ) ) > 0 OR TRUNC( MOD( | > (SYSDATE- load )*24*60, 60 ) ) > 30) | > | > Thanks, | > Kiran | > | | This condition ensures that actual time is at least half an hour later | than the time of "load" | | Best regards | | Maxim Not really: "load+1455/1440" verifies your sentence but not the condition. Regards Michel Cadot

Maybe my wording was wrong, saying actual time , i meant only *time* (
i.e. today 15:30 is 20 min later than yesterday 15:10 or 15:10 one month
ago). According this meaning , "load + 1455/1440" is only 15 min later
than load, so it doesn't verify my sentence.

Best regards

Maxim

FredBear
10-06-2005, 10:10 PM
"Maxim Demenko" <mdemenko@gmail.com> a écrit dans le message de news: di43t6$cfq$02$1@news.t-online.com...
| Michel Cadot schrieb:
| > "Maxim Demenko" <mdemenko@gmail.com> a écrit dans le message de news: di3v4k$i8d$00$1@news.t-online.com...
| > | krallabandi@pharmacare.com schrieb:
| > | > What is this condition meaning?
| > | >
| > | > (TRUNC( MOD( ( SYSDATE- load )*24, 24 ) ) > 0 OR TRUNC( MOD(
| > | > (SYSDATE- load )*24*60, 60 ) ) > 30)
| > | >
| > | > Thanks,
| > | > Kiran
| > | >
| > |
| > | This condition ensures that actual time is at least half an hour later
| > | than the time of "load"
| > |
| > | Best regards
| > |
| > | Maxim
| >
| > Not really: "load+1455/1440" verifies your sentence but not the condition.
| >
| > Regards
| > Michel Cadot
| >
| >
|
| Maybe my wording was wrong, saying actual time , i meant only *time* (
| i.e. today 15:30 is 20 min later than yesterday 15:10 or 15:10 one month
| ago). According this meaning , "load + 1455/1440" is only 15 min later
| than load, so it doesn't verify my sentence.
|
| Best regards
|
| Maxim

Yes my understanding was time includes date (as in all timestamp or date Oracle datatypes or functions).

Regards
Michel Cadot


MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service