What is the id and name of the department store that has both marketing and managing department?
create table department_stores (dept_store_id varchar, store_name varchar, PRIMARY KEY (dept_store_id)); create table departments (dept_store_id varchar, department_name varchar, PRIMARY KEY (dept_store_id))
select t2.dept_store_id, t2.store_name from departments as t1 join department_stores as t2 on t1.dept_store_id = t2.dept_store_id where t1.department_name = "marketing" intersect select t2.dept_store_id, t2.store_name from departments as t1 join department_stores as t2 on t1.dept_store_id = t2.dept_store_id where t1.department_name = "managing"