Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

How to delete duplicate data in Oracle SQL?

Let's create a table with duplicate rows in SQL. create table CustomerDuplicate(customer_id int,customer_name varchar(20)) insert into CustomerDuplicate values(1,'Adam') insert into CustomerDuplicate values (1,'Adam') insert into CustomerDuplicate

CTE in SQL

CTE Common Type Expression For providing pivoting in tables say you want to view your data in such a form such that rows comes in form of columns and columns in form of rows. For doing that SQL provide facility to use CTE in SQL Ex : Suppose you ha

SQL : How to get Nth record in SQL Table ?

In the following article we will go through a solution to a very common requirement of getting Nth record in a SQL server table. Let us first create a table and add sample data to this table. Col1 in the table is an identity column. CREATE TABLE #Ta

SQL : How to get count of duplicate records?

In the following article we will go through a solution to a very common requirement of getting count of duplicate rows from SQL server table. Let us first create a table and add sample data to this table. Col1 in the table is an identity column. CRE

APEX SQL

APEX SQL APEX in SQL is a product from Microsoft that is used for synching of data stored on different servers. We have our main data stored in a main server and replica of those data are stored on different servers. Consider a scenario of S

SQL : How to get duplicate rows based on specific fields in table ?

In the following article we will go through a solution to a very common requirement of getting duplicate rows from SQL Server table based on specific columns. Let us first create a table and add sample data to this table. Col1 in the table is an iden

SQL : How to find all tables containing column with specific name ?

Many times we come across a requirement of finding names of all tables which contain specific columns. We can get the answer by using the below query: SELECT COL.name AS ColumnName, TAB.name AS TableName FROM sys.columns COL JOIN sys.tables TAB

SQL : Difference between UNION and UNION ALL

Both UNION and UNION ALL operators are used to combine the results of two or more SELECT statements. However the two differ as below: 1) UNION performs a DISTINCT on the result set, removing any duplicate rows.There is a performance hit when using

To find duplicate records in SQL

In SQL if we dont have used primary keys then our id gets repeated accidentally or unintentionally. In this case we need to find out how many records are same. We need to find out the same tuples or rows from a table. For doing that we will per

Encryption in SQL

For providing security and privacy we need to store data in encrypted form. In SQL this can be done with series of steps: CREATE TABLE dbo.Employees( EmployeeID int primary key, EmployeeName varchar(50) NULL, normaldata

1 6 54
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: