Raymond Raymond | Code Snippets & Tips

Select from dual in T-SQL / SQL Server

event 2019-11-18 visibility 1,244 comment 0 insights toc
insights Stats
toc Table of contents

In Oracle database, you can select from dual table if you only want to return a one row result set. In many other databases, the query engine supports select directly from constant values without specifying a table name. 

In SQL Server, you can directly select values without specifying a table name. 

Code snippet

More from Kontext
comment Comments
No comments yet.

Please log in or register to comment.

account_circle Log in person_add Register

Log in with external accounts