June 15, 2010 at 4:48 am
Hello
Guys, here is a problem, I am trying to explain it , but don't know how much help full it will be. Still try to give some solutions if possible.
The problem is : I have a table named dbo.Container in a database. there is a container_key attribute in that.And also there is an attribute named Begin_Journey_Date. Now I want to count the no. of container_key with respect to last year , last quarter, and last month till date.
What will be the suitable query for that.
Please help me in this regard.
Thanks
Subhro
June 15, 2010 at 4:57 am
Please provide ctreate table and sample data population script for your case!
June 15, 2010 at 5:13 am
Hey !!!!!
I am going to send some thing that will help to you to get the result, please go through the images I am sending,first image is the requirment , second is the view of table attributes.
Thanks
Subhro
June 15, 2010 at 5:16 am
Images will not help, please read article in my signature, and post as per it people will come up with gr8 solutions for you.
Nag
------------------------------------------------
How to get the best help on a forum
http://www.sqlservercentral.com/articles/Best+Practices/61537
June 15, 2010 at 5:20 am
Sorry man, The case should be presented as:
CREATE TABLE #TestTable (Col1, Col2, ...)
INSERT #TestTable SELECT Val1, Val2, ...
...
Please work a bit to help minimize time required to help you.
June 17, 2010 at 6:37 am
hi
Subhro
Please give us some more details about your problem so that we can try to help.
Frankly speaking the screenshots are not of much use here.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply