Forum Replies Created

Viewing 15 posts - 9,661 through 9,675 (of 10,144 total)

  • RE: How to use column name inlike clause in SQL server

    Maroti, this would be a heck of a lot easier to solve if the query was nicely formatted, as follows:

    [font="Courier New"]

    FROM maintSubStrategySecurityType

    RIGHT JOIN tblBlackrockPositionsByFund AS Positions

       ON maintSubStrategySecurityType.[Sub...

  • RE: How to use column name inlike clause in SQL server

    Can you provide the necessary logic for one join to be selected? One option you could use is to LEFT JOIN for each of the three possible joins and pick...

  • RE: removing appended dash

    You're welcome ChrisT, thanks for the feedback.

    Cheers

    ChrisM

  • RE: removing appended dash

    Use LIKE in the join:

    [font="Courier New"]

    SELECT a.zipcode, z.zipcode

    FROM AgentAddresses a

    LEFT JOIN ZipCodes z ON a.zipcode LIKE z.zipcode+'%'[/font]

    Cheers

    ChrisM

  • RE: Date Format

    What client software are you using to display the date to the user? Is the default display of datetime provided by this client (and using regional settings) inappropriate for your...

  • RE: Date Format

    Sudarsan, it's difficult to tell exactly what you mean. One interpretation of your requirements is as follows:

    You have dates in an unknown format. These dates are in table columns.

    You want...

  • RE: How to update joined tables

    UPDATE c SET hazard_info = h.hazard_phrase

    FROM compound c

    INNER JOIN hazard h on h.compound_id = c.compound_id

    Cheers

    ChrisM

  • RE: Cross Tabs and Pivots, Part 1 – Converting Rows to Columns

    Jeff Moden (8/19/2008)


    Chris Morris (8/19/2008)


    Really nice to read, Jeff, and absolutely spot on.

    I've had to do pivots in the last couple of weeks, with an unknown number of output (transposed)...

  • RE: Cross Tabs and Pivots, Part 1 – Converting Rows to Columns

    Really nice to read, Jeff, and absolutely spot on.

    I've had to do pivots in the last couple of weeks, with an unknown number of output (transposed) columns with unknown names,...

  • RE: SQL Brain

    Chad Crawford (8/15/2008)


    I'll be back after I finish running DBCC CHECKBRAIN

    Chad

    This one runs nightly, sometimes with irritating sound effects.

  • RE: Sorting value in a column

    Sergiy (8/7/2008)


    Christopher Stobbs (8/7/2008)


    ah Chris my bad,

    I'm 2005, wierd that the results are different it must do with the Percent and Order by clause combination.

    Ankur

    What is your default...

  • RE: eliminating duplicates

    Gosh Jeremy :blush: thanks!

  • RE: Condition in JOIN clause

    Christopher Stobbs (8/7/2008)


    Chris,,,

    You making me nervious...

    are you following me around today :w00t:

    Be afraid...be very afraid...

    Nah Chris I'm picking the easy ones, same as you 😛 😀

  • RE: Condition in JOIN clause

    VB (8/7/2008)


    thanks for the reply, however this wont achieve my goal, becuase if the "key" is not null i want a inner join on the tables if not jus the...

  • RE: Sorting value in a column

    Christopher Stobbs (8/7/2008)


    ah Chris my bad,

    I'm 2005, wierd that the results are different it must do with the Percent and Order by clause combination.

    Thanks for pointing this out Chris, one...

Viewing 15 posts - 9,661 through 9,675 (of 10,144 total)