Jump to content

problem in HAVING statement


GOBIN

Recommended Posts

hi ,  i just started learning SQL on w3 school and i have a question :

in the SQL HAVING statement course last example i tried to write the code then checked the example but it didn't work 

this my code

 2.thumb.png.4b808551f24bc6d3ef7054884bf9276a.png

and this is the example

1.thumb.png.590ad3c6d68ff1181ac4c05a65b08aaf.png

thnk you .

Link to comment
Share on other sites

It’s not clear to me whether your second example worked.  It looks like it did.  Did it?
If not, what were you expecting?

 

Link to comment
Share on other sites

13 hours ago, niche said:

It’s not clear to me whether your second example worked.  It looks like it did.  Did it?
If not, what were you expecting?

 

the second exemple is not mine , it's on the tutorial , mine is the first one and it didn't work

 
Link to comment
Share on other sites

So, why not do the join?

EDIT:

I’d do your OR differently:

WHERE 

this = that AND ln =

OR 

this = that AND ln =

 

Edited by niche
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...