Quantcast
Channel: Für Entwickler: SQL Server Forum
Viewing all articles
Browse latest Browse all 1772

Normalisierung einer Tabelle

$
0
0

Hallo,

ich bin noch recht neu auf dem Gebiet und stehe vor folgendem Problem.
Die Daten, die vorliegen, sollen normalisiert werden.

MANDT	VTINT		SLNID	ATINN				VALC
200		0000000304	00001	G_GEAR_VERSION		10
200		0000000304	00001	G_GEAR_VERSION		20
200		0000000304	00001	G_GEAR_VERSION		30
200		0000000304	00001	G_GEAR_VERSION		NICKEL
200		0000000304	00001	G_GEAR_VERSION		SIDEL
200		0000000304	00001	B_COUNTRY_SELECTION	DE

200		0000000304	00002	G_GEAR_VERSION		PH_K
200		0000000304	00002	G_GEAR_VERSION		STD
200		0000000304	00002	G_GEAR_VERSION		VACUUM
200		0000000304	00002	B_COUNTRY_SELECTION	DE
200		0000000304	00002	B_COUNTRY_SELECTION	US

200		0000000304	00003	G_GEAR_VERSION		BDW
200		0000000304	00003	G_GEAR_VERSION		BDW_LL
200		0000000304	00003	G_GEAR_VERSION		FD
200		0000000304	00003	G_GEAR_VERSION		FD_LL
200		0000000304	00003	G_GEAR_VERSION		LL
200		0000000304	00003	B_COUNTRY_SELECTION	US

Als Endprodukt bräuchte ich diese Tabelle

Die Spalteanzahl kann dabei ebenfalls variable sein.

MANDT	VTINT		SLNID	G_GEAR_VERSION	B_COUNTRY_SELECTION
200	0000000304	00001	10		DE
200	0000000304	00001	20		DE
200	0000000304	00001	30		DE
200	0000000304	00001	NICKEL		DE
200	0000000304	00001	SIDEL		DE

200	0000000304	00002	PH_K		DE
200	0000000304	00002	STD		DE
200	0000000304	00002	VACUUM		DE
200	0000000304	00002	PH_K		US
200	0000000304	00002	STD		US
200	0000000304	00002	VACUUM		US

200	0000000304	00003	BDW		US
200	0000000304	00003	BDW_LL		US
200	0000000304	00003	FD		US
200	0000000304	00003	FD_LL		US
200	0000000304	00003	LL		US

Gibt es eine einfache Möglichkeit dies zu erreichen?







Viewing all articles
Browse latest Browse all 1772

Latest Images

Trending Articles

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>