Skip to content

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 …

SQL Count occurrences of multiple columns

I want to count occurrences of Number 3 from multiple columns with group by Primary Key. I have a table like this. And I have tried with this. But my output is But expected output is something …

Laravel specification search

Im building ecommerce website and i want to ask what is the best way to search specifications of product.I have a field in database with specification that can be stored as json or as php array.Is …