Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)

  • RE: Convert MMDDYY to YYYYMMDD

    OR on the same thought

    turn the date into a USA format date (style 12) YYMMDD

    declare @mmddyy char(6)

    set @mmddyy = '081709'

    select CONVERT(varchar(35),CAST(RIGHT(@mmddyy,2) + LEFT(@mmddyy,4) AS DATETIME),112)

  • RE: Any way to hide column names from result set?

    I think this will get close to what you want:

    SELECT PartNumber + ',' + Description

    FROM table

    It should return:

    ------------------------------------

    widget1, Normal Size Widget

    widget2, Large Size Widget

    widget3, Giant Size Widget

  • RE: 3 or more purchases over a 12 month period

    Thanks everyone, I believe this works. It's my first time to post. I will remember to post the test code next time.

  • RE: 3 or more purchases over a 12 month period

    It is based on the sum of totalPurchased. The problem is with the date. It can be any 12 month period, so I cannot use where the date...

Viewing 4 posts - 1 through 4 (of 4 total)