can any one answer this query,thank you in advance
Table 1 has 2 columns: EmployeeId, T shirtsize(values can
be 1,2,3)
Table 2 has 2 columns: EmployeeId, Region
Write SQL to Find the region which has the largest number
of people with Tshirt size=3
Answer Posted / sandeep narayanan
SELECT B.Region FROM TABLE1 AS A
INNER JOIN TABLE2 AS B ON A.EmployeeID=B.EmployeeID
WHERE A.TShirtSize=3
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What are the differences between web role and worker role?
What do you understand by sql server agent?
What are pages and extents? : SQL Server Architecture
How to create a new schema in a database?
How to create nested stored procedure?
You want to check the syntax of a complicated update sql statement without executing it. What command should you use?
What is a fan-out query in SQL Azure?
What is open database communication (odbc)?
What is sharding?
How can I create a new template for import ? : sql server management studio
How to insert a new row into a table with "insert into" statements in ms sql server?
what are different types of raid configurations? : Sql server database administration
What is model database in sql server?
What is the name of the system variable that returns the number of rows affected by a SQL statement?
What is a group function explain with an example?