WebSeitz/wikilog
SQL
It may look like a crisis, but it's only the end of an illusion.

(backlinks off) (map off)
(search off)
last edited by BillSeitz on Oct 14, 2008 3:08 am

[Structured Query Language]

the "standard" language for querying (and inserting, updating, etc.) a .


consider a "software management system" that keeps the following tables: .project(project-id,title,clint's-id,date of starting expected duration). .clints(clints-id,clint-name,clint-address,clint-e-mail-address). .person9person-id,person-name,person-address,person-e-mail-address). project-person(project-id,person-id).

an employee may be working on more than one project at a time and one project at a time and one project may have more than one employee working on it. creat appropriate referential integrity constraints and creat the tables.

write and run the following queries on the tables: Find the client-id and client name of the client who have given maximum number of projects to the company. find the list of all the project names on which an employeenamed"Dushyant" has worked. find the list of names of all those staff members who have worked on all the projects of client "[TATA]". find the projects which will be comleted this week(Make and state suitable assumptions). Find all the clients who have not given any project. Also find the person who is not working on any project at all.

See : | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |


 




Bill Seitz, fluxent at gmail dot com, Weblog