" DUAL " KEYWORD IN SQL SERVER / ORACLE
What is DUAL in Oracle? Dual is a table that is created by Oracle together with data dictionary. It consists of exactly one column named “dummy”, and one record. The value of that record is X. You can check the content of the DUAL table using the following syntax. SELECT * FROM dual It will return only one record with the value ‘X’. What is the reason for following error in SQL Server? Msg 208, Level 16, State 1, Line 1 Invalid object name ‘dual’. The reason behind the error shown above is your attempt to SELECT values from DUAL table in SQL Server. This table does not exist in SQL Server. Continue reading for workaround. What is the Equivalent of DUAL in SQL Server to get current datetime? Oracle: select sysdate from dual SQL Server: SELECT GETDATE() What is the equivalent of DUAL in SQL Server? None. There is no need of Dual table in SQL Server at all. Oracle: select ‘something’ from dual SQL Server: SELECT ‘something’ I have to ha...