0% found this document useful (0 votes)
15 views

Mysql Assignments Evolve BPM

Uploaded by

rajugajelli2002
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Mysql Assignments Evolve BPM

Uploaded by

rajugajelli2002
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Write a query to display the total companies incorporated after 2020.

==> SELECT *FROM your_table_name WHERE incorporation_date > '2020-01-01';

Write a query to display the companies’ details whose revenue is less than 1L or
more than 1cr.

==> SELECT *FROM your_table_name WHERE revenue < 100000 OR revenue > 10000000;

Write a query to show the industry and the total companies with more than five
companies under each industry.

==> SELECT industry, COUNT(*) as total_companies FROM your_table_name GROUP BY


industry HAVING COUNT(*) > 5;

Write a query to show the top 11th to 20th positions in the taxpayer list.

==> SELECT * FROM your_table_name ORDER BY tax_percentage DESC LIMIT 10 OFFSET 10;

Write a query to show all companies' names and their parent companies' names.

==>SELECT c1.company_name, c1.parent_co_id, c2.company_name AS parent_company_name


FROM your_table_name c1
LEFT JOIN your_table_name c2 ON c1.parent_co_id = c2.company_id;

You might also like