Viewing 15 posts - 1,156 through 1,170 (of 1,216 total)
Well, that really depends on how you want to handle it and what should be the final result... here one possibility:
select * , CONVERT(varchar(5), tran_date,14) AS tran_time
from transactions
where tran_date between...
May 12, 2004 at 3:50 am
Thanks, Optimist 🙂 your solution was something that didn't occur to me, and is very helpful! I was looking for that right now, because I wanted to avoid the use of cursors in a...
May 10, 2004 at 3:51 am
Thanks for the explanation, Sara - now I can see that I understood the question wrong and that Amit's method should give correct results.
And now it is time to have some fun... see...
April 30, 2004 at 8:39 am
Hi Sara,
I guess it would be easier to help if you explain a bit more closely what do you want to achieve... What does the "Without using temp tables or cursors, how...
April 30, 2004 at 7:02 am
Well, I don't know what the problem is, and I have only SQL2k ... just an idea, did you try to specify all the numbers (100, 10, 1, 0.1 ....)...
April 30, 2004 at 3:00 am
Hmm.. the question does not state whether combination of ID+IACID must be unique. If it isn't unique, then AH's solution won't work... but just a simple modification of the last line should...
April 22, 2004 at 6:45 am
Hello,
without seeing the SQL and underlying data structure I don't know where the problem could be. IMHO it should work. You could also try COALESCE(field1,field2) AS NewField - this allows...
April 21, 2004 at 5:31 am
Hello,
I suppose this is just a simplified version of your real query, so I won't ask what it is supposed to do... Anyway, IMHO the problem is that you use...
April 15, 2004 at 1:26 am
The log will not shrink on backup - file remains the same size, but most contents are emptied - so when there are new data coming in, log doesn't have...
February 26, 2004 at 8:35 am
AutoShrink is not a good choice because of the fact that both shrinking and growing of the log file will lower performance of the system. It is better to keep the...
February 26, 2004 at 7:58 am
Hi Curtis,
Al didn't mention the version of SQLS their company is using, so I suppose it is Enterprise Edition. Standard Edition wouldn't be able to use the memory above 2...
February 24, 2004 at 9:07 am
I'd definitely vote for a flexible model, like the one proposed by wz700. You can bet there will be changes over time... as soon as you hardcode the structure, some new...
February 24, 2004 at 8:51 am
Hi Mohammad,
if your DB is really just 200 MB, IMHO you can reindex all and don't worry about it much... it is really a small database.
We have a DB of...
February 24, 2004 at 7:59 am
Well, table with two hashes (##tmptable) is global and should be visible to other users as well - as long as the connection in which it was created is active....
February 24, 2004 at 7:31 am
Hi,
what version of SQLS are you running? I tested on SQL 2k and I agree with noeld, on random data your query works fine. I wrote a similar query for one of...
February 18, 2004 at 7:32 am
Viewing 15 posts - 1,156 through 1,170 (of 1,216 total)