---
title: "Why select clause comes after from clause?"  
description: "Why select clause comes after from clause?"  
author: "Anonymous User"  
published: 2011-07-26  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/1123/why-select-clause-comes-after-from-clause  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Why select clause comes after from clause?

The reason is, LINQ is used with C# or other programming languages, which requires all the variables to be declared first. From clause of LINQ query just defines the range or conditions to select records. So that’s why from clause must appear before Select in LINQ. \

## Answers

### Answer by Anonymous User

The reason is, LINQ is used with C# or other programming languages, which requires all the variables to be declared first. From clause of LINQ query just defines the range or conditions to select records. So that’s why from clause must appear before Select in LINQ. \


---

Original Source: https://www.mindstick.com/interview/1123/why-select-clause-comes-after-from-clause

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
