Results for "postgresql"

20 / 184 posts

What is the difference between DELETE and TRUNCATE statements in SQL?

--What is the difference between DELETE and TRUNCATE statements in SQL? --DELETE and TRUNCATE are both SQL commands that can be used to remove data from a …

database mysql postgresql
Mar 19, 2026 2 min read

How to comma separate value by using XML in SQL server

Before SQL Server 2017 (14.x), you can achieve the comma-separated values using the XML method. Here's an example of how you can achieve this: DECLARE @Sta…

database mysql postgresql
Mar 19, 2026 2 min read

Added columns in a table by dynamic ways

IF OBJECT_ID('AddedDynamicColumn','P') IS NOT NULL BEGIN DROP PROC AddedDynamicColumn END GO CREATE PROCEDURE AddedDynamicColumn AS BEGIN SELECT ED.empid,E…

database mysql pivot
Mar 19, 2026 5 min read

How to get first date of given date or month.

Get First date of month: SELECT DATEFROMPARTS(YEAR(GETDATE()), MONTH(GETDATE()), 1) AS FirstDayOfCurrentMonth Create function for that IF NOT EXISTS (SELEC…

database mysql pivot
Mar 19, 2026 1 min read

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…

comma saparate database mysql
Mar 19, 2026 1 min read

What is an Index? Explain its different types in SQL

✅ Index in SQL Server (इंडेक्स इन SQL सर्वर): Index SQL Server में एक database object (डेटाबेस ऑब्जेक्ट) है जो टेबल के डेटा को जल्दी से प्राप्त करने के लिए…

database Index mysql
Mar 19, 2026 9 min read

SQL Server Data type

SQL Server provides a variety of data types to store different kinds of data efficiently. Here are some commonly used SQL Server data types: CHAR(size): A …

comma saparate database Datatype
Mar 19, 2026 4 min read

WAITFOR in sql server

The WAITFOR statement in SQL Server is used to introduce a delay or wait period in the execution of a batch, transaction, or query. WAITFOR DELAY '00:00:05…

comma saparate database pivot
Mar 19, 2026 1 min read

What are Constraints in SQL?

SQL में constraints डेटाबेस टेबल में डेटा को सुरक्षित और सही बनाए रखने के लिए उपयोग किए जाते हैं। ये टेबल में डेटा की वैधता (validity) और अखंडता (integrity…

azure comma saparate Constraints
Mar 19, 2026 3 min read

ANY and ALL operators used in SQL

The ANY operator: returns a boolean value as a result returns TRUE if any of the sub-query values meet the condition Any means that the condition will be t…

comma saparate database mysql
Mar 19, 2026 1 min read

Logical Query Processing Phases in SQL

SQL query processing consists of several logical phases, which describe the order in which SQL statements are evaluated. These phases help in understanding…

database mysql oracle
Mar 19, 2026 3 min read

Filtering the data with TOP and OFFSET-FETCH In SQL

TOP: SELECT TOP (5) productid, unitprice FROM Production.Products WHERE categoryid = 1 ORDER BY unitprice DESC; SELECT TOP (5) WITH TIES productid, unitpri…

database mysql OFFSET-FETCH
Mar 19, 2026 3 min read

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…

br comma saparate mysql
Mar 19, 2026 1 min read

What is Power BI

Power BI is a suite of business analytics tools developed by Microsoft that allows you to visualize and share insights from your data. Power BI consists of…

business-intelligence comma saparate data-visualization
Mar 19, 2026 2 min read

Databricks widgets

Input widgets allow you to add parameters to your notebooks and dashboards. You can add a widget from the Databricks UI or using the widget API.&nbsp; If y…

comma saparate database Dropdown
Mar 19, 2026 1 min read

What is the Replication in MS SQL server

Replication is a way to copy data from one database to another and keep them in sync. This is useful when you want the same data available in multiple plac…

database oracle postgresql
Mar 19, 2026 2 min read

The ALTER TABLE statement in Microsoft SQL Server (MSSQL) and PostgreSQL

The ALTER TABLE statement in Microsoft SQL Server (MSSQL) and PostgreSQL is used to modify the structure of an existing table. It allows you to: Add, drop,…

The ALTER TABLE Statement SQL
Mar 19, 2026 2 min read

Comparison of WHERE Clause Operators in MSSQL vs PostgreSQL

Here's a comparison of how operators in the WHERE clause are used in Microsoft SQL Server (MSSQL) vs PostgreSQL : Operator Purpose Used in MSSQL Used in Po…

Case Sensitive Search Data Engineering database
Mar 19, 2026 2 min read

Understanding Data Types and Variables in MSSQL vs PostgreSQL

📊 Data Types Comparison Table 🚩 Category 🟦 MSSQL 🟨 PostgreSQL Integer Types INT , BIGINT , SMALLINT INTEGER , BIGINT , SMALLINT , SERIAL Decimal Types …

Data Types Identity RETURNING id
Mar 19, 2026 2 min read

Table Types Comparison: SQL Server vs PostgreSQL

Table Type SQL Server PostgreSQL Scope / Lifetime Usage Notes Permanent Table CREATE TABLE Employee (...) CREATE TABLE Employee (...) Permanent in DB until…

Table Type SQL
Mar 19, 2026 1 min read