Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible...?
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Application:
Desktop
Divers
Thread ID:
01383774
Message ID:
01383819
Vues:
49
>Hi Naomi,
>
>Thanks for your reply. Initial research into the link is inconclusive as the various methods do not return the desired result regarding the non-repeating of duplicate CommentId's.
>
>Vince

Hi Vince,

In your first stage simply select non duplicate records, e.g.

;with cte_NoDups as (select Date, Comment from myTable group by Date, Comment)
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform