<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>27 Jul 2015 11:26:00 Z</lastBuildDate><pubDate>27 Jul 2015 11:26:00 Z</pubDate><description>How can I perform a query like the following using the editor?&#13;
&#13;
SELECT item.id, item.desc, local_data.qty FROM items LEFT OUTER JOIN on item.id = local_data.itemId AND local_data.branch = 2 LIMIT 100&#13;
&#13;
The aim of the query is retrieving anagraphics of items plus their local data (stock qty, sale price, location and so on). In the example i want local data of branch/company n.2&#13;
The best would be setting the branch as parameter of the query, like you do with WHERE clause parameters.&#13;
&#13;
The editor forbids the join on 2 fields (theta join.. it says) where I try to write the sql code and then run the reverse engineering on the query. I can make theta join using the editor of the join but there I cannot insert fixed values or parameters.&#13;
&#13;
Is querying by hand the only way to do this?&#13;
Thank you</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53270-theta-join-query-editor/read.awp</link><title>Theta join in query editor</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
