Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Server Select Processing order?
Message
 
 
À
06/03/2015 10:46:57
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2014
Application:
Web
Divers
Thread ID:
01616334
Message ID:
01616336
Vues:
33
>>Hi,
>>
>>When you create a SQL Select can you specify the order in which the records are processed? (not the order of the resulting query).
>>
>>For example, say I have this table
>>
>>Date                Item         Quantity
>>02-02-2014     ABC         5
>>03-14-2014     ABC         1
>>08-07-2013     ABC         24
>>01-12-2012     ABC         0
>>
>>
>>When I do SELECT * FROM ThisTable [some other conditions] I would like the records to be processed in the Date chronological order.
>>
>>Is it possible?
>>
>>TIA
>
>can't you just order by Date ?

The order by Date will give the resulting order by Date. But I need to process (the code not shown in my example) the records during the SQL Select. And I want them to be processed in certain order.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform