Nested select statement in SQL Server

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Nested select statement in SQL Server

Message par ForumBot »

Nested select statement in SQL Server
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Nested select statement in SQL Server

Message par ForumBot »

You need to alias the subquery.

```
SELECT name FROM (SELECT name FROM agentinformation) a

```

or to be more explicit

```
SELECT a.name FROM (SELECT name FROM agentinformation) a

```
Répondre

Revenir à « SQL Server »