GeekInterview.com
Series: Subject: Topic:
Question: 127 of 214

How write a SQL statement to query the result set and display row as columns and columns as row?

Asked by: Interview Candidate | Asked on: Apr 6th, 2006
Showing Answers 1 - 5 of 5 Answers

In Oracle:http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:766825833740would give you a general idea about how to implement it.

  
Login to rate this answer.
sarika

Answered On : May 8th, 2006

How write a SQL statement to query the result set ...

  
Login to rate this answer.
Ilyas

Answered On : Jul 24th, 2006

TRANSFORM Count(Roll_no) AS CountOfRoll_no
SELECT Academic_Status
FROM tbl_enr_status
GROUP BY Academic_Status
PIVOT Curnt_status;

  
Login to rate this answer.
Vasanth Kumar

Answered On : Oct 6th, 2006

The simplest way to implement this in SQL 2000/OracleSelect * from table1Create a temp table with No of columns = No of rows in table 1No of rows = No of columns in table 1and insert the data into the temp table using a loop logic.

  
Login to rate this answer.
ratnam

Answered On : Aug 3rd, 2012

How write a SQL statement to query the result set and display row as columns and columns as row?

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.