Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make semi selection with thin join tables sample #5

Open
yaoguangluo opened this issue Jan 27, 2019 · 1 comment
Open

make semi selection with thin join tables sample #5

yaoguangluo opened this issue Jan 27, 2019 · 1 comment

Comments

@yaoguangluo
Copy link
Owner

setRoot:C:/DetaDB;
baseName:backend;
tableName:usr:select;
condition:or:u_id|<=|3:u_id|>|7;
condition:and:u_email|!equal|321:u_name|!equal|123;
getCulumns:u_id|as|detaId:u_email|as|detaEmail;
join:backend:usrToken;
condition:and:u_level|equal|low;
getCulumns:u_id|as|sId:u_level:u_password|as|SSID;
relation:and:detaId|==|sId;
aggregation:limit:0|~|1;

@yaoguangluo
Copy link
Owner Author

yaoguangluo commented Jan 27, 2019

the query mostly like:

select u.u_id as detaId,u.u_email as detaEmail, t.u_id as sId,t.u_level,t.u_password as SSID
from usr as u
inner join {select t.u_id as sId,t.u_level,t.u_password as SSID
from usrToken as t
where t.u_level equal "low"
} on detaId == sId;
where (u.u_id <=3 || u.u_id>7 ) && (u.u_email !equal '321' && u.u_name !equal 123);
limit 0,1

tranditional SQL seems so complex...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant