How to use case in a where clause – SQL Server [closed]

I have a query that looks like this:

SELECT col1,col2
FROM dbo.table1

Now I am requested to filter out using a case clause:

if col1 > 5 then display only col2 > 10
and if col1 <= 5 then display only col2 > 20

Is there a way to do that?

Crafting Perfection: The Artistry Behind Exquisite Diamonds
Business

Crafting Perfection: The Artistry Behind Exquisite Diamonds

In the realm of precious gems, one stone stands above the rest in brilliance, elegance, and timeless allure: the diamond. Renowned for its unparalleled beauty and enduring symbolism, diamonds have captivated hearts and minds for centuries, earning their place as the undisputed number one choice for discerning connoisseurs and sentimental souls alike. The Enduring Allure […]

Read More
Digital Wayfinding : What It Is And How To Best Use It?
Business

Digital Wayfinding : What It Is And How To Best Use It?

The digital age has transformed the way we interact with the world, providing us with innovative tools to enhance our daily experience in a variety of environments. One of these tools is digital navigation, a technological solution that guides people through complex physical spaces efficiently and effectively. What is Digital Navigation? Digital wayfinding refers to […]

Read More
Unlocking Green Capital: Financing Renewable Energy Projects in the UK
Business

Unlocking Green Capital: Financing Renewable Energy Projects in the UK

In the pursuit of a more sustainable future, financing renewable energy projects is essential for businesses in the UK. Accessing green capital enables companies to invest in renewable technologies, reduce carbon footprints, and contribute to national climate goals. This article explores various avenues for financing renewable energy projects in the UK and highlights the role […]

Read More