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

Data table as parameter in sql server?

560


How do you run a trace?

515


Explain in brief how sql server enhances scalability of the database system?

477


What is the index requirement in SQL Azure?

72


How do you test your database? : sql server database administration

521






What do you mean by an execution plan? Why is it used? How would you view it?

525


Where are sql server usernames and passwords stored in the sql server?

609


What is temporal data type?

518


Write a Select Query to display title for each group of records, which are collected with Compute Clause? Like titlefield column-A column-B ..... ..... ..... Sum ... titlefield column-A column-B ..... ..... ..... Sum ...

1569


Explain the usage of floor function in sql server.

498


How to get the definition of a stored procedure back?

524


What is wide table?

533


Which is faster statement or preparedstatement?

526


How to concatenate two binary strings together?

605


Explain various data region available in ssrs with their use?

488