sql server - SQL view with dynamic count of columns -


i know impossible directly, maybe of sql functions possible create view dynamic column count? want - create view which's columns username (first table's values), date (second table's values), , multiple columns properties (each third table's row column).user table structure - id , username, date table structure - id , datetime, property table structure - id, property name, property value, fk user id (plus 1 table relate tables). result should (columns):

|username| date | property 1|....|property n|

can show simple sample ?

this not possible in standard sql, nor in version of sql familiar (sql server, oracle, mysql, access sql). tables, expressions , views in sql have fixed column-set, design. i.e., it's intentionally restricted way. afaik, in versions of sql, stored procedures objects can return variable column-set.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -