MySQL Forums
Forum List  »  German

Re: So schwer kann das doch nicht sein...
Posted by: Marcus Höting
Date: March 29, 2021 12:03AM

Moin,

der Antwort entnehme ich, dass ich die Struktur meiner "imaginären" Tabelle zeigen soll. Das Problem ist, dass ich den SQL-String und die dahinterliegende Struktur massiv vereinfacht habe. Die Information, die ich benötige, liegt eigentlich verteilt in fünf Tabellen. Es sind also jede Menge joins nötig.

Aber ich versuche mal das Kernproblem auf zwei Tabellen zu reduzieren.

table name column name datatype length
Equipment PDSid uniqueidentifier 16
Equipment UID nvarchar 200
Equipment LastUpdate datetime 8
Equipment PortfolioService nvarchar 2096
Equipment PortfolioCluster nvarchar 200
Equipment Name nvarchar 200
Equipment SerialNumber nvarchar 100
Equipment Status int 4
Equipment ParentEquipmentUID nvarchar 200
Equipment EquipmentUserUID nvarchar 200
Equipment EquipmentLocationUID nvarchar 200
Equipment Price nvarchar 200
Equipment PriceType nvarchar 200
Equipment MaterialNumber nvarchar 40
Equipment Visible bit 1
User PDSid uniqueidentifier 16
User UID nvarchar 200
User LastUpdate datetime 8
User FirstName varchar 00
User LastName nvarchar 200
User Username nvarchar 304
User Title nvarchar 200
User OrgEinheit nvarchar 200
User MailAddress nvarchar 1000
User CostcenterUID nvarchar 200
User LocationUID nvarchar 200
User LicenseOID int 4
User Status nvarchar 200

Den JOIN kann man über Equipment.EquipmentUserUID=User.UID herstellen. PortfolioService enthält die Produkte.

P.S. Die Forums-Software zeigt leider keine Whitespaces. Die Formatierung in der Tabelle ging also verloren.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: So schwer kann das doch nicht sein...
253
March 29, 2021 12:03AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.