Viewing 15 posts - 106 through 120 (of 178 total)
skailey (7/14/2009)
July 15, 2009 at 6:26 am
Hey,
not 100% sure what you are wanting to do here, what output are you expecting? Is it just the first two values you are wanting output into cell A2?...
June 19, 2009 at 10:31 am
Still not sure if it's dynamic or not...? does RIGHT(ImageName,6) always equal either '_X.jpg' or '_Y.jpg'?
Very good article on pivots found at http://www.sqlservercentral.com/articles/T-SQL/63681/
June 18, 2009 at 3:44 am
Will there always just be two image types, X and Y? If so are they always named like '_X.jpg' and '_Y.jpg'?
June 18, 2009 at 3:26 am
Hi there,
I'm not quite with you... you ordered by date desc, but your output is not ordered, what is it that needs ordered by date desc?
June 18, 2009 at 3:15 am
You might find it useful to be able to check if table exist or not?
if so you can use something like:
IF OBJECT_ID('zzdbfiles.dbfiles') IS NULL
CREATE zzdbfiles.dbfiles ...
June 18, 2009 at 1:43 am
Hey, without some test data and table structures it's hard to provide a decent, tested solution, but I think you're overcomplicating things here a bit... why the nolock, why the...
June 18, 2009 at 1:35 am
declare @temp as table (txtdate varchar(10))
insert into @temp select '071009' union select '42209'
select
CONVERT(datetime,
case
when LEN(txtdate) = 6 then STUFF(STUFF(txtdate, 3, 0, '-'), 6, 0, '-')
else '0' +...
June 9, 2009 at 10:37 am
Gail,
Is there any way to add an index to the function of a column? In Foxpro I am able to do things like:
INDEX ON VAL(SeqNum) AS Seq
Is there anything analagous...
June 9, 2009 at 4:19 am
This is code for getting a date without the time portion.
I'm not sure about actual performance, I'd need to test, however, the following keeps the date as a dat, without...
June 9, 2009 at 3:07 am
No bother, btw I really like this solution for finding the median, pretty neat. Will have a play around with large result sets when I get a chanace.
June 9, 2009 at 2:58 am
Apologies, missed that entirely.
If you calculate actual rate before you assign the row number the method works correctly.
I haven't investigated the performance hit on this, but if you do the...
June 9, 2009 at 1:57 am
Hey Steve,
this'll work so long as you are after the maximum value of prod, rather than the first.
I thought you said in an earlier post you are after the first...
June 8, 2009 at 6:48 pm
Anyone want to help out here:
http://www.sqlservercentral.com/Forums/Topic731030-338-1.aspx#bm731057 I'm in wrong time zone to be any more help 🙁
June 8, 2009 at 6:33 pm
Viewing 15 posts - 106 through 120 (of 178 total)