Forum Replies Created

Viewing 15 posts - 22,936 through 22,950 (of 26,490 total)

  • RE: Are the posted questions getting worse?

    The desert stretches out in the distance and a lone figure can be seen running deeper into the desert. It appears that this person is screaming wildly while pulling...

  • RE: Stumbling on a SQL query - Help!!

    No, the data you provided doesn't really help. I have no idea if you need to use an outer join or inner join as this is your data and...

  • RE: Stumbling on a SQL query - Help!!

    airborn (1/21/2009)


    Lynn,

    Sample data looks like the following. I think thats what makes it more complicated. It's all numeric. As for the join - I thought I was joining it by...

  • RE: Query help... "most records spanning a particular time"

    When you say the last 2 months, do you mean the previous 2 months (i.e. in January 2009, you are talking about November and December 2008) or the previous month...

  • RE: Stumbling on a SQL query - Help!!

    You also realize that your select statement in your function is returning a cartesian product as well, right? You have no join criteria between the two tables dbo.grapes and...

  • RE: Stumbling on a SQL query - Help!!

    Your function selects data from a table. How do I help you when I don't know anything about that underlying table or have any sample data to put into...

  • RE: Stumbling on a SQL query - Help!!

    You have only provided part of the information we really need to help you with your problem. Please read the first article below in my signature block regarding asking...

  • RE: Re-Started Server

    Unfortunately, we have been giving you SQL Server 2005 answers because you posted your question in a SQL Server 2005 forum.

    I don't think you will be able to figure out...

  • RE: update one table from another using a join

    Garadin (1/20/2009)


    Try running this query.

    SELECT I.item_no,I.std_cost,I.loc, C.HBG_std_cost

    FROM HBG.dbo.IMINVLOC_SQL I

    LEFT JOIN FT.dbo.Std_Cost_Compare C ON I.item_no = C.item_no AND I.loc = C.HBG_loc

    A bit easier to read than yours. You're getting...

  • RE: Deleting 150+ million rcds - Tips ?

    OR, create a table, mytable_new. Copy over just the records you wish to KEEP. Rename the current table (mytable) to mytable_old, then rename mytable_new to mytable.

    Saves you moving...

  • RE: create view problem

    Jeff Moden (1/20/2009)


    As a sidebar, there isn't really an advantage to having such an indexed view. The underlying indexes on the table are the only advantage. Indexed views...

  • RE: Hidden RBAR: Triangular Joins

    Joe Celko (1/20/2009)


    Bad example. Ever read about what New York City was like before automobiles? How many TONS of house shit were carted off the streets every day...

  • RE: how to get maxium value of a table when there are no records

    Garadin (1/20/2009)


    Lynn Pettis (1/20/2009)


    Garadin (1/20/2009)


    SELECT IDENT_CURRENT('yourtablename')+1

    I thought about this, but the OP's post didn't indicate that the PK (int column) was defined as an identity column. With out that...

  • RE: how to get maxium value of a table when there are no records

    Garadin (1/20/2009)


    SELECT IDENT_CURRENT('yourtablename')+1

    I thought about this, but the OP's post didn't indicate that the PK (int column) was defined as an identity column. With out that info, how would...

  • RE: IsIdentity

    I have to correct myself. there is another way, using the following function: COLUMNPROPERTY ( id , column , property ).

    Check it out in BOL (Books Online).

Viewing 15 posts - 22,936 through 22,950 (of 26,490 total)