Forum Replies Created

Viewing 15 posts - 4,561 through 4,575 (of 15,381 total)

  • RE: SQL Index

    snowfrost.c (6/6/2014)


    Hi All ,

    I am using MS SQL Server 2005 as my database. Previously I have some issues with my table indexes and the retrieval of my select is...

  • RE: Find Customers Who Bought "A" and "B" But Not "C" (SQL Spackle)

    valeryk2000 (6/6/2014)


    I have two tables with patient ID - one contains several records for one ID (tblLetterFlag), in the second it is a primary key.

    Please next time start your...

  • RE: Variables being ignored ?

    Why not just post the code instead of a zip file that contains a file that contains the code?

    IF NOT EXISTS(SELECT * FROM sysObjects WHERE Name='LookupPriority' AND xType='U')

    BEGIN

    CREATE TABLE...

  • RE: saved search query

    I am guessing you didn't read the article I suggested. Your second post has one table but it is populated using a select statement from other tables I don't have....

  • RE: Views + Check Constraints

    Still no actual details. Here is my last shot in the dark.

    with ViewCTE as

    (

    SELECT

    view.columnA

    , view.columnB

    FROM view

    WHERE date > '2014-06-01'

    )

    SELECT

    v.columnA,

    v.columnB,

    table.ColumnC

    FROM ViewCTE v

    INNER JOIN table on table.tableId = v.tableId

    WHERE v.date > table.createdDate

    Please...

  • RE: Views + Check Constraints

    Not a lot of actual details to work with here but have you tried moving your predicate to the join?

    SELECT

    view.columnA,

    view.columnB,

    table.ColumnC

    FROM

    view

    INNER JOIN table on table.tableId = view.tableId

    ...

  • RE: Just curious, what are your SQL pet peeves ?

    Luis Cazares (6/5/2014)


    Sean Lange (6/5/2014)


    Luis Cazares (6/5/2014)


    As most things, it depends.

    According to my education, America is a single continent divided in four regions: North, Central, South and Caribbean. According to...

  • RE: output identity values

    OK I finally understand enough of what you are doing here. There is no way from the code that you have posted to capture the current identity value. It is...

  • RE: Just curious, what are your SQL pet peeves ?

    Luis Cazares (6/5/2014)


    As most things, it depends.

    According to my education, America is a single continent divided in four regions: North, Central, South and Caribbean. According to the US education, North...

  • RE: Just curious, what are your SQL pet peeves ?

    SQLRNNR (6/5/2014)


    Sean Lange (6/5/2014)


    SQLRNNR (6/5/2014)


    Sean Lange (6/5/2014)


    Luis Cazares (6/5/2014)


    Sean Lange (6/5/2014)


    SQLRNNR (6/5/2014)


    Luis Cazares (6/5/2014)


    TomThomson (6/5/2014)


    Luis Cazares (6/5/2014)


    Koen Verbeeck (6/5/2014)


    SQL is delicious (6/5/2014)


    ...also labors under the delusion that the American education...

  • RE: Just curious, what are your SQL pet peeves ?

    SQLRNNR (6/5/2014)


    Sean Lange (6/5/2014)


    Luis Cazares (6/5/2014)


    Sean Lange (6/5/2014)


    SQLRNNR (6/5/2014)


    Luis Cazares (6/5/2014)


    TomThomson (6/5/2014)


    Luis Cazares (6/5/2014)


    Koen Verbeeck (6/5/2014)


    SQL is delicious (6/5/2014)


    ...also labors under the delusion that the American education system is worthless...

  • RE: Strange situation for result

    Myke85 (6/5/2014)


    "Isin't working" is meaning that after this qeury in my db:

    update numbers

    set oper=1

    from numbers where [Zvans no] like '%'+[Zvans uz]+'%'

    I am getting - (0 row(s) affected)

    That means...

  • RE: Format number w/Tsql-copy to Excel as text (2008R2)

    This is a manual process to copy and paste into excel? The problem is that excel tries to determine what the datatype is for a column based on value in...

  • RE: Strange situation for result

    Myke85 (6/5/2014)


    Yeas, this code is good, but some is bad in my table, perhaps with data, because this query doesn't working and I don't know why...

    Well unless you can tell...

  • RE: Just curious, what are your SQL pet peeves ?

    Luis Cazares (6/5/2014)


    Sean Lange (6/5/2014)


    SQLRNNR (6/5/2014)


    Luis Cazares (6/5/2014)


    TomThomson (6/5/2014)


    Luis Cazares (6/5/2014)


    Koen Verbeeck (6/5/2014)


    SQL is delicious (6/5/2014)


    ...also labors under the delusion that the American education system is worthless and that our...

Viewing 15 posts - 4,561 through 4,575 (of 15,381 total)