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.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Need help!!!!!!!!!!!!!! urgent

Author  Topic 

neeharika_r
Starting Member

1 Post

Posted - 2011-01-14 : 07:02:16
Hi,
Please anyone help!!!!!
Please any one can answer my question.
You are only given the transaction date in your transactions table and your client requires you to be able to show them their data by Financial Year, Quarter, Month, Week and Week Day
Write the script that will enable you to create the new values for each of the measures listed above. The financial year end is 28 February 2011
Then confirm the Financial Year, Quarter, Month, Week and Weekday for the following date: 15/06/2011

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-01-14 : 07:06:29
Show us what you have so far.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2011-01-14 : 07:08:15
"Need help!!!!!!!!!!!!!! urgent"

Pay a consultant then ...

"Write the script that will enable you to create ..."

Sounds like homework to me ...

Show your workings so far, and change the subject to something that people who are knowledgeable will bother to read. Most people here just ignore posts with subjects like this. Me too, most of the time ...
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2011-01-14 : 07:38:10
Who says allowing internet access during an exam is a bad thing?
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2011-01-14 : 07:44:16
i'm totally disappointed there are no ones between those exclamation marks in the title.

___________________________________________________________________________
Causing trouble since 1980
Blog: http://weblogs.sqlteam.com/mladenp
Speed up SSMS development: www.ssmstoolspack.com <- version 1.9 out!

SQL Server MVP
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2011-01-14 : 10:04:05
quote:
Originally posted by spirit1

i'm totally disappointed there are no ones between those exclamation marks in the title.
ZOMG!!111!!! NEED UR HELP 4 MY QUESTION NEED 2 SHOW TRANSACTIONS BY FINANCIAL QUARTER MONTH WEEK WEEKDAY !!!URGENT!!111!!! KTHXBAI

Happy now?

Regarding the actual questions, look in SQL Server Books Online at the DATEPART and DATENAME functions. For the finanacial year calculation, you can do some DATEADD arithmetic or use a CASE expression.
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2011-01-14 : 14:05:48
If I wanted my money to be safe I'd take it OUT of any U.S. bank.

edit: and this made sense earlier before someone deleted their reply.
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2011-01-14 : 15:04:05
Give her a break, she's still very young:

Real Name: neeharika raavi
Location: aaa, aaa
India
Age: 1
Marital Status: married
Gender: Female
Occupation: sql developer





CODO ERGO SUM
Go to Top of Page

dataguru1971
Master Smack Fu Yak Hacker

1464 Posts

Posted - 2011-01-14 : 17:28:29
quote:
Occupation: sql developer


O Rly?



Poor planning on your part does not constitute an emergency on my part.
Go to Top of Page

Sachin.Nand

2937 Posts

Posted - 2011-01-14 : 23:54:02
quote:
Originally posted by robvolk

If I wanted my money to be safe I'd take it OUT of any U.S. bank.

edit: and this made sense earlier before someone deleted their reply.



It was me actually.
I just thought it was more of a personal insult which might go against forum rules thats the reason I deleted it.

PBUH

Go to Top of Page

Sachin.Nand

2937 Posts

Posted - 2011-01-16 : 03:04:15
quote:



Age: 1
Marital Status: married





& Married...

PBUH

Go to Top of Page

fparker
Starting Member

27 Posts

Posted - 2011-01-17 : 16:48:22
quote:
Originally posted by Sachin.Nand

quote:



Age: 1
Marital Status: married





& Married...

PBUH





arranged marriage for sure. kind of makes the south usa look good.



--
f
Go to Top of Page
   

- Advertisement -