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
how to create a scrollable cursor with the scroll option? : Sql server database administration
Explain what is analysis service repository?
What is table valued function and scalar valued functions?
Can we update data in a view?
Explain what stored procedure sp_replcounters is used for? : sql server replication
What are some examples of schemas?
What is raid, and how it can influence database performance?
How can we rewrite sub-queries into simple select statements or with joins?
What is the new security features added in sql server 2014? : sql server security
What are user-defined functions (udfs) in sql server?
What is subquery explain with example?
What are xml indexes?
Explain database normalization?
Tell me the phases a transaction has to undergo?
Can a table have 2 primary keys?