How can I convert cte or subquery of SQL into lookml?
please explain with example
You can use CTEs in derived tables or persistent derived tables, as outlined here. Is there something specific you are looking to achieve? You can also use derived tables to run subqueries if you wish to change the structure of your data or pre-aggregate some measures.