About this question
Can you provide me the some important types of tables in SQL?
Can you provide me the some important types of tables in SQL?
Log in to share your answer and help other learners.
Log in to answerBest Answer · By JanBask MS SQL Server Expert
Dhananjay Singh JanBask Expert
Answered on Dec 11, 2023
Here are the types of tables in SQL given:-
A Heap Table ( Standard Table) is a regular or day-to-day table where data is stored without any specific order. The SQL command of this is:-
CREATE TABLE Table name(
Column1 DataType,
Column2 DataType,
…
);A clustered Table is a table in which data is stored based on sorted. The command of it is
CREATE TABLE TableName (
Clustering column DataType,
Other column DataType,
…
PRIMARY KEY (clusteringcolumn));A partitioned Table Is a table that is used to improve manageability and performance. The SQL command of it is:-
CREATE TABLE TableName (
…
) PARTITION BY RANGE (PartitionColumn)(
PARTITION P1 VALUES LESS THAN (value),
PARTITION P2 VALUES LESS THAN (value),
…
);
Temporary Table is used to hold the data in temporary form. Here is the SQL command for it
CREATE TEMPORARY TABLE TableName (
…
);Materialized View is a physical table to improve the performance of the query. The command of it is
CREATE MATERIALIZED VIEW ViewName AS
SELECT columns
FROM tables
FROM conditions ;Global Temporary Table, in which the stored data is accessible to all sessions. The SQL command of it is
“CREATE GLOBAL TEMPORARY TABLE TableName (
…
);Level up your career with MSBI training & certification! Start your journey to success today. Enroll now and unleash your full potential!
Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.
Step-by-step SQL Server guides from industry experts
Common SQL Server interview questions, answered
Guides, tips and career advice on SQL Server from JanBask experts.
SQL Server Top 75 SSAS Interview Questions and Answers For Beginners & Experts
Prepare for your SSAS interview with our comprehensive guide featuring 75 top SQL Server Analysis Services interview questions…
SQL Server How to Become a SQL Database Administrator?
How to become a sql database administrator In 2025, discover what these professionals do, explore how much they earn and learn…
SQL Server OLAP vs OLTP: Key Differences, Architectures, Performance & Real-World Examples
Compare OLTP vs OLAP with clear definitions, architecture diagrams, real-world examples, and FAQs. Learn when to use each system…
SQL Server 70+ Most Asked SSIS Interview Questions for Freshers & Experienced
Prepare for your next SQL Server Integration Services (SSIS) interview with our top 70+ SSIS interview questions and answers.…