Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Last 6 quarter and current quarter Expand / Collapse
Author
Message
Posted Thursday, May 9, 2013 6:47 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, May 9, 2013 9:45 AM
Points: 2, Visits: 1
Hi,

We have fiscal quarters like FY13-Q1,FY13-Q2..

Need to display last 6 quarters (FY12-Q1 to FY13-Q2) and Current quarter (FY13-Q3) in a report and this should be dynamic.

How can we achieve this in Netezza database.

Thanks!
Post #1451084
Posted Thursday, May 9, 2013 8:05 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 3:36 PM
Points: 13,111, Visits: 11,946
Hi and welcome to the forums. You might take a look at this link with lots of date routines.

http://www.sqlservercentral.com/blogs/lynnpettis/2009/03/25/some-common-date-routines/

If that is not enough help we are going to need a lot more detailed information. Please take a few minutes and read the first article in my signature for best practices when posting questions.


_______________________________________________________________

Need help? Help us help you.

Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

Need to split a string? Try Jeff Moden's splitter.

Cross Tabs and Pivots, Part 1 – Converting Rows to Columns
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs
Understanding and Using APPLY (Part 1)
Understanding and Using APPLY (Part 2)
Post #1451129
Posted Thursday, May 9, 2013 8:56 AM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Today @ 11:22 AM
Points: 3,122, Visits: 11,406
This site is for Microsoft SQL Server questions, and does not deal with Netezza.






Post #1451171
Posted Thursday, May 9, 2013 9:47 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, May 9, 2013 9:45 AM
Points: 2, Visits: 1
How can you get this in sql server?
Post #1451216
Posted Thursday, May 9, 2013 10:00 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 4:55 PM
Points: 23,043, Visits: 31,567
Hard to answer with the vague information you have provided.

First, what makes up your fiscal periods (months, quarters, year)?

Second, since we can't see what you see there really isn't anything else we can really answer.

You should read the first article I reference below in my signature block regarding asking for help. It will walk you through what you need to post and how to post it to get better answers than what we can give you now.



Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Post #1451231
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse