Forum Replies Created

Viewing 15 posts - 2,101 through 2,115 (of 5,685 total)

  • RE: Having trouble with a join select query

    David Moutray (12/10/2011)


    Here is the result set I got when testing Craig's query:

    Order ID-Detail ID-Item ID--Item Type---------Equipment Group

    463-----1--------500------Equipment---------500

    463-----2--------550------Equipment---------550

    463-----3--------732------Accessory---------500

    463-----4--------744------Accessory---------525

    463-----4--------744------Accessory---------592

    463-----5--------785------Accessory---------550

    463-----5--------785------Accessory---------500

    463-----6--------788------Accessory---------788

    I'm curious how. Here is my result set, with a direct copy/paste...

  • RE: Having trouble with a join select query

    David Moutray (12/10/2011)


    Craig's solution looks perfect to me, but I think there may be a logical flaw in the question.

    Here is the result set I got when testing Craig's query:

    Odd,...

  • RE: update a table using another set of data

    sqlfriends (12/9/2011)


    In ssis package, I have first loaded a big table A with multiple columns, most populated, but only two are null columns that I need to populate from another...

  • RE: Count Words in Text Field and/or Column (frequency of use)

    texpic (12/9/2011)


    Jeff, yes. In probably 1/2 the databases I have full permissions, the rest I work with temp files.

    Pull the data over into a local sandbox? There's really...

  • RE: What else have you done?

    Rob Schripsema (12/9/2011)


    My list....

    General dairy farm labor (lots of manure)

    General chicken/egg ranch labor (more manure)

    Soda jerk (as in ice cream sodas, OK?)

    Furniture mover

    More farm labor (apple orchards)

    Psychiatric hospital aide (more...

  • RE: Query to find which columns have different values in a pair of rows

    LutzM (12/9/2011)


    Wouldn't the UNPIVOT approach be a little easier?

    :blush: Yes.

    Pardon me, I need to find a mirror. I know someone who deserves a facepalm and I need to...

  • RE: Having trouble with a join select query

    A note or two as comments in the code, but let me know if anything here ends up confusing.

    SELECT

    o.*,

    CASE WHEN o.ItemType = 'Equipment' THEN CONVERT( VARCHAR(20), o.ItemID)

    ELSE ISNULL( CONVERT(...

  • RE: Having trouble with a join select query

    tarr94 (12/9/2011)


    Having read the "Forum Etiquette" page, here are the test tables:

    I added a couple of records to the RelatedItems table to further clarify my problem (I've updated my initial...

  • RE: First letter upper case for each word in sql server.

    It's possible you just aren't familiar with the proper terminology for what you're looking for.

    Google: T-SQL Proper Case

    You'll get a few hundred hits.

  • RE: Query to find which columns have different values in a pair of rows

    Marios Philippopoulos (12/9/2011)


    My bad, you are right! 🙂

    LOL, no worries, we all do it occassionally. 😉

    Here is a script that creates a table and populates it with two records...

  • RE: Stored procedure Loop help please

    rwsmith 38519 (12/9/2011)


    Craig, by the way, Evil Kraig is a cool pen name....

    Heheh, thanks. It really started with a mis-spelling by someone ubobservant, but I couldn't resist the concept...

  • RE: want to write a query that finds not matching rows

    Parakiti,

    I think I get what you're asking for, but I'm not quite sure. As mentioned above, sample schema, data, and desired results from that sample set would be helpful....

  • RE: Problem with running total

    NineIron,

    Can you setup a sample data set with schema and the like that's consumable? We can most likely help you but you'll need to give us a starting point...

  • RE: The Employment Contract

    JJ B (12/9/2011)


    But what about "higher" tasks? My point is that it is nice if a job description/contract could contain wording that indicates a general level of expertise that...

  • RE: Are the posted questions getting worse?

    L' Eomot Inversé (12/9/2011)


    Koen Verbeeck (12/9/2011)


    I recently moved to a new house and I took the opportunity to get me and my family digital television (it's fairly "new" in Belgium).

    So...

Viewing 15 posts - 2,101 through 2,115 (of 5,685 total)