S
S
sandrosklyarov2018-03-27 14:49:59
SQL
sandrosklyarov, 2018-03-27 14:49:59

SQL how to find records with same values ​​of different columns?

The table has keyword and title fields
How to execute a query that will find records whose keyword field value is equal to the title field value

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cyril, 2018-03-27
@sandrosklyarov

SELECT * FROM table WHERE keyword = title is a bit too obvious.
Maybe you need to find different posts that have the same keyword and title?
SELECT * FROM table t1, table t2 WHERE t1.keyword = t2.title, something like this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question