name password
OLI-it Text
EN | DE | ES n0 PostIt

 
Stamm (abstract)
6/13/1996
19.00
HyperLink

 
Antworten von: Frederic Luchting
7/16/2002
13.53 http://www.berndjungbluth.de/sqlfaq/sqlfaq.htm

-- begining of query that you need
declare @count int
declare @call_code int
declare tmpcursor cursor
for
select
call_code, count(*)
from
##cah
group by
call_code
having
COUNT(*) > 1
open tmpcursor
fetch next from tmpcursor into @call_code, @count
while @@fetch_status = 0
begin
  set @count = @count - 1
  set rowcount @count
  delete from ##cah where call_code = @call_code
  fetch next from tmpcursor into @call_code, @count
end
close tmpcursor
deallocate tmpcursor
go
-- end of query

Bewertung
tollrest
KAT Danke Oli
tollrest
Frederic Luchting total richtig!

weitere Hilfe

Antwort mit Bewertung .rdf

Das ist ein Feedback auf die Nachricht.

Wenn Sie eingeloggt sind, können sie eine Bewertung (0 - 100%) abgeben, um die Bezahlung der Antworten zu regeln.

Ausserdem können sie weitere Kommentare (also eine Antwort auf diese Antwort) abgeben.