please can anyone answer this query

Table 1 has 2 columns: EmployeeId,Age
Table 2 has 2 columns: EmployeeId, Region
Write SQL to Find the region who has the oldest person

Answer Posted / saravanan p

select e.empid,e2.region from empAge1 e,empAge2 e2
where e.empid=e2.empid and e.age in(select max(age) from
empAge1)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate sql server reporting services vs. Crystal reports?

150


What is the use of stored procedure?

515


Why variables called the most powerful component of ssis?

595


How does Report Builder support Analysis Services cubes?

110


Explain datetime2 data type in sal server 2008?

549






How to assign new column names in a view?

509


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

573


How to create a user name in a database?

588


What is master database? : SQL Server Architecture

535


do you know what is a deadlock and what is a live lock? How will you go about resolving deadlocks? : Sql server database administration

485


Explain system rowset functions?

558


What are cursors stored procedures and triggers?

515


What is a group function explain with an example?

523


What are character string data types in ms sql server?

637


What part does database design plays a role in performance of an sql server-based application?

523