Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Head-breaking query
Message
De
20/09/2016 19:11:36
 
 
À
20/09/2016 16:47:25
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01641137
Message ID:
01641155
Vues:
50
>
>I tried Naomi's answer. I got blank values in some of the column/row cells and couldn't figure out how to prevent that.
>

I just tried her code (where she used ROW_NUMBER). It works.

One thing...assuming I understand the result sets you're looking for - you *will* have some empty cells, unless for each day you have the same number of locations.

In her brief example with six rows, here's the output. So I guess I don't understand why her query doesn't address it.
Sunday	        Monday
Loc1	        Loc3
Loc2	        Loc4
Loc5	
Loc6	
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform