Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is inline query? can anyone define with a concise and clear Example?

The idea i have is that inline query is -> query within query .. is that right?

and this exists in sql server DB or DB query like in stored procedures we write or may relate to c# code and how we write it in c#?? These are two things i am not clear about..!

like image 463
Anam Azam Khan Avatar asked Dec 21 '25 09:12

Anam Azam Khan


1 Answers

An inline query is a type of sub-query present in FROM clause of a SQL as a data source.

Below is the type of sub-query:

If it present in the SELECT list, it is called “sub-select”.

If it present in the FROM clause, it is called “inline-query” or “inline-view”.

If it present in WHERE clause, it may be simple sub-query or “co-related sub-query”.

Hope this help.

like image 77
QMaster Avatar answered Dec 24 '25 00:12

QMaster



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!