In this post I will talk about the top 10 most asked interview queries questions into the interview room from the SQL Developer/DotNet Developer it is also important for the experienced candidates.
First I'm going to create a database and tables then insert some data into database tables to perform actions.
Let's see one by one...
Step 1
Here I'm creating a database with InterviewPoint as the database name
Check all the questions in the video here for your reference.
Check all the questions in the video here for your reference.
- Create Database InterviewPoint
- Use InterviewPoint
Step 2
Create required tables,
- Create table State(Id int primary key identity(1,1), Name varchar(50))
- Create table City(Id int primary key identity(1,1), Name varchar(50), StateId int foreign key references State(Id))
- Create table Employee(Id int Primary key identity(1,1), Name varchar(50), Email varchar(50) Unique, Mobile varchar(10), Salary decimal(10,2), Department Varchar(50), CityId int foreign key references City(Id), StateId int foreign key references State(Id))
Step 3
Insert data into created database tables,
- --Insert Data into State table----
- Insert into State(Name)Values('Delhi')
- Insert into State(Name)Values('U.P.')
- Insert into State(Name)Values('Maharastra')
- Insert into State(Name)Values('M.P.')
- --Insert data into City Table--
- Insert into City(Name, StateId)Values('New Delhi',1)
- Insert into City(Name, StateId)Values('Agra',2)
- Insert into City(Name, StateId)Values('Lucknow',2)
- Insert into City(Name, StateId)Values('Noida',2)
- Insert into City(Name, StateId)Values('Mumbai',3)
- Insert into City(Name, StateId)Values('Pune',3)
- Insert into City(Name, StateId)Values('Bhopal',4)
- Insert into City(Name, StateId)Values('Indore',4)
- --Insert data into Employee table
- Insert into Employee(Name,Email, Mobile, Salary,Department, CityId, StateId) Values('John','[email protected]', '9988778899', 35000, 'DotNet', 1, 1)
- Insert into Employee(Name,Email, Mobile, Salary,Department, CityId, StateId) Values('Peter','[email protected]', '9988778800', 40000, 'Android', 1, 1)
- Insert into Employee(Name,Email, Mobile, Salary,Department, CityId, StateId) Values('Mohan','[email protected]', '9988778888', 25000, 'Java', 2, 2)
- Insert into Employee(Name,Email, Mobile, Salary,Department, CityId, StateId) Values('Sohan','[email protected]', '9988778855', 80000, 'DotNet', 1, 1)
- Insert into Employee(Name,Email, Mobile, Salary,Department, CityId, StateId) Values('Ram','[email protected]', '9988777700', 35000, 'Android', 2, 2)
- Insert into Employee(Name,Email, Mobile, Salary,Department, CityId, StateId) Values('Ajay','[email protected]', '9988778811', 50000, 'DotNet', 3, 2)
- Insert into Employee(Name,Email, Mobile, Salary,Department, CityId, StateId) Values('Sumit','[email protected]', '7588778899', 35000, 'Python', 2, 2)
- Insert into Employee(Name,Email, Mobile, Salary,Department, CityId, StateId) Values('Martin','[email protected]', '9011778899', 75000, 'DotNet', 6, 3)
- Insert into Employee(Name,Email, Mobile, Salary,Department, CityId, StateId) Values('Sanjay','[email protected]', '9888778899', 35000, 'Java', 2, 2)
- Insert into Employee(Name,Email, Mobile, Salary,Department, CityId, StateId) Values('Rohit','[email protected]', '9088778899', 45000, 'DotNet', 1, 1)
- Insert into Employee(Name,Email, Mobile, Salary,Department, CityId, StateId) Values('Mukesh','[email protected]', '9500778899', 65000, 'Android', 7, 4)

Satish VishwakarmaPosted Aug 5, 2020, 1:41 AM
Its very helpfull...please post more article like this..
Pankajkumar PatelPosted Oct 22, 2019, 11:07 PM
Nice article
Sourav Kumar DasPosted Oct 22, 2019, 12:24 AM
Superb Article.