Forum Replies Created

Viewing 15 posts - 6,526 through 6,540 (of 15,381 total)

  • RE: set date/time to today date but certain time

    This should do it.

    select dateadd(dd, datediff(dd, 0, GETDATE()), 0) + CAST('04:00:00' as time)

  • RE: Need a Query on group by condition

    smharabbani40 (10/11/2013)


    Hi

    MonthYear is the INT data type.that is only the issue ,becuse of that between is not working....i can able to change datatype....

    if any suggestion/fixe rather than this please...

  • RE: Pass a table variable column value to a SP output variable

    Somewhat difficult to figure out what you are trying to do here. I think maybe you are trying to generate a comma separated list of values from the last query?

    Take...

  • RE: error i am getting while logging to sql server in my local

    mpradeep23 (10/11/2013)


    i am unable to start the service it is giving error

    And what would the error message say? We can't really offer much help if you don't tell us what...

  • RE: Need a Query on group by condition

    smharabbani40 (10/11/2013)


    Hi I need a Query from the month 112013 to 122013 sir......

    i have used the below Query which is not satisfieing.

    ...

  • RE: Query Optimization help

    One other thing is you might want to read up on NOLOCK. You have it littered all over this query. That hint is not a magic go fast solution. It...

  • RE: Need a Query on group by condition

    smharabbani40 (10/11/2013)


    Hi ALL,

    I have one table which contines 3 columns they are

    1.emp

    2.monthyear

    3.amount

    in that table i am having four rows like below.

    emp monthyear amount

    1 ...

  • RE: Create Function

    yogi123 (10/10/2013)


    Hello

    I need to Create a Function who pulls data from string and load to the table. here is sample string

    'CHG_FEP_SVC_GRP_ID(1) :: Expected Value = 1 :: Actual Value =...

  • RE: Need help in SQL Query

    vigneshlagoons 51204 (10/10/2013)


    Hi Sean,

    I am doing this for SSRS reports. I mean its like when user logs in as CCSG Group these group values should also show up(Site Group, Sales...

  • RE: Add a time to a datetime

    thedavegray (10/10/2013)


    Sean Lange (10/10/2013)


    You can cheat a little bit here since you just want to add a time datatype to a datetime.

    select @DateTime + @TheTime

    Hi,

    that seems to work but...

  • RE: Need help in SQL Query

    vigneshlagoons 51204 (10/10/2013)


    Hi Sean,

    This is just fine. Now on top of this. I just want to display LOB Group, Site Group, Service Group for CCSG Group.

    EX: If Mike log in,...

  • RE: Add a time to a datetime

    You can cheat a little bit here since you just want to add a time datatype to a datetime.

    select @DateTime + @TheTime

  • RE: Top 1 not return null

    Here is another way without using the ROW_NUMBER window function.

    select top 1 column5 from

    (

    SELECT [column5], 1 as SortOrder FROM [dbo].[table2] WHERE [column1ID] = 5

    UNION

    SELECT NULL, 2

    )x order by SortOrder

  • RE: Need help in SQL Query

    Wow it still pretty tough to figure out what you want as output. I took the liberty of extracting your ddl and sample data here so others can find it...

  • RE: Displaying column names

    Junglee_George (10/10/2013)


    I am getting this error message when the JOIN() in ssrs is used.

    [rsRuntimeErrorInExpression] The Value expression for the textrun ‘Textbox96.Paragraphs[0].TextRuns[0]’ contains an error: Overload resolution failed because no...

Viewing 15 posts - 6,526 through 6,540 (of 15,381 total)