dresende / node-sql-query

NodeJS SQL query builder
122 stars 103 forks source link

Add LEFT/RIGHT JOINS #22

Closed stefanosusini closed 4 years ago

stefanosusini commented 11 years ago

Just like this: common.Select().from('table1') .from('table2', 'id2', 'table1', 'id1', 'LEFT').fun('AVG', 'col').build();

"SELECT AVG(t2.col) FROM table1 t1 LEFT JOIN table2 t2 ON t2.id2 = t1.id1"

thanks

athlan commented 10 years ago

Ping.

dxg commented 9 years ago

This has been implemented and published in version 0.1.25