Home > SQL > Case statement with COUNT in SQL



Case statement with COUNT in SQL

In this article, we will explain how to use case statement with COUNT in SQL.


In this article, we will explain how to use case statement with COUNT in SQL.

In this example, We have created a table of stock buy and sell. and added some of stock record in table .We are using case statement for count of qty based on buy and sell.

 

SQL

We have explained a create table statement after performing that statement, we have shared the output below.

Screenshot

 

Case statement with COUNT in SQL

 




Note: All contents are copyright of their authors.



Comments



Leave a Reply

Comment:*
Email ID:*


Name:*