adplus-dvertising
frame-decoration

Question

Query alternative to the following SQL code in LINQ is ____________
SELECT TOP 10 UPPER (c1.Name)
FROM Customer c1
WHERE
   c1.Name LIKE 'A%'
   AND c1.ID NOT IN
   (
      SELECT TOP 20 c2.ID
      FROM Customer c2
      WHERE c2.Name LIKE 'A%'
      ORDER BY c2.Name
   ) 
ORDER BY c1.Name

a.

var query =
FROM c IN db.Customers
WHERE c.Name.EndsWith ("A")
orderby c.Name
SELECT c.Name.ToUpper();
var thirdPage = query.Skip(20).Take(10);

b.

var query =
FROM c IN db.Customers
WHERE c.Name.StartsWith ("65")
orderby c.Name
SELECT c.Name.ToUpper();
var thirdPage = query.Skip(20).Take(10);

c.

var query =
FROM c IN db.Customers
WHERE c.Name.StartsWith ("A")
orderby c.Name
SELECT c.Name.ToUpper();
var thirdPage = query.Skip(20).Take(10);

d.

var query =
FROM c IN db.Customers
WHERE c.Name.StartsWith ("A")
orderby c.Name
SELECT c.Name.ToLower();
var thirdPage = query.Skip(20).Take(10);

Posted under SQL Server

Answer: (c).var query =
FROM c IN db.Customers
WHERE c.Name.StartsWith ("A")
orderby c.Name
SELECT c.Name.ToUpper();
var thirdPage = query.Skip(20).Take(10);

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Query alternative to the following SQL code in LINQ is ____________

Similar Questions

Discover Related MCQs

Q. Point out the correct statement.

Q. LINQ query to retrieve a selection of customers, each with their high-value purchases is _____________

Q. LINQ Query to list all purchases of $1000 or greater made by customers who live in Washington.

Q. Point out the wrong statement.

Q. Which of the following sample code is used to select data Using LinQ To SQL?

Q. Which of the following code snippet would traverse through all result objects ?

Q. LINQ to SQL is considered to be one of Microsoft’s _______ products.

Q. LINQ to SQL in SQL Server fully supports ____________

Q. Point out the wrong statement.

Q. LINQ to Entities applications requires __________ mapping provider.

Q. The ______ pre-compiler translates embedded SQL into calls to the Oracle runtime library.

Q. Point out the correct statement.

Q. DataContext object is constructed in LINQ to SQL using _____________

Q. Which of the following code will retrieve all products in the Beverages category sorted by product name?

Q. Which of the following sample code is used to retrieve single row at a time?

Q. Which of the following method is used to delete records in LINQ?

Q. Which of the following code in LINQ performs functionality similar to joins in SQL?

Q. Service broker was added to SQL Server ___________

Q. Point out the correct statement.

Q. There are _________ components of the Service broker in SQL Server.