Forum Replies Created

Viewing 15 posts - 916 through 930 (of 2,894 total)

  • RE: Delete Using join in min 3 tables

    charit0819 (11/19/2012)


    Can any one plz tell me how to delete records from minimum 3 tables using inner join on the basis of a condition

    You need to write SQL queries using...

  • RE: SQL Search Query

    duro654321 (11/17/2012)


    hello,

    right now on my search page the sql query i am using is similar to:

    select * from table where name like '%search%'

    and it returns the exact phrases perfectly

    however...

  • RE: how to remove characters char(0) to char(31)

    Jeff Moden (11/17/2012)


    Raymond van Laake (11/16/2012)


    ...

    Regular expressions may be the fastest in another language but they're not necessarily the fastest in T-SQL because of the bit of overhead that a...

  • RE: Using Full-Text Search

    You need to use free-text wildcard "*" in your search string!

    SELECT *

    FROM table_name

    WHERE CONTAINS(*, '"*eran*"');

    Also, read my previous post regarding hyphens and ampersands... It will make it much more...

  • RE: Convert values of mulitiple rows into single column with no duplicate entries

    CELKO (11/18/2012)


    I went through the forum and found out a way of concatenating row values into column using stuff, but can't figure out how to remove duplicates and only...

  • RE: TSQL Split XML attributes

    pricejt (11/18/2012)


    I have an xml string and need to manipulate it within sql.

    ...

    T-SQL is not the language for XML manipulation. It can parse it and it can create it, but...

  • RE: Using Full-Text Search

    When working with full-text, you need to remember that it's behaviour is not the same as LIKE.

    You will need to do additional work (in T-SQL or/and application) in order...

  • RE: Conditional Delete not working

    dwilliscp (11/14/2012)


    True, just a personal quirk. I find that when I am trying to think through something... I tend to code the thought process. Thus the outer join filtering where...

  • RE: Select next row value

    HildaJ (11/14/2012)


    I know there is a function in sql to grab the a field value for the next row. I have seen it before but for the name...

  • RE: Conditional Delete not working

    dwilliscp (11/14/2012)


    Why does this delete all my records, reguardless of company?

    delete Plant_Master

    where EXISTS(Select Plant_CD from Plant_Master where company like 'MSC')

    does at least one row exist in Plant_Master where company =...

  • RE: Column Data Consolidation

    See, the article I've pointed you to, makes the difference!

    Your problem is not using table aliases! Your sub query concatenates all rows from dbo.TEST_TABLE2 because your filter it...

  • RE: Splitting Data by day

    Jeff Moden (11/14/2012)


    Just as a follow up to what Eugenne posted...

    If you'd like to know more about how a Tally Table works and how it can be used as a...

  • RE: grouping rows

    Many work places do not allow file downloads from internet...

    So, it will be much more helpful if you include your DDL scripts into post. Just wrap them with appropriate "code"...

  • RE: Splitting Data by day

    You don't even need to use your function (especially such slow as it is right now based on loop).

    You can do just this:

    SELECT p.BILL_NBR

    ...

  • RE: grouping rows

    If you could follow this:

    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    ...

Viewing 15 posts - 916 through 930 (of 2,894 total)