GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Tech FAQs  >  SQL
Go To First  |  Previous Question  |  Next Question 
 SQL  |  Question 180 of 190    Print  
Changing Rows into Colums
How to change rows to columns and columns into rows?


  
Total Answers and Comments: 1 Last Update: June 20, 2008     Asked by: karthizen 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 20, 2008 23:06:44   #1  
krishnaindia2007 Member Since: September 2007   Contribution: 870    

RE: Changing Rows into Colums
Use decode function.
 
Is this answer useful? Yes | No

 Related Questions

Select 1 from dualunionselect 'A' from dual; I guess the query will select zero rows. Is it wrong or right ? if wrong thenWhat will be the result set for the query?Thanks in advance.
Read Answers (4) | Asked by : Rachana

The table name is emp(many fields) with 'designation' as 1 field. my query is i want the percentage of "MANAGERS" in that emp table. (suppose there are 14 rows in total, the rows with 'managers' are 3, so output is (3/14)*100 ).
Read Answers (7) | Asked by : ashwin.k

How to select the all first rows which are having same id.for example:id name salary11. suresh 1000011. suresh 1200012. rajesh 1200012. rajesh 13000now i want to get rows as below given format11. suresh 1000012. rajesh 12000
Read Answers (7) | Asked by : sureshkumar

When we retrieve data from table in SQL Queries, and want to select second, third,........rows from table, then what is the coding of that program?
Read Answers (6) | Asked by : hawasingh

How to delete redundant data from a table & How do we come to know that data or rows is being duplicated with same datavalue in Table.
Read Answers (5) | Asked by : Neeraj

Consider that we r having table name emp....now the question is 1.how should we print the odd rows from that table?2.how should we print the rows where comm=NULL.Reply ASAP
Read Answers (8) | Asked by :

Write a query that display the records based on condition. excluding the record that meets the condition Eg... Select all employees who has same salary as empno 20. My query should return all the rows excluding empno20.
Read Answers (9) | Asked by : brl51274

What is difference between unique index and simple index?is it possible, two rows can have the same unique index? 
Latest Answer : Unique Index:If the index is for a primary or unique key then the owner, name, type, and columns cannot be modified. These properties are all derived from the key constraint. Changing the name of the key constraint will automatically change the name of ...
Read Answers (1) | Asked by : newqtp

How to change rows to columns and columns into rows? 
Latest Answer : Use decode function. ...


 Sponsored Links

 
Related Articles

ODP.NET - Retrieving Multiple Rows on to the Grid

ODP NET Retrieving Multiple Rows on to the Grid In the previous section we tried to retrieve only one row using OracleDataReader In this section we will try to retrieve more than one row or a result set and populate a DataGridView on a WinForm mosgoogle The following code lists out the details of al
 

jQuery Expanding and Collapsing Table Rows

jQuery Expanding and Collapsing Table Rows The expanding and collapsing behavior added earlier also conflicts with our filters If a section is collapsed and a new filter is chosen then the matching items are displayed even if in the collapsed section Conversely if the table is filtered and a section
 

jQuery Collapsing and Expanding Table Rows

jQuery Collapsing and Expanding Table Rows When large sets of data are grouped in tables as each year s set of articles are in our News page collapsing or hiding a section s contents can be a convenient way to get a broad view of all of the table s data without having to scroll so much mosgoogle To
 

Maximizing Transferable Skills When Changing Career

Changing career entails daunting tasks and activities that an individual needs to accomplish in order to be successful in his new chosen career. Career shift requires a lot of preparation on the part of the individual especially if the new career is very different from his previous employment experi
 

Staying Afloat In The Changing IT World

Staying Afloat In The Changing IT World Jobs in the IT or information technology field almost always guarantee decent salaries constant work and an interesting work environment so they are attractive to many college graduates Unfortunately the longer you work in the IT field the more you’
 

ASP.NET 2.0 :Changing Master Pages Dynamically

ASP NET 2 0 Free Training Changing Master Pages Dynamically In this tutorial you will learn how to make a copy of the master page To add buttons for selecting an alternate master page To write code to dynamically select the master page and test the dynamic master pages mosgoogle Changing Master Page
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape