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 / devendra sharma
select ID, region from tab1 where ID in
(select ID from tab2 where isnull(age,0)=(select max(age)
from tab2))
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is stored procedures?
Explain the difference between cross join and full outer join?
Can a function call a stored procedure in sql server?
What is multi-statement table-value user-defined function?
What is the difference between index seek vs. Index scan?
How many database files are there in sql server 2000?what are they?
What are various ways to enhance the ssrs report?
What is etl - extraction, transformation, and loading?
Determine when to use stored procedure to complete sql server tasks?
What is the name of reporting services config file and what’s it’s used for?
Explain what role entity and relationship play in an ER diagram.
What are three major types of constraints?
Explain where clause?
Can you name some of the dml commands in sql?
What do you mean by SQL injection attack?