Tag - SQL Query Examples

SQL

How to Use SQL ‘Order By’ Clause

In this tutorial, we’ll learn How to use order by clause in SQL. Order by clause is used to sort the fetched data either in ascending or descending order. When we execute our select statement we get unsorted results as our...

SQL

How to Use SQL SELECT Statement

SQL Code: Transact-SQL SELECT column1, column2, ... FROM table_name; SELECT * FROM Table_Name /* Select all columns from Table */ SELECT TOP 10 FROM Table_Name /* Select top 10 Result */ 12345678  SELECT column1, column2, ...

SQL

SQL Queries Examples With Answers

This article will cover all Microsoft SQL server interview questions from basic to advanced level. Before starting let’s create and populate tblstudent and tblScholarship table using following...

SQL

Trigger Examples in SQL

In this tutorial i’ll create SQL trigger examples. This examples will help you to learn how to write triggers. If you didn’t download the database you can download from here.   Examples Example 1: Trigger prevents the...