Forum Replies Created

Viewing 15 posts - 6,541 through 6,555 (of 7,608 total)

  • RE: Fizz Buzz interview questions for phone screens?

    Evil Kraig F (6/6/2013)


    ScottPletcher (6/6/2013)


    Dird (6/6/2013)


    Sean Lange (6/6/2013)


    MID?

    Yeah, the Q as a whole is a bit meh. I assume he means AVG (to go with the MIN/MAX functions) which I...

  • RE: Fizz Buzz interview questions for phone screens?

    Dird (6/6/2013)


    Sean Lange (6/6/2013)


    MID?

    Yeah, the Q as a whole is a bit meh. I assume he means AVG (to go with the MIN/MAX functions) which I don't see as a...

  • RE: Fizz Buzz interview questions for phone screens?

    Sean Lange (6/6/2013)


    ScottPletcher (6/6/2013)


    Ask them::

    Given table1 with columns "id" and "value", where each id has 1 to 3 values/rows in the table:

    Describe the essentials of a single query (no subquery,...

  • RE: Fizz Buzz interview questions for phone screens?

    Ask them::

    Given table1 with columns "id" and "value", where each id has 1 to 3 values/rows in the table:

    Describe the essentials of a single query (no subquery, CTE, etc.) to...

  • RE: Strange BETWEEN behavior....anyone have an explination for this?

    Keep in mind that float is an imprecise data type, and the value actually stored in the table may not be exactly the same as the value that was inserted.

  • RE: Shrink helping performance

    GilaMonster (5/22/2013)


    ScottPletcher (5/22/2013)


    It wasn't "out of context" -- you made an absolute statement, which thus applies to any context.

    An absolute statement that you chose to ignore parts of.

    I said shrink...

  • RE: Shrink helping performance

    GilaMonster (5/22/2013)


    ScottPletcher (5/22/2013)


    GilaMonster (5/21/2013)


    Shrink alone can't speed up a query.

    Isn't that an overly broad assertion?

    Only when you quote me out of context.

    If, for the sake of argument, some/all of the...

  • RE: SQL Query Help

    Purely fyi, I personally think a cross apply that names the value being used makes the code much easier to follow and easier to change later. For example:

    Select

    *

    from...

  • RE: Shrink helping performance

    GilaMonster (5/21/2013)


    Shrink alone can't speed up a query.

    Isn't that an overly broad assertion? If, for the sake of argument, some/all of the disk extents added were scattered all over...

  • RE: SELECT INTO ignoring IDENTITY column

    This should "turn off" the identity property:

    SELECT *

    INTO dbo.newtable

    FROM dbo.table

    UNION ALL

    SELECT TOP 1 (*)

    FROM dbo.table

    WHERE 1 = 0

  • RE: Making data in a column unique (that's not a PK)

    RedBirdOBX (5/20/2013)


    Would you be so kind as to provide an example?

    SalesmanID (PK)

    SalesmanSSN (ype, it's the social)

    FirstName

    LastName

    ...etc...

    ALTER TABLE dbo.tablename

    ADD CONSTRAINT tablename__UQ_SalesmanSSN UNIQUE ( SalesmanSSN )

    --of course you can name the constraint...

  • RE: space issue

    If you have an (extremely) large table(s), compress them [if on Enterprise Edition], particularly if they are (almost) never used, such as log/audit tables, etc..

  • RE: update statement optimization?

    First, you need an index on ceb.New_IndividualId: I'll assume you have that already.

    Second, I'd cluster the #tmpIndividualCreateDates table by i.IndividualID: I'll assume you've done that already.

    I guess the OUTPUT clause...

  • RE: Quering Code

    dwilliscp (5/14/2013)


    Thanks for the warning Jeff.

    On the Jobs front.. We almost never put SQL into the Job, but thanks for reminding me to check there too. Thanks to everyone...

  • RE: Quering Code

    I also search table sys.sql_modules, which contains the code for all sys.objects members of type P, RF, V, TR, FN, IF, TF, and R.

    If you want to check for use...

Viewing 15 posts - 6,541 through 6,555 (of 7,608 total)