Forum Replies Created

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

  • RE: Rounding

    Hi,

    Try using numeric datatype.

    As-

    select ID,

    ROUND(convert(numeric(18,1),id),1)

    from test01

    Good Luck

  • RE: CASE statements

    Hi,

    Try this, please remember to cast your parameter.

    select * from tablename

    where monthColumnName = case when @month='' then monthColumnName else @month end

    AND

    yearColumnName = case when @year='' then yearColumnName else @year...

  • RE: T SQL

    Answer given is wrong. I am getting this -

    Vyas Mohan

    Mohan Shobha

    Shridhar Mohan

    Sourabh Mohan

  • RE: Open View or Procedure for mmodification by using command

    Hi,

    You can use Filter option so you dont have to too much scroll up and down.

  • RE: how can i use declare text in sql store procedure

    Hi,

    text datatype can have maximum length of 8000.

    I think you should break your dynamic query into 2-3 parts.

  • RE: Avoiding CURSOR

    Sorry , i dont know about it. I was replying first time.

  • RE: Avoiding CURSOR

    Hi,

    Try this,

    DECLARE @CountGroup INT

    SELECT @CountGroup = Count(Distinct GroupID) FROM reminder

    SELECT TOP (@CountGroup) id, groupid, MIN(days_remaining) FROM reminder

    GROUP BY groupid, id

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