Where clause in MS SQL Server Last Updated : 09 Jun, 2020 Comments Improve Suggest changes Like Article Like Report In this article, where clause will be discussed alongside example. Introduction : To extract the data at times, we need a particular conditions to satisfy. 'where' is a clause used to write the condition in the query. Syntax : select select_list from table_name where condition A example is given below for better clarification - Example : Sample table: Student Roll number Name Course 111 Riya CSE 112 Apoorva ECE 113 Mina Mech 114 Rita Biotechnology 115 Veena Chemical 116 Deepa EEE If a user wants to extract the name of the student who is pursuing Mechanical, the query is as follows: select name from student where course='Mechanical' The output is - Name Course Mina Mech 'where' condition filters only the rows that are evaluated to true. If the condition evaluates to false or unknown, the rows will not be filtered causing an error. Comment More infoAdvertise with us Next Article Where clause in MS SQL Server M mangalgiaishwarya2 Follow Improve Article Tags : DBMS SQL DBMS-SQL SQL-Server Similar Reads SQL | WHERE Clause The SQL WHERE clause allows filtering of records in queries. Whether you are retrieving data, updating records, or deleting entries from a database, the WHERE clause plays an important role in defining which rows will be affected by the query. Without WHERE clause, SQL queries would return all rows 4 min read Having vs Where Clause in SQL In SQL, filtering data is important for extracting meaningful insights from large datasets. While both the WHERE and HAVING clauses allow us to filter data, they serve distinct purposes and operate at different stages of the query execution process. Understanding the difference between these clauses 4 min read Joins in MS SQL Server A database comprises tables and each table in case of RDBMS is called a relation. Let us consider a sample database named University and it has two tables named Student and Marks. If a user wants to transfer a certain set of rows, insert into select statement is used along with the query. But if a u 2 min read List All Databases in SQL Server In SQL Server, databases are crucial for storing and managing data efficiently. Whether we are managing a large enterprise system or a small application, understanding how to list all the databases on our SQL Server is essential. In this article, we will write SQL queries that help us to retrieve al 3 min read Insert Statement in MS SQL Server The SQL Server INSERT statement is a fundamental command used to add new rows of data to a table. Whether we are inserting specific values, utilizing default values or copying data from another table.In this guide, weâll explore various ways to use the Insert statement in MS SQL Server with the help 4 min read Like