Skip to content

Tag: sql

Group by in one table

I have list of users and a visits table . I want a list of users whose profile has been viewed : visits table ╔═════════════════╗ ║ vistor visited ║ ╠═════════════════╣ ║’26000′, ‘26023’ ║ ║’26000′, ……

SQL how to compare two fields?

Could I get a little help/direction on this? I am new to SQL and having a difficult time finding what direction to go in here. I have 2 fields I need to compare and supply an answer based on what is …