C# (Csharp) And SQL Interview Question :- What Is The Difference Between Unique Key And Primary Key?


See our other Step by Step video series below :-
Learn SQL Server Step by Step in 16 hours:-
Learn MSBI Step by Step in 32 hours:-
Learn C# Step by Step in 100 hours :-
Learn MVC 5 Step by Step in 16 hours:-
Learn MVC Core (MVC 6) Step by Step :-
Learn Angular1.x Step by Step in 8 hours :-
Learn Angular 2.0 Step by Step in 8 hours:-
Learn Xamarin Mobile Programming Step by Step :-
Learn Design Pattern Step by Step in 8 hours:-
Learn Javascript in 2 hours :-
Learn SharePoint Step by Step in 8 hours:-
Learn TypeScript in 45 Minutes :-
Learn Visual Studio code in 10 steps for beginners:-
Learn Tableau step by step :-

Unique key can have nulls
Primary key cannot have nulls.
In a single table we can create multiple unique keys.In a single table we can have only one primary key.
=============================================
Unique key creates a non-clustered index by default.Primary Key created a clustered index by default.
================================================
Both unique keys and primary keys can be referenced by foreign key.
For more such videos visit

We are also distributing a 100 page Ebook “Sql Server Interview Questions “. If you want this ebook please share this video in your facebook/twitter/linkedin account and email us on questpond@questpond.com with the shared link and we will email you the PDF.

Buy Questpond videos on discount –