Results for "Unused Index"
47 / 47 posts
What is an Index? Explain its different types in SQL
✅ Index in SQL Server (इंडेक्स इन SQL सर्वर): Index SQL Server में एक database object (डेटाबेस ऑब्जेक्ट) है जो टेबल के डेटा को जल्दी से प्राप्त करने के लिए…
SQL Server Index Optimization Automation (Missing & Unused Index Management)
Got it! Yeh lo plain content — seedha copy karo apne blog mein. Pehle workflow diagram, phir poora blog content.Pehle workflow diagram — screenshot leke blog m…
Index Rebuilding vs. Reorganization in SQL Server
...he key contributors to performance degradation over time is index fragmentati…
Table Partitioning in SQL Server
Table Partitioning एक advanced database concept है जिसका उपयोग बड़े tables को छोटे, manageable हिस्सों (partitions) में बाँटने के लिए किया जाता है। इससे pe…
SQL Server Optimization Q&A
1. What is SQL Server Optimization? Answer: SQL Server Optimization ka matlab hota hai database ka performance better banana — jaise queries fast chalna, k…
Indexes in Data Warehouse
Database Me Data Kaise Store Hota Hai? Table ke rows disk par randomly store hote hain. Example: Row Customer_ID Sales 1 8 100 2 5 200 3 4 300 4 8 150 Agar…
Insert <br> tag in SQL text string
CREATE or ALTER FUNCTION dbo.Fn_InserBRtag(@inputString NVARCHAR(MAX)) RETURNS NVARCHAR(MAX) AS BEGIN DECLARE @resultString NVARCHAR(MAX) = ''; DECLARE @st…
Split full name into first name and last name in SQL
...rst name and last name : SELECT EmployeeName, CASE WHEN CHARINDEX(' ', EmployeeName) > 0 -- Check if there is a space (indicating…
Statistics in SQL Server
Statistics SQL Server ke “mind” jaise hote hain. Ye SQL Server ko batate hain ki table me data kis tarah se distribute hai — jaise kitne values unique hain…
Dynamic CREATE TABLE Script in SQL Server
DECLARE @TableName NVARCHAR(100) = 'Employee'; DECLARE @SQL NVARCHAR(MAX) = ''; DECLARE @PKCols NVARCHAR(MAX) = ''; -- Get Primary Key Column(s) SELECT @PK…
SQL Interview Q&A
Here are the questions along with their corresponding answers extracted from the provided context: What is SQL? SQL stands for Structured Query Language. I…
SYS and INFORMATION_SCHEMA
sys In Microsoft SQL Server, the sys schema is a special schema that contains system views and stored procedures that provide metadata about the SQL Server…
Basics of Pandas
Pandas is the most popular open-source library in the Python programming language and pandas is widely used for data science/data analysis and machine lear…
How to Two series with comma separate(any Delimiter) value split into in rows respectively
If we have two series with comma separate(any Delimiter) value and we want split into in rows, I have create function for that: IF OBJECT_ID('TF_SplitTwoSe…
Understanding SQL Query for Identifying and Analyzing Default Values and Constraint in a Database
Default constraints in SQL are used to assign a default value to a column when no value is provided during data insertion. However, managing and auditing t…
Database Shrink in SQL Server
...base file (ya log file) ke size ko chhota karna by removing unused space . Matlab, agar tumhare DB me data delete ho gaya…
Order by index number in SQL
SELECT empid, lastname FROM HR.Employees ORDER BY 1 DESC --order by first column SELECT empid, lastname FROM HR.Employees ORDER BY 2 DESC --order by second…
JSON Data – Complete Conceptual Guide (SQL Server Perspective)
🔹 JSON kya hota hai? (Quick recap) JSON (JavaScript Object Notation) ek lightweight text format hota hai data exchange ke liye. Example: { "empId…
MDF, NDF, LDF, and Filegroups
🔹 1. Filegroup kya hota hai? 🔸 Definition: Filegroup SQL Server में logical storage unit hota hai, jisme ek ya zyada data files hoti hain. Ye filegroups …
How to one series with comma separate(any Delimiter) value split into in rows
If we have one series with comma separate(any Delimiter) value and we want split into in rows, I have create function for that: IF OBJECT_ID('TF_SplitSerie…
SQL Server Administration – Management Tools Overview
Is section me hum mainly SQL Server ke management tools aur system databases ko samjhenge. SQL Server Management Tools Jab aap Microsoft SQL Server install…
Python String format()/f-string Method
Python में format() / f-string method का उपयोग Strings में वैल्यूज़ को dynamic तरीके से insert करने के लिए किया जाता है। यह एक बहुत ही powerful और readable…
List,Tuple,Set and Dictionary in Python
🔹 List (सूची) 📌 Definition : List ek aisi collection hai jo ordered (क्रमबद्ध) aur mutable (बदलने योग्य) होती है. Ismein duplicate values allowed hain. m…
SQL Server Deadlock & Performance Monitoring Made Easy
Learn how to detect SQL Server deadlocks and monitor performance with ready-to-use stored procedures for faster troubleshooting and optimization.
What are System Tables, File Tables, External Tables and Graph Tables in SQL Server
1. System Tables Definition : System tables are internal tables used by SQL Server to store information about the database and server itself. These are met…
select() Function in PySpark
...ct() function is used to select single, multiple, column by index, all columns from the list and the nested columns from a DataFrame, PySpa…
Database trigger to audit (Transaction logs) all of the DDL changes made to the Database
Create table DatabaseLog: CREATE TABLE [dbo].[DatabaseLog]( [DatabaseLogID] [int] IDENTITY(1,1) NOT NULL, [PostTime] [datetim…
Store Error Logs In SQL
Create Table for Error log: CREATE TABLE [dbo].[ErrorLog]( [ErrorLogID] [int] IDENTITY(1,1) NOT NULL, [ErrorTime] [datetime] …
SQL SQL Server Agent: Automation Ka Powerhouse in SQL ServerServer Agent
Agar aap production environment me kaam kar rahe ho, to aapko pata hoga ki kuch tasks aise hote hain jo baar-baar karne padte hain — jaise daily backup len…
Data Warehouse and Data Mining Syllabus
Yeh Data Warehouse and Data Mining ka complete syllabus list format me diya hai, bina explanation ke — sirf topics list: PART 1: Data Warehouse Syllabus Li…
substring() in PySpark
📌 What is substring() ? The substring() function in PySpark is used to extract a portion of a string from a column in a DataFrame. It is part of the PySpa…
Complex Data(StructType, ArrayType, and MapType) Types in PySpark
Great! Let’s break down PySpark's complex data types— StructType , ArrayType , and MapType —in a simple and clear way. We'll go over: What they are When to…
Data archive in SQL Server
A data archive refers to the process of moving inactive or less frequently used data from an operational system to a storage system , typically in a separa…
Python Basic
py --version python --version # \n : Newline # \t : Tab # \\ : Backslash # \" : Double quote # \' : Single quot print("Hello, World!\nThis is a new line.")…
TempDB in SQL Server
Introduction SQL Server me ek aisa database hai jo har query, har process aur almost har operation me involve hota hai. Ye ek temporary w…
SQL Server Multi-Level Approval Workflow with Auto Skip Logic
In many enterprise applications like HRMS, Travel Requests, Expense Approval, Purchase Approval , we need a multi-level approval workflow . But real system…
SQL Server Agent Alerts, Operators, Database Mail & Job Activity Monitor
Production environment me sirf jobs schedule karna hi kaafi nahi hota. Hume monitoring aur notification system bhi chahiye hota hai taaki agar koi job fail…
Natural Key vs Surrogate Key in Data Warehouse
Dimensional Modeling me ek important topic hota hai: 👉 Natural Key 👉 Surrogate Key Dono primary key ke type hain, lekin inka purpose aur usage alag hota …
Error & Exception Handling in Python
Error और Exception Handling का मतलब है — प्रोग्राम में चलने के दौरान जो गलतियाँ (errors) आती हैं, उन्हें पहचानना और उनका सही तरीके से समाधान करना, ताकि प्र…
OLTP vs OLAP: A Beginner's Guide
What is OLTP? OLTP stands for Online Transaction Processing . It is a type of database system designed to handle a large number of short, quick operations,…
⭐ Star Schema vs ❄ Snowflake Schema – Data Warehouse Modeling
⭐ Star Schema Kya Hota Hai? Star Schema ek simple aur sabse popular data warehouse model hai. Isme: Beech me hoti hai 👉 Fact Table Uske around hoti hain �…
Understanding Stored Procedures in MSSQL
What is a Stored Procedure? A stored procedure is a group of SQL statements that are compiled and saved in the database. Instead of writing the same SQL qu…
PartitionBy() in PySpark
partitionBy() एक function है जो DataFrame को disk par likhne (write) के time par use hota hai. ये function pyspark.sql.DataFrameWriter class ka part hai. �…
What is Managed and External table in Spark
In Apache Spark, both Managed and External tables are used to store the data. However, there are significant differences in how Spark manages the data for …
Spark SQL useful command
Spark SQL provides a variety of commands for managing databases, tables, and performing SQL operations. CREATE DATABASE IF NOT EXISTS demo; SHOW DATABASES;…
Master Database in SQL Server
Introduction SQL Server me agar koi ek database sabse zyada critical hai, to wo hai: Master Database Ye SQL Server ka core brain hai. Agar master database …
SQL Server System Databases
Introduction SQL Server me jab hum kaam karte hain, to generally hum tables, queries aur user databases par focus karte hain. Lekin ek hidden backbone hota…