Forum Replies Created

Viewing 8 posts - 1 through 9 (of 9 total)

  • RE: Update Query

    hi,

     select replace(columnname,right(columnname,4),'1111') from tablename

     

    regards

    Anurag

  • RE: How does this work?

    hi,

           ur query is something like selecting all records from staff table which returns multiple records.

    in the above query, u r only taking email column from table in a single...

  • RE: Severity: 14, State: 8 error.... Please Help..

    hi,

        i am not confirmed that this should work or not. u can try this!!

    first of all check ur network connections i.e whether u r able to ping ur...

  • RE: insert statement

    Hi,

      U can use Indexes for that. Go to manage indexes & create new index using column a,b, c & click on "unique values check box".

    u will get ur desired...

  • RE: Please explain.

    Actually both queries are correct but in first query by mistake you have typed comma before AS(shown in RED), delete that comma & the query gives the same result.

    SELECT OrderID,...

  • RE: Question re: NULLs and Count function

    COUNT(*) returns the number of items in a group, including NULL values and duplicates

    But if you specify a column name in Count function i.e Count(age) then it will not return...

  • RE: results on one line

    Its ok.

  • RE: results on one line

    ya, its possible

    DECLARE @StaffList varchar(100)

    SELECT @StaffList = COALESCE(@StaffList + ', ', '') + Surname

    FROM StaffList order by Surname asc

    SELECT @StaffList

     

    When @StaffList is NULL (the first row processed), it returns an empty string....

Viewing 8 posts - 1 through 9 (of 9 total)