9. Write a query to list a new column with the
difference in temp of the cities Delhi and Mumbai, Mumbai
and Jammu and soon. Consider the following table :
City_id City Temp.
1 delhi 40
2 Mumbai 35
3 Jammu 32
4 Pune 18

Answer Posted / pradip jain

select t1.name + ' and ' t2.name , t2.temp -t1.temp from
temp t1
join temp t2 on t2.id=t1.id+1

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is spatial nonclustered index

550


Your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files?

619


What are the differences between user defined functions and stored procedures?

535


what is create database syntax? : Sql server database administration

614


what is the different types of backups available in sql server? : Sql server database administration

504






What does this statement do @@rowcount?

555


How to change server name in sql server?

564


What are the various Operating system files that every SQL server 2005 database has and what is the purpose.

596


Can we call stored procedure in view in sql server?

500


what is package and it uses and how can u call a package

1563


Difference between 2NF &3NF ?

683


Tell me about normalization in DBMS.

583


Define Unique Key?

596


What are the main differences between #temp tables and @table variables and which one is preferred?

555


How can you control the amount of free space in your index pages?

620