0% found this document useful (0 votes)
9 views1 page

Text 4

The document outlines various SQL, Power BI, and Python queries and concepts, including finding the second-highest salary, calculating daily transactions, and understanding data security in Power BI. It also covers advanced SQL topics like foreign keys, UNION operations, and performance issues. Additionally, it discusses data manipulation in Python using pandas and the differences between data structures.
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)
9 views1 page

Text 4

The document outlines various SQL, Power BI, and Python queries and concepts, including finding the second-highest salary, calculating daily transactions, and understanding data security in Power BI. It also covers advanced SQL topics like foreign keys, UNION operations, and performance issues. Additionally, it discusses data manipulation in Python using pandas and the differences between data structures.
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

1. Write a query to find the second-highest salary in a department.

You
might use ROW_NUMBER or DENSE_RANK() to achieve this.
2. Create a query to calculate the total number of transactions per user
for each day. This typically involves GROUP BY and COUNT() for aggregation.
3. Write a query to select projects with the highest budget-per-employee
ratio from two related tables (projects and employees). This tests your ability to
handle complex joins and aggregations.
Power BI :
1. Explain the difference between Import and Direct Query modes. Which
would you choose for large datasets? (Direct Query enables real-time data but may
be slower, whereas Import is faster but static.
2. What are slicers, and how do they differ from visual-level filters?
Discuss their impact on data in a Power BI dashboard.
3. How do you implement Row-Level Security (RLS) in Power BI?
Explain how you would restrict data access to specific users or groups.
4. What is a paginated report, and when would you use it?
These are ideal for multi-page outputs like invoices or billing statements.
Python :
1. Write a Python script to identify unique values in a list and count
their occurrences. This tests your understanding of sets and dictionaries.
2. How would you use pandas to merge two datasets and calculate total
sales for products with valid promotions? This involves merge), groupby), and basic
data analysis functions.
3. Explain the differences between lists, tuples, sets, and dictionaries
in Python, highlighting their use cases in data manipulation and analysis.
4. Preparing for an SQL interview? Here are advanced key questions to test
your knowledge!
5. What is a foreign key and how does it work?
6. Explain the difference between UNION and UNION ALL.
7. How do you use the CASE statement in SQL?
8. What is a view in SQL and how is it used?
9. Describe the difference between CHAR and VARCHAR data
10. types.
11. 6 How do you perform a full-text search in SQL?
12. What are the ACID properties in a database?
13. 8
14. Explain the concept of a self-join and provide an example.
15. How do you use the COALESCE function in SQL?
16. O What is a cursor in SQL and when would you use it?
17. How do you handle duplicate records in SQL?
18. Explain the difference between RANK(, DENSE_RANKO,
19. and
20. ROW_NUMBER).
21. What is a trigger in SQL and how do you create one?
22. How do you use the EXISTS clause in SQL?
23. 1 5 What are common performance issues in SQL and how do you address
them?

You might also like