Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing records from a SQL query
Message
De
21/01/2010 16:08:24
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01445297
Message ID:
01445315
Vues:
19
>Break this query to smaller pieces (CTEs) and it would be much easier to manage.
>
>Say,
>
>;with cte1 (my Inner query), cte2 as (select Something from cte1 inner join ...), cte3 as (second query joined with something else), cte4 as (select *, row_number() from cte3)
>
>select * from cte4 where RowNum = 1

That's what I already have.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform