Viewing 15 posts - 13,636 through 13,650 (of 13,849 total)
declare @str varchar(20)
set @str = 'a b c d'
select @str as orig_string, replace(@str, ' ', '') as no_spaces
Regards
Phil
November 9, 2004 at 7:29 pm
No. Each table can (by definition) have only one clustered index - and whether that is on the table's primary key field or on some other field is down...
November 8, 2004 at 8:27 pm
The maximum worksheet size in Excel is 65,536 rows by 256 columns, so it sounds like you have hit that limit. However, you can of course have multiple worksheets...
November 8, 2004 at 4:46 pm
I've had this and did not find a straightforward solution, so in the end I worked round it. But, as an alternative to having a dynamic filename, you might...
November 8, 2004 at 4:04 pm
If 'first' = 'min' and 'last' = 'max', then this will do it:
select min(name) as 'first', max(name) as 'last'
from
where mark = 20
Regards
Phil
November 7, 2004 at 4:23 pm
OK, assume that table 'tbl' contains two fields, 'utc' and 'date'. utc is populated, but date is empty. Here is a query that will populate date from utc:
update tbl
set date...
November 5, 2004 at 6:49 pm
I think we were both referring to the ASC(AS(X,3) bit, which does not contain a trailing 'C'. I actually think you might have meant A$, rather than AS. ...
November 4, 2004 at 10:01 pm
Hi John, your message is a bit terse. Please provide sample data and how you would like it to be sorted.
Cheers
Phil
November 4, 2004 at 8:36 pm
So you want
200, 300, ...
as your resultset? If so, what does table 1 do?
Cheers
Phil
November 4, 2004 at 6:10 pm
It's easier than you think - you're already on the right track. Try this:
declare @utcdate as float, @cvdate as datetime
set dateformat mdy
set @utcdate = 38279.813344907401
set @cvdate = @utcdate
select @utcdate...
November 4, 2004 at 5:09 pm
Missed that. I have no idea what the as() function does. Any ideas, anyone?
Phil
November 4, 2004 at 4:41 pm
Brett, you have created a calculation in your SELECT clause and given it a column heading of 'dnpisimport'. You are not giving the calculation an alias of 'dnpisimport' (this cannot...
November 4, 2004 at 4:32 pm
No problem. I did a search on the web and found the following link about the FPT function ... do you think that is it?
http://www.basis.com/docsonline/commands/fpt_function.htm
If I create a user...
November 3, 2004 at 11:10 pm
I've not heard of BBX, but this looks like straight BASIC to me. Having said that, I have no idea what the FPT function does, please elaborate.
It should then...
November 3, 2004 at 10:07 pm
Thanks very much, I'll try that.
... tried it now and works a treat - thanks v much.
Phil
November 3, 2004 at 8:56 pm
Viewing 15 posts - 13,636 through 13,650 (of 13,849 total)