Forum Replies Created

Viewing 15 posts - 3,736 through 3,750 (of 5,103 total)

  • RE: Create a view from a view

    The views of views can be very disadvantageous when you perform a lot of operations that may no be needed on the higher level ones and sometimes you may learn the...

  • RE: Help needed with removing duplicates

    Well,

    I GOOFED! my count(*) > 1 was count(*) > 11

    then I copied an pasted the SAME query twice to change only the columns 

  • RE: Help needed with removing duplicates

    In my opinion

    >>SELECT MIN(autoID) AS autoID, Email

    FROM dbo.customer

    GROUP BY Email

    HAVING COUNT(*) > 1 <<<

     will return ALWAYS 0 records affected !

     

  • RE: Create an ALERT for successful Backup ???

    USE MESSAGE 18264 to create the alert!

    ex:

    IF (EXISTS (SELECT name FROM msdb.dbo.sysalerts WHERE name = N'Some body run a BACKUP successfuly'))

     ---- Delete the alert with the same name.

      EXECUTE msdb.dbo.sp_delete_alert...

  • RE: UPDATE STATISTICS

    sysindexes

  • RE: Sum and Group by

    Vichka,

    There is no such a thing as the record number conceptually in SQL. There is no implicit order on how those are stored.

    You cal always write something like

    create table #T1(i int identity(1,1),...

  • RE: Adding constraint to very large table

    Good for You!!!

  • RE: Yet another simple question

    mrwid LIKE 'R[0-9]%'  OR  mrwid = 'R' -- That will bring what you don't want

    If you are able to describe what you want in terms of positive patterns use that,...

  • RE: Select Distinct

    I don't really understand  how you want to group them but:

    Ist this what you are after ?

    SELECT LEFT(YourColumn,Len(YourColumn)-1) AS Code, Count(*) AS Records

    FROM dbo.YourTable

    GROUP BY LEFT(YourColumn,Len(YourColumn)-1)

    [Edit:] Credit To...

  • RE: Cursor structure

    sp_describe_cursor_columns

  • RE: Select Distinct

    ??

    Select Count(*) from Yourtable where YourColumn like 'D0004%'

  • RE: Using aliases in a subquery

    >> The result of the update cannot be determined. The value of the column will depend upon either order of insertion, (if there are no clustered indexes present), or on...

  • RE: CASE in computed column

    And...

    They are computed on the fly (not saved). But if you need a complex expression you may want to create an index on it and then you would have effectively...

  • RE: help with SQL compare/update

    >>Unfortunately I cannot make use of Triggers in this situation.<<

    You have to use either Triggers or third party tools 

  • RE: Query-Index [Force it?]

    BOL = Books OnLine

Viewing 15 posts - 3,736 through 3,750 (of 5,103 total)