Skip to content
Home » SQL interview Question and Answer

SQL interview Question and Answer

HackerRank SQL interview Question- Occupations

HackerRank SQL Interview Question: Level Medium Source: HackerRank Pivot the Occupation column in OCCUPATIONS so that each Name is sorted alphabetically and displayed underneath its corresponding Occupation. The output column headers… Read More »HackerRank SQL interview Question- Occupations

Loading

SQL Server Cross Apply and Outer Apply

SQL Server Cross Apply and Outer Apply

SQL Server APPLY operator is like a SQL JOINS, which allows joining two table expressions, but the Difference between APPLY operator and JOINS is the ability of APPLY operator to work with table- valued expression.

Loading

SQL SERVER IF..ELSE

SQL Server IF..ELSE block is a control-of-flow that allows you to execute or skip a statement block based on a specified condition.  

SYNTAX

IF Boolean_expression
{ sql_statement | statement_block }
[ ELSE { sql_statement | statement_block } ]  

SYNTAX

IF Boolean_expression
{ sql_statement | statement_block }
[ ELSE { sql_statement | statement_block } ]

Loading