Forum Replies Created

Viewing 15 posts - 5,911 through 5,925 (of 10,144 total)

  • RE: Help to join two tables become one table

    tantcu (8/13/2012)


    Hi guys,

    I'm creating two temporary table from a query:

    SELECT

    branch_description

    ,qty_order

    ,current_open_orders

    .....

    These 2 tables has the same column as branch description. Is there a way that I...

  • RE: The multi-part identifier could not be bound.

    kgillispie (8/13/2012)


    I've read some suggestions on this forum, but none were able to help.. so am posting a new question.

    I am running the below query but I end up with...

  • RE: Today's Random Word!

    L' Eomot Inversé (8/13/2012)


    ChrisM@Work (8/13/2012)


    Ray K (8/13/2012)


    meh

    Meths

    Wood alcohol

    Possibly, depends on how much.

  • RE: Best Strategy to Create a Million Files using SSIS

    sradez_DBA (8/13/2012)


    They are not searching the Database from the UI.The search is on the files.

    It will be very interesting to see how this approach compares with the more conventional one,...

  • RE: unique constraint

    Eugene Elutin (8/13/2012)


    ...

    Same here. Experience takes precedence over theory.

    ...

    Actually, you wouldn't even need a lot of experience to choose surrogate PK over natural key. Use common sense or apply...

  • RE: Best Strategy to Create a Million Files using SSIS

    sradez_DBA (8/13/2012)


    Hey Phil,

    Thanks for the reply.

    Our project involves storing the every detail of a product(example).When the users search for the product from the UI, they get this file which has...

  • RE: SELECT - CASE - GROUP BY

    carl6885 (8/12/2012)


    Thanks for the help! Got it working with:

    SELECT tblErrors_ER.ErrorID, CASE WHEN Count(tblPolicyNumbers_ER.PolicyNumber) = 1 THEN MIN(tblPolicyNumbers_ER.PolicyNumber) ELSE 'Multiple' END

    FROM tblErrors_ER

    INNER JOIN tblPolicyNumbers_ER ON

    tblErrors_ER.ErrorID = tblPolicyNumbers_ER.ErrorID

    GROUP BY...

  • RE: unique constraint

    Lynn Pettis (8/10/2012)


    ...

    I like the idea of having a sid (a surrogate id) on my tables, even if I do have a natural key that can serve as a primary...

  • RE: Intresting Query

    Jeff Moden (8/10/2012)


    ...My favorite question is becoming "Discuss the differences between a Clustered and Non-Clustered Index". 95% of the time I'm told "The Clustered index is always the PK...

  • RE: Today's Random Word!

    Ray K (8/13/2012)


    meh

    Meths

  • RE: Calculating average for 3 consecutive years

    SELECT *

    FROM #Temp t

    CROSS APPLY (

    SELECT AVGfield3 = AVG(field3*1.00) FROM #Temp s

    WHERE s.field2 = t.field2

    AND s.field1 IN ( t.field1, DATEADD(YY, -1, t.field1), DATEADD(YY, -2, t.field1) )

    ) x

  • RE: how to write a select query by passing @cattyp as parameter for this tables and here i am trying for rand() in this select query ?

    Here's another way:

    declare @cattyp varchar(3) = 'cri'

    SELECT a.alid,

    a.cattyp,

    a.altitle,

    ...

  • RE: Crazy Interviews

    Lowell (8/7/2012)


    I had a similar interview like laurie had years ago; they were interested in whether I knew vb6, ADO and whether i knew javascript; the questions had a couple...

  • RE: Reverse Of Number without Using reverse()

    Cadavre (8/3/2012)


    shahsn11 (8/3/2012)


    Hi,

    How will i reverse the number in SQL Server with out using reverse()

    Is this an intellectual challenge? Because otherwise, use reverse().

    I guess you could do something like...

  • RE: Reverse Of Number without Using reverse()

    shahsn11 (8/3/2012)


    Hi,

    How will i reverse the number in SQL Server with out using reverse()

    Why don't you want to use reverse() ?

Viewing 15 posts - 5,911 through 5,925 (of 10,144 total)