Need small help in SQL Query

yeahhub

Regular Member
Joined
Jun 5, 2017
Messages
290
Reaction score
41
Please help me to solve one small problem

Below image is a sample data of my Master Data Table

CtpIUGe


And this is what i want to achieve the count of following records as per following screenshots

meqHLS6
 
i can't understand for your description what do you need...a count ?
Example to count all Open status for A1 application

SELECT COUNT(vulnstatus) FROM vulnsummary WHERE vulnstatus = 'OPEN' AND projid = 'A1 Application';
 
I want the count from Vulnsummary table but based on Dataset table, i think some Inner Join function will apply into this
 
Basically i want the count of High Medium and Low values in vulnsummary table.

Got it ?
 
I want the count from Vulnsummary table but based on Dataset table, i think some Inner Join function will apply into this
If you know you need an inner join then this would imply you have an understanding of SQL, I would try more dedicated coding forums first
 
If you know you need an inner join then this would imply you have an understanding of SQL, I would try more dedicated coding forums first

I know it can only be done with INNER JOIN but i don't know much about this.. still looking for someone who can make a query for me
 
yes then you need to add an inner join statement
 
I know it can only be done with INNER JOIN but i don't know much about this.. still looking for someone who can make a query for me
You’re asking on BHW for a coding related question. You will find the answer a lot quicker on a coding forum.
Failing that learn how to use the inner join command.

Hint: you need to join on vtitleid on datasetid
 
You’re asking on BHW for a coding related question. You will find the answer a lot quicker on a coding forum.
Failing that learn how to use the inner join command.

Hint: you need to join on vtitleid on datasetid

Yea i thought, there are so many programmers here, let see
i also posted on reddit, and other coding forums, but didn't get any reply yet

These inner join functions are so hard to understand lol
 
I also posted the same on stackoverflow, but their some dumb guys always marked my question as Duplicate..
 
I also posted the same on stackoverflow, but their some dumb guys always marked my question as Duplicate..
This would suggest your question or a similar question has been asked.
Why not invest your time in learning SQL?
 
This would suggest your question or a similar question has been asked.
Why not invest your time in learning SQL?

Actually this is one small assignment which I've to submit by tomorrow morning and due to WFH, i didn't get much time.

Already engaged with some other things.
 
Because you know that ABC equals low severity, you could quickly use the following Select Count(*) from vulnsummary Where vtitleid = ‘ABC’ to give you all low severity codes for all application id’s
 
Actually this is one small assignment which I've to submit by tomorrow morning and due to WFH, i didn't get much time.

Already engaged with some other things.

maybe you’re studying the wrong course if you can’t work this out, or you’ve done the typical student thing and left it to the last minute to complete
 
Have fun! No one will do your homework. You know that!
Code:
https://www.w3schools.com/sql/sql_join.asp
 
Back
Top