项目作者: teja-goud-kandula

项目描述 :
Mastering SQL using SQL Server
高级语言: TSQL
项目地址: git://github.com/teja-goud-kandula/Mastering-SQL.git
创建时间: 2021-08-12T17:27:27Z
项目社区:https://github.com/teja-goud-kandula/Mastering-SQL

开源协议:

下载


Mastering-SQL

This repo is built one step at a time and helps one Master SQL.

How to use this repository

SQL Server objects

Different ways to replace NULLS in SQL Server

Three ways to replace NULL values

  1. ISNULL() function
  2. CASE statement
  3. COALESCE() statement

Control Flow in SQL Server

System variables

Data types

Built in FUNCTIONS in SQL Server

Mathematical functions in SQL Server

  • ABS

    Date functions in SQL Server

String functions in SQL Server

Aggregate Functions in SQL Server

  • AVG
  • MIN
  • MAX
  • SUM
  • COUNT

CTE (Common Table Expression)

Non-Recursive CTE

  • Simple CTE
  • Multiple CTE

Recursive CTE

  • Recursive CTE

Other functions in SQL Server

ERROR FUNCTIONS in SQL Server

  • ERROR_NUMBER
  • ERROR_STATE
  • ERROR_SEVERITY
  • ERROR_LINE
  • ERROR_PROCEDURE
  • ERROR_MESSAGE

Intersect

Questions and answers

Hacker Rank

The concept required to solve this question is that the JOIN condition is to be applied using BETWEEN clause.

The concept required to solve this question is that we need to use the same table twice in order to JOIN in 2 instances. Table Placements is used as P1 and P2, this will create 2 different instances of the same table.

Interview Questions