Coder Baba
2.41K subscribers
1.01K photos
23 videos
722 files
723 links
Everything about programming for beginners.
1 and only official telegram channel of CODERBABA India.

Content:
.NET Developer,
Programming (ASP. NET, VB. NET, C#, SQL Server),
& Projects
follow me https://linktr.ee/coderbaba
*Programming
*Coding
*Note
Download Telegram
🎯Important SQL Interview Question:

πŸ”°Q. What are the different types of indexes?
Ans:
βœ…An index is a performance tuning method of allowing faster retrieval of
records from the table. An index creates an entry for each value and makes
it faster to retrieve data.
There are three types of indexes:
1️⃣Unique Index: This indexing does not allow the field to have duplicate
values if the column is unique indexed. Unique index can be applied
automatically when primary key is defined.
2️⃣Clustered Index: This type of index reorders the physical order of the
table and search based on the key values. Each table can have only one
clustered index.
3️⃣Non-Clustered Index: Non-Clustered Index does not alter the physical
order of the table and maintains logical order of data. Each table can
have 999 nonclustered indexes.



πŸ”°Q.What is a cursor in SQL?
βœ…A database Cursor is a control which enables traversal over the rows or
records in the table. This can be viewed as a pointer to one row in a set of
rows. Cursor is very much useful for traversing such as for retrieval, addition
and removal of database records.

πŸ”°Q.What is a trigger?
βœ…A DB trigger is a code or programs that automatically execute with response
to some event on a table or view in a database. Mainly, trigger helps to
maintain the integrity of the database.
Example: When a new student is added to the student database, new
records should be created in the related tables such as the Exam, Score and
Attendance tables.

πŸ”°What are constraints?
βœ…Constraint can be used to specify the limit on the data type of table.
Constraint can be specified while creating or altering the table statement.

πŸ”°Q. What is data integrity?
βœ…Data Integrity defines the accuracy and consistency of data stored in a
database. It can also define integrity constraints to enforce business rules
on the data when it is entered into the application or database.

πŸ”°Q What is auto increment?
βœ…Auto increment keyword allows the user to create a unique number to be
generated when a new record is inserted into the table. AUTO INCREMENT
keyword can be used in Oracle and IDENTITY keyword can be used in SQL
SERVER.

πŸ”°Q. What is a data warehouse?
βœ…Data warehouses are a central repository of data from multiple sources of
information. This data is consolidated, transformed and made available for
the mining and online processing. Warehouse data have subsets of data
called Data Marts.

πŸ”°Q. What is the difference between DROP and TRUNCATE statements?
βœ…TRUNCATE removes all the rows from the table, and it cannot be rolled
back. DROP command removes a table from the database and operation
cannot be rolled back.

πŸ”°Q. What are aggregate and scalar functions?
βœ…Functions are methods used to perform data operations. SQL has many inbuilt functions used to perform string concatenations, mathematical
calculations etc.

SQL functions are categorized into the following two categories:
Aggregate Functions and Scalar Functions.

Aggregate SQL Functions-
The Aggregate Functions in SQL perform calculations on a group of values
and then return a single value. Following are a few of the most commonly
used Aggregate
SUM(), COUNT(), AVG(), MIN(), MAX(), FIRST() & LAST()

The Scalar Functions- in SQL are used to return a single value from the given
input value. Following are a few of the most commonly used Scalar
LCASE(), UCASE(), LEN(), MID(), ROUND(), NOW(), FORMAT()

πŸ”°Q.What is alias in SQL?
βœ…SQL aliases are used to give a table, or a column in a table, a temporary
name. Aliases are often used to make column names more readable. An
alias only exists for the duration of that query. An alias is created with the
AS keyword

Follow for more @Coder_Baba
#Coderbaba #CSharpTutorials #SQL
πŸ“£ New Video Alert! πŸŽ₯

Hey awesome coder family! 🌟

I've just released a new video on YouTube all about "What is Delegate in C#". Dive into the world of C# and understand the power and usage of Delegates with a practical example. πŸ› 

πŸ‘‰ [Watch Now] https://youtu.be/FUbI7zs166I

Don't forget to Follow and Subscribe to my YouTube channel coderbaba for more insightful tutorials! πŸ“Ί

Stay updated with the latest tech tutorials and tips by following my Telegram channel @coder_baba πŸ“²

#coderbaba #coder_baba #delegate #csharpcoding
#CSharpTutorial #DelegatesInCSharp #CoderBaba #TechTutorials #LearnCSharp
πŸ‘2