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 / monal
SELECT REGION,AGE, T1.EMPID FROM T2 INNER JOIN T1
ON T1.EMPID = T2.EMPID WHERE AGE = (SELECT MAX(AGE) FROM T1)
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How to get @@error and @@rowcount at the same time?
How do you drop an index?
What is meant by referential integrity?
How you can minimize the deadlock situation?
What the different types of Replication and why are they used?
What are the basic functions for master, msdb, model, tempdb and resource databases? : SQL Server Architecture
What is tablix?
Is foreign key unique?
What happens if you delete a table that is used by a view?
What are the advantages of having an index on the sql server?
What are the rendering extensions of ssrs?
How to drop an existing table?
What are the different Authentication modes in SQL Server and how can you change authentication mode?
How to create new databases with "create database" statements?
What does normalization do to data?