Forum Replies Created

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

  • RE: Quick way to convert no''''s to month names

    Sorry, the number is an integer, not a date.

    I have a column which has month no's in it, I want to convert them to corresponding month names.

     

  • RE: calculations in sql

    I shall attempt to describe what I'm trying to achieve, if anyone's interested:

     

    October 7, 2005 at 8:34 am

    #595886

  • RE: calculations in sql

    I totally agree, its wrong design, but I am trying to replicate what someone is doing in Excel using Pivot tables. Once I've got this working, I'll probably re-design the tables...

  • RE: calculations in sql

    its OK Ken, I've figured out how to do this by using temporary tables and looping thru records

    thanks for your help anyway........

     

  • RE: calculations in sql

    sorry, Material2_Loss should say 20 -9 15

    (170-150), (151-160), (185-170)

     

  • RE: calculations in sql

    The table looks like this

    Description ProductA ProductB ProductC etc

    Material1_Used 100 150 60

    Material1_Produced 90 140 70

    Material2_Used 150 160 170

    Material2_Produced 170 151 185

    etc etc

    The desired results would be

    Descritption ProductA ProductB ProductC

    Material1_Used 100...

  • RE: SQL syntax help

    sorry, I forgot to say, the Remote database is on a seperate server.

  • RE: Group by Time

    Thank you Remi, that was a great help, just one more question, is there any way of simplyfying the following rather long-winded statement to produce the desired results:

    Select left('00',2-len(DATEPART(hh, Date1)))

     +...

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