Showing posts with label SQL \ TSQL ....:-). Show all posts
Showing posts with label SQL \ TSQL ....:-). Show all posts

How to manage partition

Partition are useful function for managing large data in database. I have posted an article on how to create partition. Now we will look into how to manage partitions.

First we will create partition as given in my past article.

Like- SQL Server


Recently I got a query on how to use like clause. As we all know we can use to find word with pattern matching.
Here we will look a sample for it.

Except command -SQL Server 2005

Except command can be used when we want rows from table1 which are not in table2.
This command is supported in SQL 2005 and later versions.
Let see an example for this

Interesect Command(SQL Server 2005)

One of new feature of SQL Server 2005 is except and intersect commands.
Lets look how it can be useful.

Table Value Constructors

Table Value Constructors for Insert Statement


CREATE
TABLE test (

id INT,
name VARCHAR(100))

Popular Posts