Re: Quarterly Data Syntax



Ryan,

To get the quarter, assuming January to March is the first quarter"

select (datepart(Month,MyDateColumn) + 2) / 3

This depends on how integer match works. Or you can create a calendar table
(Google for that) to record this kind of information for every date.

RLF


"Ryan Mcbee" <RyanMcbee@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:DEE46F58-A938-463E-964F-D2756E906986@xxxxxxxxxxxxxxxx
I am trying to build a query that will return what quarter the data is in.
How would I begin to build this logic? In my table, all I have is a
single
date of the transactions. My date column looks like this; "2014-02-01
00:00:00.000".

Thanks in advance,

Ryan


.



Relevant Pages

  • Google Offers Free Web Calendar Service
    ... Google Inc. is introducing on Thursday a free Web calendar service for ... features and instruction guides, had leaked out in late February among ... The calendar poses a direct challenge to Yahoo Calendar, ...
    (comp.dcom.telecom)
  • Re: A concert database website.
    ... This is not possible in google calendar, ... Btw, If there are many programmes on the same day, will it still be ... X number, but the more useful display is Agenda ...
    (rec.music.indian.classical)
  • Re: Hi Linny!
    ... It's an embedded Google calendar with public access. ... Hey you guys, you know Bud has a new bike? ... Looky looky: ...
    (alt.guitar.bass)
  • Re: Hi Linny!
    ... It's an embedded Google calendar with public access. ... Hey you guys, you know Bud has a new bike? ... Looky looky: ...
    (alt.guitar.bass)
  • Re: Secco Calendar Web Part
    ... Programs Unlimited, Inc Calendar Web Part. ... I still like SharePoint and it's surrounding technollogies, ... Doing a quick Google ... >> Hi, I've managed to build and deploy the Secco Web Part Calendar, but I ...
    (microsoft.public.sharepoint.portalserver)