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


Please Help Members By Posting Answers For Below Questions

What is log in sql server?

664


What is best institute to Learn DotNET And SQL in chennai?

1777


What are the fixed server level roles? : sql server security

660


What is the use of tempdb? What values does it hold?

647


What do you mean by an execution plan? Why is it used? How would you view it?

612






Where in ms sql server is ’100’ equal to ‘0’?

708


How is sql server used?

623


you have couple of stored procedures that depend on a table you dropped the table and recreated it what do you have to do to reestablish those stored procedure dependencies?

683


Why do we need normalization?

576


What stored by the master? : sql server database administration

653


How much does sql server 2016 cost?

628


What is wide table?

620


How will you know when statistics on a table are obsolete?

699


What are the dis_advantages of stored procedures, triggers, indexes?

1787


Where sql server usernames and passwords are stored in a sql server?

574