Home > SQL > SQL count within case statement



SQL count within case statement

In this article, we will explain how to use count within case statement in SQL.


In this article, we will explain how to use count within case statement 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

 

SQL count within case statement

 




Note: All contents are copyright of their authors.



Comments



Leave a Reply

Comment:*
Email ID:*


Name:*