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
What are data regions?
Do you know the different ddl commands in sql?
What is 3nf normalization?
What is the exact numeric data type in sql?
What are commit and rollback in sql?
State the difference between union and union all?
Please illustrate physical database architecture? : SQL Server Architecture
How to execute multiple stored procedures at one time in sql server?
Explain what is the purpose of sql profiler in sql server?
What is the downside of using udf?
You want to use bids to deploy a report to a different server than the one you chose in the report wizard. How can you change the server url?
Do you know the isolation level that sql server support?
What is indexed view? How to create it?
how you can get the list of largest tables in a database? : Sql server administration
Explain about the command-line tool SQLCMD?