Zandbak/Sub-zandbak3: verschil tussen versies

Uit Inf2019
Naar navigatie springen Naar zoeken springen
Regel 13: Regel 13:
|join on=Books.Authors HOLDS Authors._pageName
|join on=Books.Authors HOLDS Authors._pageName
|fields=Books._pageName, Books.Authors, Authors._pageTitle, Authors.Country
|fields=Books._pageName, Books.Authors, Authors._pageTitle, Authors.Country
|order by=Books._pageName
}}
}}

Versie van 3 jul 2022 19:45

Database (Cargo) queries

_pageName Authors
Emma Jane Austen
Mansfield Park Jane Austen
Pride and Prejudice Jane Austen
Sans Famille Hector Malot
Sense and Sensibility Jane Austen
Structured Progamming Ole-Johan Dahl Edsger W. Dijkstra Tony Hoare


Error 1054: Unknown column 'cargo__Books__Authors._value_pageID' in 'order clause'

Function: CargoSQLQuery::run Query: SELECT `cargo__Authors`.`_pageID` AS `cargo_backlink_page_id_Authors`,`cargo__Books`.`_pageID` AS `cargo_backlink_page_id_Books`,`cargo__Books`.`_pageName` AS `_pageName`,`cargo__Books__Authors`.`_value` AS `Authors`,`cargo__Authors`.`_pageTitle` AS `_pageTitle`,`cargo__Authors`.`Country` AS `Country` FROM `cargo__Books` LEFT OUTER JOIN `cargo__Books__Authors` ON ((`cargo__Books`.`_ID`=`cargo__Books__Authors`.`_rowID`)) RIGHT OUTER JOIN `cargo__Authors` ON ((`cargo__Books__Authors`.`_value`=`cargo__Authors`.`_pageName`)) ORDER BY `cargo__Books__Authors`.`_value_pageID`,`cargo__Books`.`_pageID`,`cargo__Books`.`_pageName`,`cargo__Books__Authors`.`_value`,`cargo__Books__Authors`.`_value_pageTitle` LIMIT 100