Skip to content

SQL – WHERE NOT EXISTS [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question I have a table with employees ID NAME SALARY and I am getting the employee with the most sala…

2 Nested queries from the same table?

So I have 3 tables User Table UserId User Language Table LanguageId Language Fluency User Language Table UserLanguageId UserId LanguageId Basically what I need is a query where PriLang would be …

Mysql SELECT in SELECT

I have a table like this : +——–+—————————————+ | CandId | Speak | +——–+—————————————+ | 1 | English …

SQL CASE with multiple join

I am trying to run a sql select code as below. I am trying to fetch the trans_date which will either be in asutrans or asuhistr. But the below code doesnt give me any value and nor does it fail. Do you think we can use CASE statement like that? If I run the codes separately, then it does give

how to add select statement in IN clause in pivot

iam using pivot table in SQL query.. i need to make some columns as rowss, but i need to use select statement in IN clause where we givt option like this normally we give option like but with select statement its giving me error?? what can be done. Answer use this i got answer from some of google posts