About Me

My photo
I am an MCSE in Data Management and Analytics, specializing in MS SQL Server, and an MCP in Azure. With over 19+ years of experience in the IT industry, I bring expertise in data management, Azure Cloud, Data Center Migration, Infrastructure Architecture planning, as well as Virtualization and automation. I have a deep passion for driving innovation through infrastructure automation, particularly using Terraform for efficient provisioning. If you're looking for guidance on automating your infrastructure or have questions about Azure, SQL Server, or cloud migration, feel free to reach out. I often write to capture my own experiences and insights for future reference, but I hope that sharing these experiences through my blog will help others on their journey as well. Thank you for reading!

some basic select query practice

 Some basic Select Query Practice



Based on above table structure generate the output of below query.

A.Write a query to retrieve the total number of customers in the Customer table.
B.Write a query to retrieve the addresses of all customers in the CustomerAddress table, along with their corresponding first and last names from the Customer table.
C.Write a query to retrieve the number of customers per country in the Address table, sorted by country name in ascending order.
D.Write a query to retrieve the total number of distinct email addresses in the Customer table.
E.Write a query to retrieve the names and addresses of all customers who live in California.
F.Write a query to retrieve the number of customers who have a password hash value in the Customer table.
G.Write a query to retrieve the first and last names of all customers who have a salesperson assigned to them.
H.Write a query to retrieve the number of unique city names in the Address table.
I.Write a query to retrieve the first and last names of all customers who have a company name assigned to them.
J.Write a query to retrieve the first and last names of all customers who do not have a middle name assigned to them.



No comments: