Question: The data for the number employed at several famous IT companies is maintained in the COMPANY table. Write a query to print the /Ds
The data for the number employed at several famous IT companies is maintained in the COMPANY table. Write a query to print the /Ds of the companies that have more than 10000 employees, in ascending order of ID. Input Format Name ID NAME EMPLOYEES Type COMPANY. ID Integer String COMPANY Description A company ID in the inclusive range [1, 1000]. This is the primary key. A company name. This field contains between 1 and 100 characters (inclusive). Integer The total number of employees in the company. Output Format The result should contain the IDs of all the companies that have more than 10000 employees, in ascending order in the following format: Sample Input ID 1 2 3 4 5 6 7 8 9 10 1 2 7 9 COMPANY NAME Adobe Flipkart Amazon Paytm BookMyShow Oracle NIIT Samsung Sample Output TCS Wipro EMPLOYEES 28085 35543 1089 9982 5589 4003 57782 2000 10046 3500 Explanation Adobe, Flipkart, NIIT, and TCS have greater than 10000 employees, so their IDs are printed.
Step by Step Solution
3.41 Rating (170 Votes )
There are 3 Steps involved in it
The attached images contain details about a database of companies with their respective employee num... View full answer
Get step-by-step solutions from verified subject matter experts
