Which entity set operator should you use?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
The application connects to a Microsoft SQL Server database. You use Entity SQL to retrieve data from the database.
You need to find out whether a collection is empty. Which entity set operator should you use?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
The application connects to a Microsoft SQL Server database. You use Entity SQL to retrieve data from the database.
You need to find out whether a collection is empty. Which entity set operator should you use?

A.
ANYELEMENT

B.
EXCEPT

C.
EXISTS

D.
IN

Explanation:
EXISTS Determines if a collection is empty.

Entity SQL Reference
(http://msdn.microsoft.com/en-us/library/bb387118.aspx)



Leave a Reply 0

Your email address will not be published. Required fields are marked *