Showing posts with label SQL. Show all posts
Showing posts with label SQL. Show all posts

How to find second highest or maximum salary of Employee in SQL - Interview question

Introduction: In this section we will write SQL query to get second highest salary of Employee. Before writing query its good to be famili...

Basic SQL Query that Frequently asked in Interview Questions

Introduction: In this article, I am giving some examples of SQL queries which is frequently asked when you go for a programming intervie...

Execute Stored Procedure from Another Stored Procedure in SQL Server

Introduction: This article explains how to call or execute one stored procedure from another stored procedure in sql server or execute s...

Insert Multiple Rows with One Insert Statement In SQL Server

Introduction: This article explains how to insert multiple rows into table with single insert query in sql server or sql server insert m...

How to Set Up Database Mail And Send An Email Notification When SQL Job Fails

Introduction: This article explains how to set notification options in SQL Server  by using SQL Server Management Studio, Transact-SQL, ...

Restore Database .bak (.mdf) File using Query or Management Studio in SQL Server

Introduction: This article explains how to write restore database in sql server from .bak or .mdf file using query or restore database b...

Difference between LINQ to SQL and Entity Framework

Introduction: LINQ to SQL allow you to query and modify SQL Server database by using LINQ syntax. Entity framework is a great ORM shipped ...

Top 10 Ways to Improve SQL Query Performance

Introduction: SQL query performance improvement is a very thought-provoking topic between developers and the user community. Users alway...

Few performance tips for faster SQL queries

Introduction: There are some good principles you can follow that should yield results in one combination or another. I've encapsulat...

Speeding up aggregates with indexed views: SQL SEVER

Introduction: Ever so often, queries include some aggregates data. In a datawarehouse environment, they are frequently used for metric a...

SQL best practices Part- II

Introduction: This article explains SQL programming guidelines and best practices on the basis of few points. 1. Know your data an...

SQL best practices Part- I

Introduction: A list of SQL best practices This article explains SQL programming guidelines and best practices we collected, keeping qu...