1.

______________ functionreturns current date and time.(a) SET DATEFIRST(b) SYSDATETIME(c) Cert_ID(d) GETDATEThe question was asked by my college professor while I was bunking the class.The query is from Builtin Functions in section Laying the Foundation of SQL Server

Answer»

The correct option is (d) GETDATE

The explanation is: GETDATE function is used to obtain the current system DATE and TIME. ALTHOUGH GETDATE doesn’t have any input parameters, you still NEED to include the parentheses in your code because that’s how SQL SERVER typically identifies functions.



Discussion

No Comment Found

Related InterviewSolutions