Quantcast
Channel: Selecting ALL from a specific range - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Gordon Linoff for Selecting ALL from a specific range

I think group_concat() is the simplest solution. Assuming no duplicates, you can get all the projects for department 5 as:select group_concat(p.pnumber order by p.pnumber)from projects pwhere dnumber =...

View Article


Answer by Strawberry for Selecting ALL from a specific range

DROP TABLE IF EXISTS employees;CREATE TABLE employees (employee_id SERIAL PRIMARY KEY);DROP TABLE IF EXISTS employee_project;CREATE TABLE employee_project (employee_id INT NOT NULL, project_id INT NOT...

View Article


Selecting ALL from a specific range

I have the following question:Find the names of employees who work on all the projects controlled by department number 5.The tables I have are Employees (SSN), Works_On(SSN, PNumber), Projects(PNumber,...

View Article
Browsing latest articles
Browse All 3 View Live