Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

intersect and count in sql

SELECT COUNT(*) FROM
(
 SELECT id FROM table1 where  col1 like '%abcd%'
 intersect
 SELECT id from table2 where col2 like '%efgh%'
) I
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #intersect #count #sql
ADD COMMENT
Topic
Name
1+1 =