Is there a way to write select statement within select statement?