MySQL subquery is it possible?

Hello!
I’m testing power of your query engine. I tryed to write a query with a sub-query into the FORM but it looks like no effects. I made a mistake or is it impossible to do that?
SELECT *
FROM tab1 JOIN (SELECT * FROM tab2 WHERE 1) as t
WHERE 1

Otherwise I also tryed to create a variable butit gives back a syntax error:
SET @avgPrice = (SELECT AVG(price) FROM tab WHERE 1);
SELECT * , @avgPrice
FROM tab
WHERE 1

Do you suggest anything to have the same effect of sub query?
Tnk

Hi cco

I tried out a similar query to yours on the sakila db and it seemed to work for me. Can you maybe send me an application where I can reproduce your issue?

Kind regards,
Anton

Ok, sorry it was my mistake :stuck_out_tongue_closed_eyes:
Thank you for your assistance

No problem. Glad it is sorted now :smiley: