Viewing 15 posts - 48,946 through 48,960 (of 49,571 total)
No bulk update, and I would hazard a guess that it's not the logging that's slowing your proc down.
Is there any chance of getting someone to add an index? on...
November 29, 2006 at 6:48 am
Absolutely, yes. Cursors are massively inefficient.
Again this is untested, but I think it should do the same as the cursor. I'd be very interested in how long it runs.
November 29, 2006 at 5:02 am
No merge statement. You'll have to write seperate update and insert statements. Something like this
Update table2 set f1 = table1.f2*0.1
FROM table1 where table2.f1=table1.f1 and table1.f1=20
INSERT Into table2 (f1, f2)
SELECT f1,...
November 29, 2006 at 4:03 am
Could you maybe post thr structure of you tables, some sample data and an indication of what you're trying to achieve?
As Sergiy said, conditional joins is not somethign that should...
November 29, 2006 at 3:48 am
It looks a little wierd, but this is what you want. A not in for 2 fields.
Select table1.* from table1 LEFT OUTER join table2 on table1.f1=table2.f1 and table1.f2=table2.f2
WHERE Table2.f1 is...
November 29, 2006 at 1:53 am
Assuming that f1 and f2 are fields in table1 and that the in works the same way in oracle as sql...
Select * from table1 inner join table2 on table1.f1=table2.f1 and...
November 29, 2006 at 12:27 am
Probably the easiest is to do the if outside of the query
IF (condition)
SELECT <fields> from table1 inner join table2 ON...
ELSE
SELECT <fields> from table1 inner join table3 ON...
November 28, 2006 at 1:13 am
Middle of the table? Column order has no meaning in SQL, much like row order. If you wnat columns in a specific order, specify that in the select. The 'order' of...
November 27, 2006 at 11:22 pm
A log file is often a text file listing events that have occured and the like.
The transaction log for a sQL database is a record of every transaction that has...
November 24, 2006 at 1:36 am
I studied just out of books online and the pocket adin's guide. Was all I had.
It's not a hard exam.
November 24, 2006 at 1:16 am
I studied for the TS exam using just books online and the pocket admin's guide. Got around 930, first attempt. I haven't seen any of the study guides, but they're...
November 24, 2006 at 12:42 am
I think you missed the point I was trying to make. I didn't mean union all, and I know the two queries aren't equal. I said as much
When you write...
November 23, 2006 at 5:13 am
Books Online is the title of the help files that come with SQL. They are also available on msdn, but I don't remember the url
Look in the SQL Server group...
November 23, 2006 at 5:12 am
I heard a a recent workshop on performance tuning that the query optimiser in SQL 2000 has only one option for optimising an OR, but it has more than one...
November 9, 2006 at 8:19 am
Single quotes are string delimiters in SQL. Try
SELECT adi AS Adlar from
OR
Select adi AS "Adlar" from
Hope that helps
November 9, 2006 at 4:13 am
Viewing 15 posts - 48,946 through 48,960 (of 49,571 total)