Useful Web Site Links for SQL Server - Prashant-kamble93/WebsiteLinks GitHub Wiki
SQL Server
SQL Server architecture :
Indexes :
-
https://www.mssqltips.com/sqlservertip/1206/understanding-sql-server-indexing/
-
https://www.sqlpassion.at/archive/2015/06/29/primary-key-vs-clustered-index/
-
https://www.codeproject.com/Articles/190263/Indexes-in-MS-SQL-Server
-
Spatial index in SQL Server :
-
Unique index in SQL Server :
-
Filtered index in SQL Server :
-
XML index in SQL Server :
-
FullText index in SQL Server :
-
Indexes with Included Columns in SQL Server :
-
Covered Indexes :
Columnstore indexes :
SQL training :
While loop :
-
https://docs.microsoft.com/en-us/sql/t-sql/language-elements/while-transact-sql
-
https://stackoverflow.com/questions/6069024/syntax-of-for-loop-in-sql-server
Offset :
Stored Procedure :
How can I join on a stored procedure?
Stored Procedure Vs Function :
Stored Procedure With Real Time Scenario In SQL Server :
Functions :
-
http://www.c-sharpcorner.com/UploadFile/b926a6/function-operation-in-sql-database/
-
http://www.c-sharpcorner.com/UploadFile/3194c4/user-defined-functions-in-sql-server/
Functions vs Procedure :
Transaction :
How-to-update-two-or-more-tables :
Can-we-create-two-tables-with-same-name :
SQL server :
Multiple foreign keys :
-
https://www.sqlservercentral.com/Forums/Topic1540629-3077-1.aspx
-
https://stackoverflow.com/questions/2865662/sql-alter-add-multiple-fks
Update multiple columns :
Update multiple rows :
ex.:
UPDATE membership_list
SET Country
= CASE ID
WHEN '1' THEN 'Antarctica'
WHEN '3' THEN 'Canada'
END
WHERE ID
IN (1,3);
Insert multiple rows :
SQL Server Pivot :
-
https://stackoverflow.com/questions/15931607/convert-rows-to-columns-using-pivot-in-sql-server
-
https://docs.microsoft.com/en-us/sql/t-sql/queries/from-using-pivot-and-unpivot?view=sql-server-2017
Unpivot :
Real-world-examples-of-3-table-joins-in-SQL :
Pivot and Unpivot :
Use Of PIVOT in SQL Server without aggregate function(Dynamic PIVOT) :
Cursor :
Window Function :
Triggers :
-
https://www.c-sharpcorner.com/UploadFile/63f5c2/triggers-in-sql-server/
-
https://www.c-sharpcorner.com/UploadFile/a53f1a/triggers-in-sql-server/
Sql joins :
How join two tables using sql without common column ?
-
https://stackoverflow.com/questions/32081224/how-join-two-tables-using-sql-without-common-column
-
https://www.codeproject.com/Questions/766095/Join-two-table-without-common-field
Difference between Inner join and Left join :
SQL server :
SQL server- why select is called DML? :
Ways Of Finding Foreign Key In SQL Server :
SQL server query questions :
Why cant i group by 1 when its ok to order by 1 :
-
https://stackoverflow.com/questions/3630949/why-cant-i-group-by-1-when-its-ok-to-order-by-1
-
https://stackoverflow.com/questions/7392730/what-does-sql-clause-group-by-1-mean
Dynamic SQL server :
Split in SQL Server :
Shortcut key for SQL Server :
Lag & Lead in SQL Server :
RDBMS vs No-Sql :
RDBMS vs No-Sql vs Columnar DB :
- http://www.rosebt.com/blog/row-vs-columnar-vs-nosql-databases
- https://www.dbbest.com/blog/nosql-vs-row-vs-column/
Pages and Extents in SQL Server :
Heaps in SQL Server :
Fill factor in SQL Server :
DMV in SQL Server :
Pages in SQL Server : https://stackoverflow.com/questions/4657648/what-is-a-page-in-sql-server-and-do-i-need-to-worry
Execution sequence in SQL Server :
Indexed views :
Materialized View :
-
https://docs.microsoft.com/en-us/azure/architecture/patterns/materialized-view
-
http://aboutsqlserver.com/2011/03/24/indexed-materialized-views-in-microsoft-sql-server/
SQL Server Execution Plan :
Logical joins vs Physical joins :
Joins in SQL Server :
- Logical joins :
-
Physical joins :
- Nested loop join :
- Merge join :
- Hash join :
Nested loop,Merge and Hash join :
-
http://www.sqlserverblogforum.com/2011/10/merge-join-vs-hash-join-vs-nested-loop-join/
-
http://www.sqlrelease.com/nested-loop-merge-and-hash-joins-in-sql-server
Insert multiple records :
View in SQL Server :
-
https://www.c-sharpcorner.com/UploadFile/63f5c2/view-in-sql-server/
-
https://www.c-sharpcorner.com/article/concept-of-views-in-sql-server/
Covering Index :
Scenario based Questions and queries :
-
http://www.sqlscientist.com/2014/03/sql-server-interview-questions.html
-
https://www.c-sharpcorner.com/blogs/a-scenario-based-sql-interview-queries-test-modeltraining
Complex queries :
-
http://www.bullraider.com/database/sql-tutorial/7-complex-queries-in-sql
-
https://www.c-sharpcorner.com/article/50-important-queries-in-sql-server/
Sql server arithmetic operators :
Try-Catch :
Row_Number :
-
https://docs.microsoft.com/en-us/sql/t-sql/functions/row-number-transact-sql?view=sql-server-2017
-
https://www.c-sharpcorner.com/UploadFile/b1df45/row-number-function-in-sql-server/
IIF Function :
Assign variable :
CTE [Common Table Expression] :
-
https://www.c-sharpcorner.com/UploadFile/ff2f08/common-table-expression-cte-in-sql-server/
-
https://www.c-sharpcorner.com/UploadFile/b5eb6a/common-table-expression-in-sql-server/
Difference between CTE and View - SQL :
Online SQL Server :
Regex in SQL Server :
Array in SQL Server :
ACID Properties :
Split Function :
SQL Server Tips and Tricks :
Employee Table Structure and Schema :
Sample Databases :
How does Google query an index of seemingly billions of web pages in a fraction of a second to produce a search result? :
Reverse String :
Types Keys :
Change Data Capture :
Store multiple values in Variable :
-
https://stackoverflow.com/questions/17745421/sql-server-store-multiple-values-in-sql-variable
ex. declare @caroptions table ( car varchar(1000) )
insert into @caroptions values ('BMW') insert into @caroptions values ('Toyota') insert into @caroptions values ('Nissan')
select * from @caroptions
Declare @a varchar(max)
select @a=stuff( (select ','+car from @caroptions for xml path('')),1,1,'' ) select @a
Convert rows into comma separated values in a column :
Converting row values in a table to a single concatenated string : *https://www.sqlmatters.com/Articles/Converting%20row%20values%20in%20a%20table%20to%20a%20single%20concatenated%20string.aspx
How Stuff and 'For Xml Path' work in Sql Server :
-
https://stackoverflow.com/questions/31211506/how-stuff-and-for-xml-path-work-in-sql-server
-
http://www.venkateswarlu.co.in/SQLServer/STUFF_AND_FOR_XML_PATH_for_String_Concatenation.aspx
Merge :
-
https://www.red-gate.com/simple-talk/sql/learn-sql-server/the-merge-statement-in-sql-server-2008/
-
https://docs.microsoft.com/en-us/sql/t-sql/statements/merge-transact-sql?view=sql-server-2017
Khan Academy(SQL Server Tutorial) :
Difference Between Row_Number() Rank() And Dense_Rank() :
-
https://www.c-sharpcorner.com/UploadFile/85ed7a/difference-between-rownumber-rank-and-denserank-in/
-
http://www.madeiradata.com/difference-between-row-number-rank-dense-rank-ntile/
Ranking Function:
-
https://www.tutorialgateway.org/ranking-functions-in-sql-server/
- Rank :
- Dense_Rank :
- NTILE Function :
- ROW_NUMBER :
Percentile_cont vs Percentile_disc :
SQL queries to manage hierarchical or parent-child relational rows :
Hierarchical Query using a Recursive CTE :
Create a table structure in SQL without using the create command :
Order Of Execution Of An SQL Query :
sp_who (SQL Server) :
sp_who2 (SQL Server) :
SQL Server SPID – What is it? :
Troubleshooting SQL Server Slowness :
Blocking Processes (lead blocker) :
Differences Among CTE, Derived Table, Temp Table, Sub Query And Temp Variable :
DBCC INPUTBUFFER :
Deadlock(SQL Server) :
CASE WHEN statement for ORDER BY clause :
DDL, DML, DQL, DCL, TCL(SQL Server) :
Generate XML Using FOR XML(SQL Server) :
Index Seek vs Index Scan :
Surrogate Key in SQL Server :
What is the difference between a primary key and a surrogate key? :
Using the SQL Server MERGE Statement to Process Type 2 Slowly Changing Dimensions :
SQL Server Clustered Index Behavior Explained via Execution Plans :
Difference Between Union and Union All :
RAISERROR(SQL Server) :
STRING_ESCAPE :
- https://docs.microsoft.com/en-us/sql/t-sql/functions/string-escape-transact-sql?view=sql-server-2017
Choose function :
SQL Server Scenarios :
-
http://www.techbrothersit.com/search/label/SQL%20Server%202016
-
https://www.c-sharpcorner.com/blogs/a-scenario-based-sql-interview-queries-test-modeltraining
Rapidly changing dimension[RDC] :
EMP and DEPT table script :
-
https://arjunjune.wordpress.com/2013/01/15/emp-and-dept-table-script-sql-server/
-
https://www.encodedna.com/2012/12/create-dummy-database-tables.htm
Customer table script :
Data Types(SQL Server) :
CAST() vs TRY_CAST in SQL Server :
CONVERT() vs TRY_CONVERT in SQL Server :
45 Essential SQL Interview Questions(SQL Server) :
Database Schemas(SQL Server) :
What is the importance of schema in sql server?
SQL Server Index Architecture and Design Guide :
The Search Tree (B-Tree) Makes the Index Fast :
AdventureWorks - tables information(SQL Server) :
Adventureworks Sample Database(BI/SQL Server) :
Merge Replication(SQL Server/BI) :
NEWID(SQL Server) :
Differences Among CTE, Derived Table, Temp Table, Sub Query And Temp Variable :
Generate dataset for sql server :
Surrogate Key vs Natural Key Differences and When to Use in SQL Server :
Using DATEADD, DATEDIFF and DATEPART T-SQL Functions in Simple Terms :
How can I select the first day of a month in SQL :
SQL SERVER – Query to Find First and Last Day of Current Month – Date Function :
SQL Query to find the last day of the month :
Calculate fiscal year in sql select statement?
What is the difference between the IN operator and = operator in SQL?