Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update empty value when preceding row is not empty
Message
 
À
03/02/2016 08:35:47
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01630642
Message ID:
01630647
Vues:
52
>Thanks Sergey.
>
>This has come in from a spreadsheet and its in (I guess) row number order
>
>>You have to define row ordering in terms of data first. Right now I don't see one.
>>
>>>I've imported a table and some of the rows have blank values
>>>
>>>I want to update the empty values of CaseID with the preceding value so in this example all the NULL CaseID will be 122303.
>>>I don't mind about the other columns its just the CaseID I want
>>>
>>>
>>>INC CaseID Status
>>>N 122303 Open: Investigation
>>>NULL NULL NULL
>>>NULL NULL NULL
>>>NULL NULL NULL
>>>N 122331 Open: Investigation
>>>
>>>
>>>Any suggestions on some SQL to do that ?
>>>
>>>Thanks
>>>
>>>Nick
There is no such thing as Row number in SQL Server.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform