Forum Replies Created

Viewing 5 posts - 16 through 20 (of 20 total)

  • RE: how to move data

     

    Hi

    The below 3 sql statements give the contracts and the people under those contracts.

    1: The first statement gives the work contracts for the...

  • RE: how to rewrite this qurey

    Thanks for your efforts guys...

    I solved it by using the distinct keyword and used site_name in place of posting_location_id in the Count statement!!!

    Now i can count the site_name field...

  • RE: how to rewrite this qurey

    Hi

    i think i solved the problem.

    thanks any ways

  • RE: iif(isempty(fieldName), 0, fieldName) not working

    have you tried

    if isnull(fieldname, '') = ''

    select fieldname = 'xyz'

    am not too sure... the above statement replaces a space with 'xyz' string.

    regards

     

     

  • RE: how to use the return values of two functions in a select statement

    The actual query goes like this:

    create function test(@idnumber varchar(27), @rangestart datetime, @rangeend datetime)

    returns int

    as

    begin

    declare @intdays as int

    select @intdays = count(distinct date) from daystable as dates

                                inner join

                            (select ....'need to use...

Viewing 5 posts - 16 through 20 (of 20 total)