Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
billat001
Starting Member
2 Posts |
Posted - 2007-02-28 : 20:23:54
|
| Help please. Select data between financial Year --------------------------------------------------------------------------------How can I select data between a financial year. The financial year begin in july(7) and end in june(6).Lets say I want all data between the begining of financial year (7) to January (1)so I would select all data between 7 and 1. (6 months period)and lets say I want all data between the beginning of financial year(7) to october (10) so I would just select all data between 7 and 10. (3 months period). Below is data from a customer table.Customer Name Month----------------------------------------------------APPADENE FOREST PRODUCTS 7APPADENE FOREST PRODUCTS 8APPADENE FOREST PRODUCTS 9APPADENE FOREST PRODUCTS 10APPADENE FOREST PRODUCTS 11APPADENE FOREST PRODUCTS 2APPADENE FOREST PRODUCTS 3APPADENE FOREST PRODUCTS 4APPADENE FOREST PRODUCTS 5APPADENE FOREST PRODUCTS 6BLUELEAF CORPORATION PTY LTD 3BLUELEAF CORPORATION PTY LTD 4BLUELEAF CORPORATION PTY LTD 5WESPINE INDUSTRIES PTY LTD 5WESPINE INDUSTRIES PTY LTD 6WESPINE INDUSTRIES PTY LTD 3WESPINE INDUSTRIES PTY LTD 4WESPINE INDUSTRIES PTY LTD 5WESPINE INDUSTRIES PTY LTD 6BLUELEAF CORPORATION PTY LTD 6WESPINE INDUSTRIES PTY LTD 8WESPINE INDUSTRIES PTY LTD 9WESPINE INDUSTRIES PTY LTD 11WESPINE INDUSTRIES PTY LTD 12NANNUP TIMBER PROCESSING PTY LTD 3WESPINE INDUSTRIES PTY LTD 1NANNUP TIMBER PROCESSING PTY LTD 4NANNUP TIMBER PROCESSING PTY LTD 5NANNUP TIMBER PROCESSING PTY LTD 6WESPINE INDUSTRIES PTY LTD 3-------------------------------------------------------------------------------- |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2007-02-28 : 20:32:13
|
Is there a year column in the table ? KH |
 |
|
|
billat001
Starting Member
2 Posts |
Posted - 2007-02-28 : 20:55:10
|
| Yes there is a year column and from your question I think you have answer my question. |
 |
|
|
mahesh_bote
Constraint Violating Yak Guru
298 Posts |
Posted - 2007-03-01 : 02:16:58
|
| hey,if u have year column in ur table, u can overcome the prob. have u tried to write select statement to fetch the data? if yes, then what problem u r facing? rather u post that select statementMahesh |
 |
|
|
|
|
|