<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss'><id>tag:blogger.com,1999:blog-3794704404159574532</id><updated>2009-12-27T22:55:59.912-08:00</updated><title type='text'>SqlQueries</title><subtitle type='html'>SQLQueriesCollection is blog for all sql queries in SqlServer at one place.SQL,SQL Query,SQL Queries,SQL Query Code,SQL Query Example,SQL Query Syntax,Basic Sql Queries,Query,SQL Examples,SQL Basic Queries,Structured Query Language.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default?start-index=26&amp;max-results=25'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>30</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-8892730926270902830</id><published>2009-06-26T05:52:00.000-07:00</published><updated>2009-06-26T06:38:53.315-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='sql query to drop tble'/><category scheme='http://www.blogger.com/atom/ns#' term='drop table sql query'/><category scheme='http://www.blogger.com/atom/ns#' term='drop table tablename'/><category scheme='http://www.blogger.com/atom/ns#' term='sql inteview queries'/><category scheme='http://www.blogger.com/atom/ns#' term='sql basic queries'/><category scheme='http://www.blogger.com/atom/ns#' term='sql faqs'/><category scheme='http://www.blogger.com/atom/ns#' term='drop table'/><category scheme='http://www.blogger.com/atom/ns#' term='basic sql queries'/><title type='text'>SQL Query To Drop a Table in SQL Server</title><content type='html'>&lt;a href="http://funandknowledge.blogspot.com/2007/12/sql-server-faqs.html"&gt;Sql Server Faqs&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2009/04/sql-query-to-return-information-about.html"&gt;Check this post for SQL Query to Return Information About all Databases in SQL Server&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;SQL Query To Drop a Table in SQL Server.&lt;br /&gt;&lt;br /&gt;syntax:Drop Table Tablename&lt;br /&gt;&lt;br /&gt;ex:DROP TABLE Emp&lt;br /&gt;&lt;br /&gt;Above Query Drops Emp table in the current database.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://moviessongslyrics.blogspot.com" target="_blank"&gt;Movie Songs Lyrics&lt;/a&gt;&lt;br /&gt;&lt;a href="http://funandknowledge.blogspot.com" target="_blank"&gt;Software Testing-QTP Scripts,Testing Faqs&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-8892730926270902830?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/8892730926270902830/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=8892730926270902830' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/8892730926270902830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/8892730926270902830'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2009/06/sql-query-to-drop-table-in-sql-server.html' title='SQL Query To Drop a Table in SQL Server'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-4535676500005747497</id><published>2009-05-06T07:47:00.000-07:00</published><updated>2009-05-06T07:56:36.845-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql queries syntax'/><category scheme='http://www.blogger.com/atom/ns#' term='sp_helpdb database name'/><category scheme='http://www.blogger.com/atom/ns#' term='sql server'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver queries  examples'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver queries'/><category scheme='http://www.blogger.com/atom/ns#' term='sql queries for database in sqlserver'/><category scheme='http://www.blogger.com/atom/ns#' term='sp_helpdb'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver'/><title type='text'>SQL Query to Return Information about a single database</title><content type='html'>&lt;a href="http://funandknowledge.blogspot.com/2007/12/sql-server-faqs.html"&gt;Sql Server Faqs&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2009/04/sql-query-to-return-information-about.html"&gt;Check this post for SQL Query to Return Information About all Databases in SQL Server&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;SQL Query to Return Information about a single database&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Syntax:exec sp_helpdb databasename&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ex:exec sp_helpdb lakshmi&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-4535676500005747497?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/4535676500005747497/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=4535676500005747497' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/4535676500005747497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/4535676500005747497'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2009/05/sql-query-to-return-information-about.html' title='SQL Query to Return Information about a single database'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-4411456575402778776</id><published>2009-04-23T07:50:00.000-07:00</published><updated>2009-04-23T07:59:06.822-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='sql syntax'/><category scheme='http://www.blogger.com/atom/ns#' term='exec sp_helpdb'/><category scheme='http://www.blogger.com/atom/ns#' term='sql server sql queries'/><category scheme='http://www.blogger.com/atom/ns#' term='basic sql queries'/><category scheme='http://www.blogger.com/atom/ns#' term='faqs in sqlserver'/><category scheme='http://www.blogger.com/atom/ns#' term='sql queries sql server'/><category scheme='http://www.blogger.com/atom/ns#' term='database queries'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver faqs'/><category scheme='http://www.blogger.com/atom/ns#' term='sql examples'/><category scheme='http://www.blogger.com/atom/ns#' term='queries in sql server'/><category scheme='http://www.blogger.com/atom/ns#' term='sp_helpdb'/><category scheme='http://www.blogger.com/atom/ns#' term='exec'/><title type='text'>SQL Query to Return Information About all Databases in SQLServer</title><content type='html'>&lt;a href="http://funandknowledge.blogspot.com/2007/12/sql-server-faqs.html"&gt;Check this post for sqlserver faqs&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL Query to Return Information About all Databases in SQL Server&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;exec sp_helpdb&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2009/04/sql-query-to-delete-multiple-databases.html"&gt;Check here for SQL Query to delete multiple databases in sqlserver&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2009/04/sql-query-to-rename-database-in-sql.html"&gt;SQL Query to rename database in sqlserver.&lt;/a&gt;&lt;br /&gt;&lt;a href="http://moviessongslyrics.blogspot.com" target="_blank"&gt;Movie Songs Lyrics&lt;/a&gt;&lt;br /&gt;&lt;a href="http://funandknowledge.blogspot.com" target="_blank"&gt;Software Testing-QTP Scripts,Testing Faqs&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-4411456575402778776?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/4411456575402778776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=4411456575402778776' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/4411456575402778776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/4411456575402778776'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2009/04/sql-query-to-return-information-about.html' title='SQL Query to Return Information About all Databases in SQLServer'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-7895832252390837589</id><published>2009-04-13T06:16:00.000-07:00</published><updated>2009-04-13T22:53:09.058-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql query to delete multiple databases'/><category scheme='http://www.blogger.com/atom/ns#' term='drop multiple databases sql query'/><category scheme='http://www.blogger.com/atom/ns#' term='drop  multiple databases in sqlserver'/><category scheme='http://www.blogger.com/atom/ns#' term='sql server queries'/><title type='text'>SQL Query to Delete Multiple Databases in SQL Server-SQL Queries</title><content type='html'>&lt;a href="http://sqlqueriescollection.blogspot.com/2009/04/sql-query-to-delete-database-in-sql.html"&gt;Check This Post for sql query to delete single database in sql server&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;SQL Query to drop multiple databases in sqlserver.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Syntax:DROP DATABASE databasename1, databasename2&lt;br /&gt;&lt;br /&gt;Example:Drop Database Lakshmi1,Lakshmi2&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2009/04/sql-query-to-rename-database-in-sql.html"&gt;Check This SQL Query to Rename Database&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2009/02/sql-query-to-find-minimum-salary-from.html"&gt;Check this post for SQL Query To Find Minimum Salary From Emp Table in SQLSERVER.&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2009/02/sql-query-to-find-maximum-salary-from.html"&gt;Sql query to find highest salary in sqlserver.&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2009/01/sql-query-to-retrieve-nth-highest.html"&gt;Check this post to get 2nd and 3rd Highest salary&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-copy-structure-of-one-table-into.html"&gt;SQL Query to copy only structure of one table to other table in SqlServer&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-get-structure-of-table-in-sql.html"&gt;SQL Query to get structure of table in SqlServer&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-get-structure-of-table-in-sql.html"&gt;&lt;/a&gt;&lt;a href="http://moviessongslyrics.blogspot.com" target="_blank"&gt;Movie Songs Lyrics&lt;/a&gt;&lt;br /&gt;&lt;a href="http://funandknowledge.blogspot.com" target="_blank"&gt;Software Testing-QTP Scripts,Testing Faqs&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-7895832252390837589?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/7895832252390837589/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=7895832252390837589' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/7895832252390837589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/7895832252390837589'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2009/04/sql-query-to-delete-multiple-databases.html' title='SQL Query to Delete Multiple Databases in SQL Server-SQL Queries'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-7660097394892389418</id><published>2009-04-05T21:49:00.000-07:00</published><updated>2009-04-05T22:03:37.429-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql server  drop database'/><category scheme='http://www.blogger.com/atom/ns#' term='sql queries'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver faqs'/><category scheme='http://www.blogger.com/atom/ns#' term='queries in sql server'/><category scheme='http://www.blogger.com/atom/ns#' term='sql queries drop database'/><category scheme='http://www.blogger.com/atom/ns#' term='sql queries asked in interviews'/><category scheme='http://www.blogger.com/atom/ns#' term='frequently asked sql queries'/><category scheme='http://www.blogger.com/atom/ns#' term='drop'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver interview queries'/><title type='text'>SQL Query to Delete Database in Sql Server-SQL Queries in SQLServer</title><content type='html'>&lt;a href="http://funandknowledge.blogspot.com/2007/12/sql-server-faqs.html"&gt;Check this post for SqlServer Faqs&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;SQL Query to Drop Database in Sql Server&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Syntax:DROP DATABASE databasename&lt;br /&gt;&lt;br /&gt;Example:drop database lakshmi&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2009/04/sql-query-to-rename-database-in-sql.html"&gt;Check This SQL Query to Rename Database&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2009/02/sql-query-to-find-minimum-salary-from.html"&gt;Check this post for SQL Query To Find Minimum Salary From Emp Table in SQLSERVER.&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2009/02/sql-query-to-find-maximum-salary-from.html"&gt;Sql query to find highest salary in sqlserver.&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2009/01/sql-query-to-retrieve-nth-highest.html"&gt;Check this post to get 2nd and 3rd Highest salary&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-copy-structure-of-one-table-into.html"&gt;SQL Query to copy only structure of one table to other table in SqlServer&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-get-structure-of-table-in-sql.html"&gt;SQL Query to get structure of table in SqlServer&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-get-structure-of-table-in-sql.html"&gt;&lt;/a&gt;&lt;a href="http://moviessongslyrics.blogspot.com" target="_blank"&gt;Movie Songs Lyrics&lt;/a&gt;&lt;br /&gt;&lt;a href="http://funandknowledge.blogspot.com" target="_blank"&gt;Software Testing-QTP Scripts,Testing Faqs&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-7660097394892389418?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/7660097394892389418/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=7660097394892389418' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/7660097394892389418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/7660097394892389418'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2009/04/sql-query-to-delete-database-in-sql.html' title='SQL Query to Delete Database in Sql Server-SQL Queries in SQLServer'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-7935446469496648846</id><published>2009-04-01T23:45:00.000-07:00</published><updated>2009-04-02T00:07:34.516-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql query to change name os database in sqlserver'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver queries commands'/><category scheme='http://www.blogger.com/atom/ns#' term='sql command to rename database name'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver database queries'/><category scheme='http://www.blogger.com/atom/ns#' term='sql basic queries'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Queries Asked in Interviews'/><title type='text'>SQL Query to Rename Database in SQL Server</title><content type='html'>SQL Query to rename database.&lt;br /&gt;&lt;br /&gt;Syntax: sp_renamedb 'olddatabasename','newdatabasename'&lt;br /&gt;&lt;br /&gt;Example: sp_renamedb 'Lakshmi','Laxmi'&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2009/02/sql-query-to-find-minimum-salary-from.html"&gt;Check this post for SQL Query To Find Minimum Salary From Emp Table in SQLSERVER.&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2009/02/sql-query-to-find-maximum-salary-from.html"&gt;Sql query to find highest salary in sqlserver.&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2009/01/sql-query-to-retrieve-nth-highest.html"&gt;Check this post to get 2nd and 3rd Highest salary&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-copy-structure-of-one-table-into.html"&gt;SQL Query to copy only structure of one table to other table in SqlServer&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-get-structure-of-table-in-sql.html"&gt;SQL Query to get structure of table in SqlServer&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-get-structure-of-table-in-sql.html"&gt;&lt;/a&gt;&lt;a href="http://moviessongslyrics.blogspot.com" target="_blank"&gt;Movie Songs Lyrics&lt;/a&gt;&lt;br /&gt;&lt;a href="http://funandknowledge.blogspot.com" target="_blank"&gt;Software Testing-QTP Scripts,Testing Faqs&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-7935446469496648846?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/7935446469496648846/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=7935446469496648846' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/7935446469496648846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/7935446469496648846'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2009/04/sql-query-to-rename-database-in-sql.html' title='SQL Query to Rename Database in SQL Server'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-1723667712854348616</id><published>2009-02-16T11:05:00.000-08:00</published><updated>2009-02-16T11:15:10.457-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql queries asked in interviews'/><category scheme='http://www.blogger.com/atom/ns#' term='how to find maximum salary'/><category scheme='http://www.blogger.com/atom/ns#' term='minimum salary'/><category scheme='http://www.blogger.com/atom/ns#' term='basic sql queries'/><category scheme='http://www.blogger.com/atom/ns#' term='sql query for least and highest salary in sqlserver'/><category scheme='http://www.blogger.com/atom/ns#' term='max'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Query To Find Minimum Salary in SQLSERVER'/><title type='text'>SQL Query To Find Minimum Salary From Emp Table in SQLSERVER.</title><content type='html'>sql query to get min sal from emp table&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2009/01/sql-query-to-retrieve-nth-highest.html"&gt;Check this post to find 2nd and 3rd Highest salary&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;sql query to get least salary from emp table&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Syntax:select min(columnname)as MIN_SAL from tablename&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex:select min(sal)as MIN_SAL from emp&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2009/02/sql-query-to-find-maximum-salary-from.html"&gt;Sql query to find highest salary in sqlserver.&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2009/01/sql-query-to-retrieve-nth-highest.html"&gt;Check this post to get 2nd and 3rd Highest salary&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-copy-structure-of-one-table-into.html"&gt;SQL Query to copy only structure of one table to other table in SqlServer&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-get-structure-of-table-in-sql.html"&gt;SQL Query to get structure of table in SqlServer&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-get-structure-of-table-in-sql.html"&gt;&lt;/a&gt;&lt;a href="http://moviessongslyrics.blogspot.com" target="_blank"&gt;Movie Songs Lyrics&lt;/a&gt;&lt;br /&gt;&lt;a href="http://funandknowledge.blogspot.com" target="_blank"&gt;Software Testing-QTP Scripts,Testing Faqs&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-1723667712854348616?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/1723667712854348616/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=1723667712854348616' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/1723667712854348616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/1723667712854348616'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2009/02/sql-query-to-find-minimum-salary-from.html' title='SQL Query To Find Minimum Salary From Emp Table in SQLSERVER.'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-4842759367183161163</id><published>2009-02-05T02:39:00.000-08:00</published><updated>2009-02-05T02:56:26.669-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql query to first'/><category scheme='http://www.blogger.com/atom/ns#' term='second highest salary query'/><category scheme='http://www.blogger.com/atom/ns#' term='sql interview queries'/><category scheme='http://www.blogger.com/atom/ns#' term='how to find maximum salary'/><category scheme='http://www.blogger.com/atom/ns#' term='mostly asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='third highest salary in sqlserver'/><category scheme='http://www.blogger.com/atom/ns#' term='query for highest salary'/><title type='text'>SQL Query To Find Maximum Salary From Emp Table in SQLSERVER.</title><content type='html'>&lt;a href="http://sqlqueriescollection.blogspot.com/2009/01/sql-query-to-retrieve-nth-highest.html"&gt;Check here to find 2nd and 3rd Highest salary&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;sql query to get first highest salary from emp table&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Syntax:select max(columnname)as MAX_SAL from tablename&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex:select max(sal)as MAX_SAL from emp&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2009/01/sql-query-to-retrieve-nth-highest.html"&gt;Check this post to get 2nd and 3rd Highest salary&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-copy-structure-of-one-table-into.html"&gt;SQL Query to copy only structure of one table to other table in SqlServer&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-get-structure-of-table-in-sql.html"&gt;SQL Query to get structure of table in SqlServer&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-get-structure-of-table-in-sql.html"&gt;&lt;/a&gt;&lt;a href="http://moviessongslyrics.blogspot.com" target="_blank"&gt;Movie Songs Lyrics&lt;/a&gt;&lt;br /&gt;&lt;a href="http://funandknowledge.blogspot.com" target="_blank"&gt;Software Testing-QTP Scripts,Testing Faqs&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-4842759367183161163?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/4842759367183161163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=4842759367183161163' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/4842759367183161163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/4842759367183161163'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2009/02/sql-query-to-find-maximum-salary-from.html' title='SQL Query To Find Maximum Salary From Emp Table in SQLSERVER.'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-5676439077198336289</id><published>2009-01-30T02:39:00.000-08:00</published><updated>2009-01-30T03:01:41.249-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='third highest salary'/><category scheme='http://www.blogger.com/atom/ns#' term='sql query to get  Nth Highest salary in oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='Nth highest salary'/><category scheme='http://www.blogger.com/atom/ns#' term='sql query to get  Nth Highest salary in sqlserver'/><category scheme='http://www.blogger.com/atom/ns#' term='sql queries asked in interviews'/><category scheme='http://www.blogger.com/atom/ns#' term='queries asked in interviews'/><title type='text'>Sql Query to Retrieve  Nth  Highest Salary From Table  in SQL Server</title><content type='html'>&lt;a href="http://funandknowledge.blogspot.com/2007/12/sql-server-faqs.html"&gt;SQL Server Faqs&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;SQL Query to find Nth Highest Salary in SQL Server.&lt;br /&gt;&lt;br /&gt;SELECT * FROM tablename e1 WHERE N = (SELECT COUNT(DISTINCT (e2.sal))&lt;br /&gt;FROM tablename e2 WHERE e2.sal &gt;= e1.sal)&lt;br /&gt;&lt;br /&gt;For example to get 3rd highest salary:&lt;br /&gt;SELECT * FROM emp e1 WHERE 3 = (SELECT COUNT(DISTINCT (e2.sal))FROM emp e2 WHERE e2.sal &gt;= e1.sal)&lt;br /&gt;&lt;br /&gt;Similarly to get 2nd highest salary:&lt;br /&gt;SELECT * FROM emp e1 WHERE 2 = (SELECT COUNT(DISTINCT (e2.sal))FROM emp e2 WHERE e2.sal &gt;= e1.sal)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://funandknowledge.blogspot.com/2007/12/sql-server-faqs.html"&gt;SQL Server Faqs&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-copy-structure-of-one-table-into.html"&gt;SQL Query to copy only structure of one table to other table in SqlServer&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-get-structure-of-table-in-sql.html"&gt;SQL Query to get structure of table in SqlServer&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-get-structure-of-table-in-sql.html"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://moviessongslyrics.blogspot.com" target="_blank"&gt;Movie Songs Lyrics&lt;/a&gt;&lt;br /&gt;&lt;a href="http://funandknowledge.blogspot.com" target="_blank"&gt;Software Testing-QTP Scripts,Testing Faqs&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-5676439077198336289?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/5676439077198336289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=5676439077198336289' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/5676439077198336289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/5676439077198336289'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2009/01/sql-query-to-retrieve-nth-highest.html' title='Sql Query to Retrieve  Nth  Highest Salary From Table  in SQL Server'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-2196681213060939678</id><published>2009-01-06T07:20:00.000-08:00</published><updated>2009-01-06T07:31:11.757-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='getting random record from table'/><category scheme='http://www.blogger.com/atom/ns#' term='query to dispaly random record in sqlserver'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver query to get random record'/><category scheme='http://www.blogger.com/atom/ns#' term='sql query to retrieve random record'/><category scheme='http://www.blogger.com/atom/ns#' term='query for random record'/><category scheme='http://www.blogger.com/atom/ns#' term='retrieve random record'/><title type='text'>How to Retrieve a Random Record from a Table in SqlServer</title><content type='html'>SQL Query to display a random record from table in sqlserver.&lt;br /&gt;&lt;br /&gt;Syntax:Select Top 1 * From tablename Order By NewId()&lt;br /&gt;&lt;br /&gt;Example:Select Top 1 * From emp Order By NewId()&lt;br /&gt;&lt;br /&gt;Above query will display one random record.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/sql-query-to-copy-structure-and-data-of.html"&gt;SQL Query to copy structure and data of one table to other in Sql Server.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://funandknowledge.blogspot.com/"&gt;Software Testing-QTP,Testing Tools,Testing Faqs&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sqlqueriescollection.blogspot.com/"&gt;Collection of SQL Queries&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-2196681213060939678?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/2196681213060939678/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=2196681213060939678' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/2196681213060939678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/2196681213060939678'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2009/01/how-to-retrieve-random-record-from.html' title='How to Retrieve a Random Record from a Table in SqlServer'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-1693295373185602935</id><published>2008-12-29T20:47:00.000-08:00</published><updated>2009-01-30T03:00:04.562-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='data and structure of one table into another in sqlserver'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver queries  examples'/><category scheme='http://www.blogger.com/atom/ns#' term='sql query to copy both structure and data of one table into another table in sqlserver'/><title type='text'>SQL Query to Copy Structure and Data of One table To Other in SQLServer</title><content type='html'>How to copy structure and data of one table into another table?&lt;br /&gt;&lt;br /&gt;Syntax: Select * into Newtable from Oldtable&lt;br /&gt;&lt;br /&gt;Ex: select * into  emp1 from emp&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-copy-structure-of-one-table-into.html"&gt;SQL Query to copy only structure of one table to other table in SqlServer&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-get-structure-of-table-in-sql.html"&gt;SQL Query to get structure of table in SqlServer&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-get-structure-of-table-in-sql.html"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://moviessongslyrics.blogspot.com" target="_blank"&gt;Movie Songs Lyrics&lt;/a&gt;&lt;br /&gt;&lt;a href="http://funandknowledge.blogspot.com" target="_blank"&gt;Software Testing-QTP Scripts,Testing Faqs&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-1693295373185602935?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/1693295373185602935/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=1693295373185602935' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/1693295373185602935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/1693295373185602935'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2008/12/sql-query-to-copy-structure-and-data-of.html' title='SQL Query to Copy Structure and Data of One table To Other in SQLServer'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-7254987226984620619</id><published>2008-12-26T05:45:00.000-08:00</published><updated>2008-12-26T05:59:54.999-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql query for copying one table structure to other table'/><category scheme='http://www.blogger.com/atom/ns#' term='sql query  to Copy Structure of One Table into Another Table'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver'/><category scheme='http://www.blogger.com/atom/ns#' term='How to Copy Structure of One Table into Another Table in sql server'/><title type='text'>How to Copy Structure of One Table into Another Table?</title><content type='html'>SQL Query to copy structure of one table to another table in SQL Server.&lt;br /&gt;&lt;br /&gt;Syntax: Select * into Newtable from Oldtable where 1=2&lt;br /&gt;&lt;br /&gt;Ex: Select * into emp1 from emp where 1=2&lt;br /&gt;&lt;br /&gt;The above query copies only structure(not data) of emp to emp1.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-get-structure-of-table-in-sql.html"&gt;SQL Query to get structure of table&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-7254987226984620619?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/7254987226984620619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=7254987226984620619' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/7254987226984620619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/7254987226984620619'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2008/12/how-to-copy-structure-of-one-table-into.html' title='How to Copy Structure of One Table into Another Table?'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-3791031832139484382</id><published>2008-12-23T02:38:00.000-08:00</published><updated>2008-12-23T02:50:54.788-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql query to view structure of a particular table in sqlserver'/><category scheme='http://www.blogger.com/atom/ns#' term='sp_help'/><category scheme='http://www.blogger.com/atom/ns#' term='structure of table'/><category scheme='http://www.blogger.com/atom/ns#' term='sp_help tablename'/><category scheme='http://www.blogger.com/atom/ns#' term='sql server query to view structure of a particular table'/><title type='text'>How To Get Structure of a Table in SQL Server?</title><content type='html'>SQL Query to view structure of a table in sqlserver.&lt;br /&gt;&lt;br /&gt;SP_help tablename&lt;br /&gt;&lt;br /&gt;SP_help emp&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-3791031832139484382?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/3791031832139484382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=3791031832139484382' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/3791031832139484382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/3791031832139484382'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2008/12/how-to-get-structure-of-table-in-sql.html' title='How To Get Structure of a Table in SQL Server?'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-2017163218990552529</id><published>2008-12-15T03:40:00.000-08:00</published><updated>2008-12-15T03:54:06.036-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql queries collection'/><category scheme='http://www.blogger.com/atom/ns#' term='query to get number of rows'/><category scheme='http://www.blogger.com/atom/ns#' term='sql query to find number of rows in a table'/><category scheme='http://www.blogger.com/atom/ns#' term='to find no. of rows in a table in oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='how to find total number of rows in a table'/><title type='text'>SQL Query to find total number of rows in a table</title><content type='html'>Query to get number of rows in a table.&lt;br /&gt;&lt;br /&gt;select count(*) from tablename&lt;br /&gt;&lt;br /&gt;ex:select count(*) as Count from emp&lt;br /&gt;&lt;br /&gt;Output&lt;br /&gt;&lt;br /&gt;Count&lt;br /&gt;10&lt;br /&gt;&lt;br /&gt;&lt;a href="http://funandknowledge.blogspot.com/2007/12/sql-server-faqs.html"&gt;SQL Server Faqs&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.moviessongslyrics.blogspot.com/"&gt;Movie Songs Lyrics&lt;/a&gt;&lt;br /&gt;&lt;a href="http://funandknowledge.blogspot.com/"&gt;SOftware Testing -QTP Scripts,Testing Faqs&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-2017163218990552529?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/2017163218990552529/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=2017163218990552529' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/2017163218990552529'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/2017163218990552529'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2008/12/sql-query-to-find-total-number-of-rows.html' title='SQL Query to find total number of rows in a table'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-6487678444766767182</id><published>2008-11-20T11:09:00.000-08:00</published><updated>2009-04-02T00:05:44.638-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='oracle and sqlserver queries'/><category scheme='http://www.blogger.com/atom/ns#' term='queries'/><category scheme='http://www.blogger.com/atom/ns#' term='sql query to rename column name'/><category scheme='http://www.blogger.com/atom/ns#' term='rename column name sql query'/><category scheme='http://www.blogger.com/atom/ns#' term='query for changing column name in sql server'/><category scheme='http://www.blogger.com/atom/ns#' term='basic queries'/><title type='text'>SQL Query to Rename Column Name in SQL Server-Query to change Column Name in SQL SERVER</title><content type='html'>Query to change Column Name in SQL SERVER&lt;br /&gt;&lt;br /&gt;sp_rename 'Tablename.old fieldname', 'new field name'&lt;br /&gt;&lt;br /&gt;sp_rename 'xyz.aaa','bbb'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-6487678444766767182?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/6487678444766767182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=6487678444766767182' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/6487678444766767182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/6487678444766767182'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2008/11/query-to-change-column-name-in-sql.html' title='SQL Query to Rename Column Name in SQL Server-Query to change Column Name in SQL SERVER'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-4478428220281695643</id><published>2008-04-29T12:41:00.000-07:00</published><updated>2009-01-30T03:04:51.615-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql query for second highest salary in oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='second highest salary query'/><title type='text'>sql query for second highest salary in oracle</title><content type='html'>select *from emp a where 2=(select count (distinct(b.sal))from emp b where a.sal&lt;=b.sal);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;EMPNO   ENAME       JOB                MGR      HIREDATE        SAL      COMM  DEPTNO&lt;br /&gt; 7788        SCOTT      ANALYST        7566      19-APR-87       3000                        20&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-copy-structure-of-one-table-into.html"&gt;SQL Query to copy only structure of one table to other table in SqlServer&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-get-structure-of-table-in-sql.html"&gt;SQL Query to get structure of table in SqlServer&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-get-structure-of-table-in-sql.html"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://moviessongslyrics.blogspot.com" target="_blank"&gt;Movie Songs Lyrics&lt;/a&gt;&lt;br /&gt;&lt;a href="http://funandknowledge.blogspot.com" target="_blank"&gt;Software Testing-QTP Scripts,Testing Faqs&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-4478428220281695643?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/4478428220281695643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=4478428220281695643' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/4478428220281695643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/4478428220281695643'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2008/04/sql-query-for-second-highest-salary-in.html' title='sql query for second highest salary in oracle'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-6922892761292616733</id><published>2008-04-29T12:37:00.000-07:00</published><updated>2009-01-30T03:02:23.884-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='top 5 records in oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='sql query for top 5 records'/><title type='text'>Sql query for top 5 records in oracle</title><content type='html'>select*from emp where rownum&lt;=5;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-copy-structure-of-one-table-into.html"&gt;SQL Query to copy only structure of one table to other table in SqlServer&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-get-structure-of-table-in-sql.html"&gt;SQL Query to get structure of table in SqlServer&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sqlqueriescollection.blogspot.com/2008/12/how-to-get-structure-of-table-in-sql.html"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://moviessongslyrics.blogspot.com" target="_blank"&gt;Movie Songs Lyrics&lt;/a&gt;&lt;br /&gt;&lt;a href="http://funandknowledge.blogspot.com" target="_blank"&gt;Software Testing-QTP Scripts,Testing Faqs&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-6922892761292616733?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/6922892761292616733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=6922892761292616733' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/6922892761292616733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/6922892761292616733'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2008/04/sql-query-for-top-5-records-in-oracle.html' title='Sql query for top 5 records in oracle'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-6395174983893470714</id><published>2008-03-25T22:07:00.001-07:00</published><updated>2008-03-25T22:08:08.388-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Query to add years to particular date'/><title type='text'>Query to add years to particular date</title><content type='html'>Query to add years to particular date&lt;br /&gt;select dateadd(year,noofyears to be added,datecolumndate)yearadd from tablename&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-6395174983893470714?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/6395174983893470714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=6395174983893470714' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/6395174983893470714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/6395174983893470714'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2008/03/query-to-add-years-to-particular-date_25.html' title='Query to add years to particular date'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-3639411125708169419</id><published>2008-03-25T22:07:00.000-07:00</published><updated>2008-03-25T22:08:06.991-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Query to add years to particular date'/><title type='text'>Query to add years to particular date</title><content type='html'>Query to add years to particular date&lt;br /&gt;select dateadd(year,noofyears to be added,datecolumndate)yearadd from tablename&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-3639411125708169419?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/3639411125708169419/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=3639411125708169419' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/3639411125708169419'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/3639411125708169419'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2008/03/query-to-add-years-to-particular-date.html' title='Query to add years to particular date'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-9047967144219036065</id><published>2008-03-25T22:06:00.002-07:00</published><updated>2008-03-25T22:07:34.394-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Query to add months to particular date'/><title type='text'>Query to add months to particular date</title><content type='html'>Query to add months to particular date&lt;br /&gt;select dateadd(month,noofmonths to be added,datecolumndate)monthadd from tablename&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-9047967144219036065?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/9047967144219036065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=9047967144219036065' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/9047967144219036065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/9047967144219036065'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2008/03/query-to-add-months-to-particular-date.html' title='Query to add months to particular date'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-8715325559225294884</id><published>2008-03-25T22:06:00.001-07:00</published><updated>2008-03-25T22:06:47.286-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Query to add days to particular date'/><title type='text'>Query to add days to particular date</title><content type='html'>Query to add days to particular date&lt;br /&gt;select dateadd(day,noofdays to be added,datecolumnname)dayadd from tablename&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-8715325559225294884?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/8715325559225294884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=8715325559225294884' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/8715325559225294884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/8715325559225294884'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2008/03/query-to-add-days-to-particular-date.html' title='Query to add days to particular date'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-2828188559115970691</id><published>2008-03-25T22:04:00.002-07:00</published><updated>2008-03-25T22:05:57.254-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='oracle and sqlserver queries'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver queries'/><category scheme='http://www.blogger.com/atom/ns#' term='Query to get only year from particular date'/><title type='text'>Query to get only year from particular date</title><content type='html'>Query to get only year from particular date&lt;br /&gt;select year(datecolumnname)as year from tablename&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-2828188559115970691?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/2828188559115970691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=2828188559115970691' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/2828188559115970691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/2828188559115970691'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2008/03/query-to-get-only-year-from-particular.html' title='Query to get only year from particular date'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-285669432056898869</id><published>2008-03-25T22:04:00.001-07:00</published><updated>2008-03-25T22:04:54.324-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='slq queries'/><category scheme='http://www.blogger.com/atom/ns#' term='Query to get only month from particular date'/><title type='text'>Query to get only month from particular date</title><content type='html'>Query to get only month from particular date&lt;br /&gt;select month(datecolumnname)as month from tablename&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-285669432056898869?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/285669432056898869/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=285669432056898869' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/285669432056898869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/285669432056898869'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2008/03/query-to-get-only-month-from-particular.html' title='Query to get only month from particular date'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-206567366501063592</id><published>2008-03-25T22:02:00.000-07:00</published><updated>2008-03-25T22:04:07.224-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='database queries'/><category scheme='http://www.blogger.com/atom/ns#' term='sql Query to get only day from particualar date'/><category scheme='http://www.blogger.com/atom/ns#' term='interview queries'/><category scheme='http://www.blogger.com/atom/ns#' term='collection of queries'/><category scheme='http://www.blogger.com/atom/ns#' term='Query to get only day from particualar date'/><category scheme='http://www.blogger.com/atom/ns#' term='basic queries'/><category scheme='http://www.blogger.com/atom/ns#' term='sql server queries'/><title type='text'>Query to get only day from particualar date</title><content type='html'>Query to get only day from particualar date&lt;br /&gt;select day(datecolumnname)as day from tablename&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-206567366501063592?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/206567366501063592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=206567366501063592' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/206567366501063592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/206567366501063592'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2008/03/query-to-get-only-day-from-particualar.html' title='Query to get only day from particualar date'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3794704404159574532.post-3914474486763726022</id><published>2008-03-25T22:01:00.000-07:00</published><updated>2008-03-25T22:02:49.857-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql query for date'/><category scheme='http://www.blogger.com/atom/ns#' term='sql query to get only date from datetime field'/><title type='text'>Query to get only date from datetime field</title><content type='html'>Query to get only date from datetime field&lt;br /&gt;select convert(varchar,datecolumnname,110) from tablename&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3794704404159574532-3914474486763726022?l=sqlqueriescollection.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlqueriescollection.blogspot.com/feeds/3914474486763726022/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=3794704404159574532&amp;postID=3914474486763726022' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/3914474486763726022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3794704404159574532/posts/default/3914474486763726022'/><link rel='alternate' type='text/html' href='http://sqlqueriescollection.blogspot.com/2008/03/query-to-get-only-date-from-datetime.html' title='Query to get only date from datetime field'/><author><name>sqlqueries</name><uri>http://www.blogger.com/profile/01519510254510924137</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14119781178823746162'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry></feed>