milecl
Goto Top

SQL Server 2005 Daten bereinigen

Hallo,

ich habe eine Tabelle mit völlig miserablen Inhalten.

Zum Beispiel folgende Spalten:

coulumn: SPARSA_FIC

Inhalt:

FIC Airbus: XW NOF FIC Supplier: XNOFSTRNOS
FIC Airbus: XW NOF FIC Supplier: XNOFSTRNOS
FIC Airbus: XW NOF FIC Supplier: XNOFSTRNOS
FIC Airbus:XW CEF FIC Supplier: AER
FIC Airbus: XW NOF FIC Supplier: XNOFSTRNOS
FIC Airbus: Supplier:
FIC Airbus: XW NOF FIC Supplier: XNOFSTRNOS
FIC Airbus: XW NOF FIC Supplier: XNOFSTRNOS

Davon benötige ich nur XNOFSTRNOS bzw. AER (ist aber variabel und kann auch anders lauten).

coulumn: SPRS_target_date

Inhalt:

Target date to complete SPRS: 20/06/2012
Target date to complete SPRS: 22/06/2012
Target date to complete SPRS: 07/06/2012
Target date to complete SPRS: 20/06/2012
Target date to complete SPRS:
Target date to complete SPRS: already answered
Target date to complete SPRS:
Target date to complete SPRS: 25/05/2012
Target date to complete SPRS: 15/12/2011

Davon benötige ich nur z.B. 15/12/2011 als Kalenderwoche.

weitere Spalten müssen von sämtlichen Sonderzeichen bereinigt werden und sollen nur Zahlen ausgeben.

Hat jemand eine Idee wie man das am Besten bewerkstelligen kann?

Viele Grüße
milecl

Content-Key: 189997

Url: https://administrator.de/contentid/189997

Printed on: April 19, 2024 at 09:04 o'clock