Forum Replies Created

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

  • RE: Can find the solution

    Hi,

    Try the following.

    select distinct

    lname,

    count(request.id)

    from request

    left join change on request.id = change.req_id

    left join user on request.userid = user.userid left join change_hist on change.id = change_hist.chg_id

    I just changed the join condition....

  • RE: Can find the solution

    Hi,

      Try to use the group by clause. Because u r going to get count. so try to use those columns in group by clause, whatever present in select list.

    I...

  • RE: How to return DTS satus(fail or success) using command prompt utility

    Hi John Laska,

    Thanks for your suggestion. I will try that way.

    Saravanan.

  • RE: Select Table Name using variable

    Hi,

       Try to put the table name with dbname.ownername

    For example:

    set @lSqlStatement = 'Select * from mydb.dbo.glpl' + @sdate + ' where brcode=102 '

    Try like this. i hope that, this will...

  • RE: Select Table Name using variable

    Hi,

       Try to compose the sql statement in a variable and execute the sql statement using execute command.

    Example:

    declare lSqlStatement varchar(2000)

    set lSqlStatement = 'Select * from ' + your date variable...

  • Viewing 13 posts - 1 through 13 (of 13 total)