« first day (3280 days earlier)      last day (1038 days later) » 

4:20 AM
Hey people,
Can I ask this case
there is user_list table
and class table:
class table
id view
112 FALSE
114 TRUE
I used sql command: select * from usr_list left join class on class.id = user_table.class_id and class.view = true where class.view = true
why above sql show both records data?
 
 
3 hours later…
7:06 AM
It shouldn't return both when you have the where. If you don't have the where it will because of the left join. See this example i made
https://dbfiddle.uk/?rdbms=sqlserver_2019&fiddle=df38b7daa3e6061ff39acc8c24d83dfa
 
 
6 hours later…
1:34 PM
@RandomPerson stackoverflow.com/a/3487726/2131576. you could have googled this tho
 

« first day (3280 days earlier)      last day (1038 days later) »