Forum Replies Created

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

  • RE: Help me - Count function

    Florian Reischl (4/13/2009)


    sreddy (4/13/2009)


    sreddy (4/13/2009)

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

    select

    user.userid,

    user.name,

    count(news.userid)

    from user

    inner join news on user.userid = news.userid

    group by user.userid,

    user.name

    Why count(userid)?

    j1a4l0: What do you want returned for a user that has no news items?...

  • RE: Help me - Count function

    sreddy (4/13/2009)

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

    select

    user.userid,

    user.name,

    count(news.userid)

    from user

    inner join news on user.userid = news.userid

    group by user.userid,

    user.name

    Why count(userid)?

    j1a4l0: What do you want returned for a user that has no news items?

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

    Gail Shaw

    thats a...

  • RE: Help me - Count function

    Hey,

    Here's the Soln....

    select

    user.userid,

    user.name,

    count(news.userid)

    from user

    inner join news on user.userid = news.userid

    group by user.userid,

    user.name

  • RE: Conditional Selection of Column

    Hey,

    find the following soln...

    SELECT [ID]

    ,[Title]

    ,[fname]

    ,[lastname]

    ,[Company] ...

  • RE: Need Help with SP result

    so one of your problem is solved now thats kewl..........

    and there is no need to comment the two lines just comment the select @@rowcount statement and you can still use...

  • RE: Need Help with SP result

    Hi,

    After Quick review I have found the following issue with the code.

    --********** Delete Duplicates

    --begin tran

    SET ROWCOUNT 1

    SELECT @@rowcount

    the above statement was returning your first result set just...

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