Buy Direct M-F 9am - 10:30pm EST 1-866-764-1801

Vist our Online Store
+ Reply to Thread
Results 1 to 2 of 2
  1. #1

    Member Sales Rating: (20)

    Join Date
    Jan 2004
    Location
    7th Circle of Hell - aka DFW
    Posts
    9,507

    Default This is retarded - MS SQL question

    There's no way this should be this difficult. I have a datetime field, and all I want returned is the month and year for some grouping I'm doing. I can get it to the mm/dd/yyyy format using the CONVERT function, but I don't see a code for the mm/yyyy format...

    Any ideas?
    Main HT
    Magnepan 1.6QR fronts, PSB Image B4 surrounds, Pioneer SC-25, Parasound Halo A23, Oppo BDP-83 SE, Airport Express w/ Peachtree DAC, Sony KDL-55HX850, Sony PS3, Apple TV

    Bedroom System
    Polk Blackstone TL3, Polk PSWi225 Wireless Sub, HK 3490 Integrated, Oppo BDP-83, Sharp Aquos 32" TV, Apple TV

    Office Rig
    27" iMac w/Amarra, Peachtree DAC-IT, Focal XS Book, Schiit Valhalla > Sennheiser HD600, Schiit Lyr > HiFiMan HE0500, LG 47LM7600, Sony PS3, XBOX 360, Apple TV

  2. #2

    Member Sales Rating: (20)

    Join Date
    Jan 2004
    Location
    7th Circle of Hell - aka DFW
    Posts
    9,507

    Default

    OK, got it figured out - that is so f#$%ing retarded to have to do it this way:

    SELECT DateAdd(Month, DateDiff(Month, 0, Call_End_DateTime), 0) AS [Date],
    COUNT(PS_ID) AS totalpermonth
    FROM ivr..tbl_BA
    Where (PS_ID) IS NOT NULL AND (PS_ID) <> 0
    GROUP BY DateAdd(Month, DateDiff(Month, 0, Call_End_DateTime), 0)
    ORDER BY [Date]
    Main HT
    Magnepan 1.6QR fronts, PSB Image B4 surrounds, Pioneer SC-25, Parasound Halo A23, Oppo BDP-83 SE, Airport Express w/ Peachtree DAC, Sony KDL-55HX850, Sony PS3, Apple TV

    Bedroom System
    Polk Blackstone TL3, Polk PSWi225 Wireless Sub, HK 3490 Integrated, Oppo BDP-83, Sharp Aquos 32" TV, Apple TV

    Office Rig
    27" iMac w/Amarra, Peachtree DAC-IT, Focal XS Book, Schiit Valhalla > Sennheiser HD600, Schiit Lyr > HiFiMan HE0500, LG 47LM7600, Sony PS3, XBOX 360, Apple TV

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Okay, I admit I'm retarded!
    By hearingimpared in forum The Clubhouse
    Replies: 28
    Last Post: 01-02-2008, 11:04 AM
  2. Amp question... and subwoofer box question
    By VR3 in forum Car Audio & Electronics
    Replies: 19
    Last Post: 02-22-2006, 03:46 PM
  3. Question: External Amp Question
    By cscsDanny in forum Electronics
    Replies: 9
    Last Post: 05-18-2003, 08:24 PM
  4. question! Please help... easy question
    By nadams in forum Speakers
    Replies: 2
    Last Post: 10-22-2002, 10:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts