Viewing 15 posts - 22,936 through 22,950 (of 26,490 total)
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...
January 21, 2009 at 10:02 am
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...
January 21, 2009 at 9:42 am
airborn (1/21/2009)
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...
January 21, 2009 at 9:11 am
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...
January 21, 2009 at 8:57 am
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...
January 21, 2009 at 8:44 am
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...
January 21, 2009 at 8:39 am
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...
January 21, 2009 at 8:05 am
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...
January 21, 2009 at 7:16 am
Garadin (1/20/2009)
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...
January 20, 2009 at 11:10 pm
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...
January 20, 2009 at 11:04 pm
Jeff Moden (1/20/2009)
January 20, 2009 at 10:41 pm
Joe Celko (1/20/2009)
January 20, 2009 at 4:20 pm
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...
January 20, 2009 at 4:15 pm
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...
January 20, 2009 at 3:52 pm
I have to correct myself. there is another way, using the following function: COLUMNPROPERTY ( id , column , property ).
Check it out in BOL (Books Online).
January 20, 2009 at 2:31 pm
Viewing 15 posts - 22,936 through 22,950 (of 26,490 total)