SQL TUTORIAL IN HINDI PART 3: Data types in SQL Server and How do you create a table in SQL Server?

Опубликовано: 03 Июнь 2026
на канале: BECOME SOFTWARE ENGINEER
51
4

Welcome to SSMS Part 3 of our complete SQL Server tutorial series! with ‪@TechDataWithAnuj‬ 🚀

In this video, you will learn:
✔ SQL Server data types explained (int, varchar, datetime, float, etc.)
✔ How to create a table in SQL Server step by step
✔ Best practices for choosing the right data types in SQL
✔ Practical SQL Server Management Studio (SSMS) demo with examples

By the end of this tutorial, you’ll be able to confidently design and create tables in SQL Server using the right data types. This is a must-watch for beginners, database administrators, data engineers, and anyone preparing for SQL interviews.

📌 Don’t forget to watch:
   • SQL TUTORIAL IN HINDI PART 1: Connect SQL ...  
   • SQL TUTORIAL IN HINDI  PART 2: Create a ne...  

Video Content:
Data Type:
In SQL Server, a data type is an attribute that specifies what kind of data a column or variable can hold. It defines the nature and size of data that can be stored, such as integers, text, dates, or binary values.
Choosing the correct data type for a column is important for ensuring data integrity, efficient storage, and optimal performance in the database.
Data types in SQL Server are categorized into the following groups:

Exact Numerics: For whole numbers or numbers with fixed precision (e.g., INT, BIGINT, DECIMAL).
Approximate Numerics: For floating point numbers like FLOAT and REAL.
Date and Time: For date and time values (e.g., DATE, DATETIME, TIME).
Character Strings: For non-Unicode text data (e.g., CHAR, VARCHAR).
Unicode Character Strings: For Unicode text data (e.g., NCHAR, NVARCHAR).
Binary Strings: For binary data (e.g., BINARY, VARBINARY).
Other Types: Various other data types like XML, UNIQUEIDENTIFIER, SQL_VARIANT, and spatial types like GEOGRAPHY and GEOMETRY.

To create a table in SQL Server, use the CREATE TABLE statement with the table name, column names, data types, and optional constraints such as NOT NULL or PRIMARY KEY.
Basic Syntax:
CREATE TABLE [schema_name].[table_name] (
column_name1 data_type [NULL | NOT NULL] [constraint],
column_name2 data_type [NULL | NOT NULL] [constraint],
...
);

Key Point:
schema_name. is optional, default is dbo.
List each column with its data type.
Specify if a column allows or disallows null values.
Add constraints like PRIMARY KEY or UNIQUE as needed.



👉 If you find this video helpful, please Like, Share, and Subscribe to support the channel.
🔔 Hit the bell icon so you never miss a SQL Server tutorial!