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 / shivaraj
select region from table1 where employeeid in (select
employeeid from table2 where age in (select max(age) from
table2))
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Explain the advantages of merge replication?
How to verify a user name with sqlcmd tool?
What are the encryption mechanisms in sql server?
What are the different types of collation sensitivity?
Explain candidate key, alternate key, and composite key?
Is candidate a key?
Explain timestamp datatype?
What is replication and database mirroring?
How does index makes search faster?
How to automatically create a log when an exception is being received into SQL Server?
How to change the password of a login name in ms sql server?
How does recursive cte works in sql server?
What are the purposes and advantages stored procedure?
What do you mean by an execution plan?
How to insert data into an existing table?