I need to design tables which stores all the (Attributes) metadata of Files i.e., FileName, Author, Title, CreatedDate ... and Custom Metadata ( Metadata added to files by Users)
Before examining the tables we can not say what and how many custom tags have been added on Files. Custom Tags i.i.e, CustUseBy, CustSendBy etc.
Now To store this I have created a Base Table ( Having all Common metadata of Files) Such as :
Table1: FileID, Name, Title, Autor, CreatedDate, i.e.,
and I Attribute Table ( Holing attributes of Files)
Table2: AttributeId, AttributeName, AttributeType. here if the table has 2 Custom Attributes then the Values insert in table is as:
A001, CustomeAttt1, Varchar(40).
A002, CustomUseDate, Datetime.
Table3: Sno, FileId, AttributeId, AttributeValue here Values of custome Attribute is stored with associated FileId. Such as
F001, A001, Akash
F001, A002, 2009/03/02
Now the Problem is I want to show the data in a manner like this:
FileId, Title, Author, CustomAttri1, CustomeAttr2,(All Custom Attribues)
F001 Dox vinay Vinay 2009/03/02,
F002 Excel Ajay
Can Anybody help me to acheive this:
Thanks in advance.