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 / himesh mistry
select region
from table2 t2 JOIN table1 t1 ON (t1.eid = t2.eid and
t1.size = 3)
group by region
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
What are the triggers in sql?
How to remove duplicate rows from table?
How to create an index on an existing table in ms sql server?
What is ddl and dml commands?
What gets stored inside msdb database?
What types of Joins are possible with Sql Server?
Explain timestamp datatype?
What is the maximum length of an alert name?
What is the default fill factor value?
What are the properties of the transactions?
What are the rules to use the rowguidcol property to define a globally unique identifier column?
How to find related tables in sql server?
what is a traditional network library for sql servers? : Sql server database administration
How to use values from other tables in update statements in ms sql server?
What is the difference between the 2 operating modes of database mirroring?