Topics | Search Log Out | Register | Edit Profile
Hide Clipart | Banned/Unbanned User Log | Moderator Login History | Thread Delete/Move Log | Last 30 mins | 1 | 2
Oreikill experts

Chalanachithram.com DB » TF Industry related » Archive through March 27, 2013 » Oreikill experts « Previous Next »
Author Message
 

Gharshana
Side Hero
Username: Gharshana

Post Number: 2128
Registered: 07-2010
Posted From: 1.23.211.162

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 26, 2013 - 03:22 pm:       


Twitter:




Hey twitter babu.. you can use case statement in the where condition to get the dates of the present quater..
 

Twitter
Megastar
Username: Twitter

Post Number: 26133
Registered: 10-2009
Posted From: 192.193.216.147

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 26, 2013 - 02:34 pm:       


Gharshana:



useful ..thx
 

Gharshana
Side Hero
Username: Gharshana

Post Number: 2126
Registered: 07-2010
Posted From: 1.23.211.162

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 26, 2013 - 02:34 pm:       

Oh quarter lo anni dates kavala...
sorry na query work avadu..
 

Twitter
Megastar
Username: Twitter

Post Number: 26132
Registered: 10-2009
Posted From: 199.67.138.42

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 26, 2013 - 02:32 pm:       


Jambalahaart_raja:

isit sesindh nuvvu kaadh, nenh!!! red endukochhinayo idea ledh!!!




ehe already visited nenu ani septhunna.
 

Twitter
Megastar
Username: Twitter

Post Number: 26131
Registered: 10-2009
Posted From: 199.67.138.42

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 26, 2013 - 02:32 pm:       


Buduguuu:

select to_date('01-jan-2013','dd-mon-yyyy') + rownum -1
from all_objects
where rownum <=
to_date('31-mar-2013','dd-mon-yyyy')-to_date('01-jan-2013',' dd-mon-yyyy')+1




yep this can be softcoded with addmonths func.
this is what i did in conjunction with my original qry..thx
 

Gharshana
Side Hero
Username: Gharshana

Post Number: 2125
Registered: 07-2010
Posted From: 1.23.211.162

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 26, 2013 - 02:19 pm:       

This would help:

select aa as MONTH_NUMBER, (case when aa < 4 then 'FIRST QUARTER'
when aa < 7 then 'SECOND QUARTER'
when aa < 10 then 'THIRD QUARTER'
else 'FOURTH QUARTER'
END) as QUARTER
from ( select to_char(sysdate, 'MM') aa from dual);

To test it for other quaters:

select aa as MONTH_NUMBER, (case when aa < 4 then 'FIRST QUARTER'
when aa < 7 then 'SECOND QUARTER'
when aa < 10 then 'THIRD QUARTER'
else 'FOURTH QUARTER'
END) as QUARTER
from ( select to_char(to_date('16-DEC-2013','DD-MON-YYYY'), 'MM') aa from dual);


The easiest way is to use Q format if you are just looking for the number:

select to_char(sysdate, 'Q') aa from dual;
 

Jambalahaart_raja
Side Hero
Username: Jambalahaart_raja

Post Number: 2181
Registered: 07-2008
Posted From: 199.43.48.130

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 26, 2013 - 01:53 pm:       


Twitter:

rendu linkulu red ga unnai ante already visited :D ..thx anywya




isit sesindh nuvvu kaadh, nenh!!! red endukochhinayo idea ledh!!!
 

Buduguuu
Hero
Username: Buduguuu

Post Number: 12368
Registered: 01-2012
Posted From: 199.249.176.251

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 26, 2013 - 01:50 pm:       


Twitter:




select to_date('01-jan-2013','dd-mon-yyyy') + rownum -1
from all_objects
where rownum <=
to_date('31-mar-2013','dd-mon-yyyy')-to_date('01-jan-2013',' dd-mon-yyyy')+1

this is exact query :-)
Coolmac : nanu comment sesey staayi ledhu neeku

Biryani about Mahesh Babu
 

Twitter
Megastar
Username: Twitter

Post Number: 26127
Registered: 10-2009
Posted From: 192.193.216.147

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 26, 2013 - 01:45 pm:       


Maverick:

general ga calendar table untundi kada mee environment lo..daniki join katti lagu




yeah undhi adhe chesthunna kani q's info ledhu ..sql lo emanna builtin fn's unnayemo ani oka stone esa..
 

Twitter
Megastar
Username: Twitter

Post Number: 26126
Registered: 10-2009
Posted From: 192.193.216.147

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 26, 2013 - 01:43 pm:       


Buduguuu:


http://www.chalanachithram.com/discus/icons/quote3.gif

vaddhule bedar i figured it out. anni dates oka chota petti querying sethunna..thx for the help
 

Maverick
Legend
Username: Maverick

Post Number: 44051
Registered: 01-2008
Posted From: 70.39.231.164

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 26, 2013 - 01:43 pm:       

general ga calendar table untundi kada mee environment lo..daniki join katti lagu
Who is this DB member?
 

Buduguuu
Hero
Username: Buduguuu

Post Number: 12367
Registered: 01-2012
Posted From: 199.249.176.251

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 26, 2013 - 01:42 pm:       


Twitter:




direct sql lo teleed kaani pl/sql lo aite seyyach.. etiki septan :-)
Coolmac : nanu comment sesey staayi ledhu neeku

Biryani about Mahesh Babu
 

Twitter
Megastar
Username: Twitter

Post Number: 26125
Registered: 10-2009
Posted From: 192.193.171.152

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 26, 2013 - 01:21 pm:       


Jambalahaart_raja:

vopaali idi soodudi




rendu linkulu red ga unnai ante already visited :D ..thx anywya
 

Jambalahaart_raja
Side Hero
Username: Jambalahaart_raja

Post Number: 2179
Registered: 07-2008
Posted From: 199.43.32.85

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 26, 2013 - 01:06 pm:       

vopaali idi soodudi

http://stackoverflow.com/questions/6489923/calculate-fiscal- year-and-quarter

http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUES TION_ID:250288900346075009

Hope this will help you figure out your own query
 

Twitter
Megastar
Username: Twitter

Post Number: 26122
Registered: 10-2009
Posted From: 199.67.131.151

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 26, 2013 - 01:01 pm:       


Buduguuu:



oka year lo 4 qtrs untai kadha .. suppose ivvala date input isthe naku ee qtr lo gadichina dates jan1 to tilldate anni kaavali.
alage suppose April 15th date isthe appudu second qtr first nundi ante apr1st to 15 anni dates ivvali
 

Buduguuu
Hero
Username: Buduguuu

Post Number: 12349
Registered: 01-2012
Posted From: 199.249.176.251

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 26, 2013 - 12:57 pm:       

waaat?? kochen clarity led.. malli adagandi
Coolmac : nanu comment sesey staayi ledhu neeku

Biryani about Mahesh Babu
 

Twitter
Megastar
Username: Twitter

Post Number: 26120
Registered: 10-2009
Posted From: 199.67.131.151

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 26, 2013 - 12:55 pm:       

sysdate theeskoni ee qtr lo dates anni icche qry edhanna unte ivvandi babailu..

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image HASH(0xce8ef8){Movie Clipart}
Show / hide regular icons selection options

Click on following links to open cliparts by Alphabetical Order

 A   B   C   D   E   F   G   H   I   J   K   L   M  

N   O   P   Q   R   S   T   U   V   W   X   Y   Z  

Show / Hide Filmy icons selection options

Click on following links to open cliparts by Alphabetical Order

  A   B   C   D   E   F   G   H   I   J   K   L   M  

N   O   P   Q   R   S   T   U   V   W   X   Y   Z  

Username: Posting Information:
This is a public posting area. Enter your username and password if you have an account. Otherwise, enter your full name as your username and leave the password blank. Your e-mail address is optional.
Password:
E-mail:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: