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 / manisha

select b.region from table1 as a,table2 as b
where a.employeeid=b.employeeid and a.[tshirt size]=3

Is This Answer Correct ?    0 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

You want to check the syntax of a complicated update sql statement without executing it. What command should you use?

566


Explain the truncate command? : SQL Server Architecture

658


What are the types of lock supported by ?

698


What are a scheduled jobs?

625


How to create sub reports?

196






How do I get Report Builder to generate a parameter that can be set by users viewing the report?

116


Can a table be moved to different filegroup?

651


What is transaction server distributed transaction?

633


What is shared lock?

574


How to change the password of a login name in ms sql server?

640


Where are sql server user names and passwords stored in sql server?

625


What are the recovery models in sql server 2000?

634


What are a database and a data warehouse?

654


Define primary key?

764


How to enable/disable indexes?

684