Login|Contact Us
Question and Answer

Programming

Ask a Programming Question, Get an Answer ASAP!

  • Ask A Question
  • Browse Answers
  • Meet The Experts
  • How JustAnswer Works

Need 3 very simple SQL queries written. Am new to SQL and need

 
jatechexpert's Avatar
  • Answered by:jatechexpert
  • Computer Software Engineer
  • Positive Feedback: 96.8 %
  • Accepted Answers: 1285
Verified Expert
in Programming

Recent Feedback

Positive
Great Help! Will use again!
Positive
Type your review here...
Positive
great job
Positive
Awesome, thank you! I really appreciate your quick response and the solution.
Positive
Work was excellent and will recommend to everyone who needs programming help.
Positive
nice job
Positive
Great! Thank you!
Positive
Fast response and quality work
Positive
very helpful and did exactly what was asked for
Positive
Thanks

Customer Question

Need 3 very simple SQL queries written. Am new to SQL and need them for an assignment.


Example:
Retrieve the names of all employees who work on every project located in Houston

 

Optional Information:
Language (or Software): SQL

Submitted: 316 days and 23 hours ago.
Category: Programming
Value: £21
Status: CLOSED
Picture
Expert:  Aitizaz replied 316 days and 23 hours ago.


Aitizaz :

Hello and welcome! My name is XXXXXXX XXX I look forward to assist you today with your question and provide the best answer possible

Aitizaz :

please do let me know the name of the table and its fields so that i could write the query for you

Customer :

Hi so can you write these for me?

Aitizaz :

yes i will write the queries for you. please provide me the name of the table and the columns with the queries you want

Customer :

I will attach a word doc with the info

Aitizaz :

sure

Customer :

EMPLOYEE

NAME

SSN

BDATE

SEX

SALARY

SUPERSSN

DNO

DEPARTMENT

DNAME

DNUMBER

MGRSSN

MGRSTARTDATE

DEPTLOCATION

DNUMBER

DLOCATION

PROJECT

PNAME

PNUMBER

PLOCATION

DNUM

WORKSON

ESSN

PNO

HOURS

DEPENDENT

ESSN

DEPENDENT_NAME

SEX

BDATE

RELATIONSHIP

Integrity Constraints:

Primary Key Foreign Key

EMPLOYEE.ssn = DEPENDENT.essn

EMPLOYEE.ssn = WORKSON.essn

EMPLOYEE.ssn = DEPARTMENT.mgrssn

EMPLOYEE.ssn = EMPLOYEE.superssn

DEPARTMENT.dnumber = EMPLOYEE.dno

DEPARTMENT.dnumber = DEPTLOCATION.dnumber

DEPARTMENT.dnumber = PROJECT.dnum

PROJECT.pnumber = WORKSON.pno

  1. Retrieve the name of employees whose salary is greater than the average salary of his or her corresponding department

  1. List the names of departments, and the total number of employees with salaries greater than $27,000, and only those departments with more than one employee.

  1. Retrieve the names of all employees who work on every project located in Houston

Customer :

All relevant info, sorry couldn't attach

Aitizaz :

please type them in a word document and upload to www.wikisend.com

Customer :

ok,

Aitizaz :

thank you

Customer :

http://wikisend.com/download/157840/EMPLOYEE.docx

Customer :

There ya go

Aitizaz :

when do you need them

Aitizaz :

?

Customer :

In about 4 hours?

Aitizaz :

can you send me the database file as well so that i could test the queries?

Customer :

ok ill send now in a jiffy

Aitizaz :

thank you!

Customer :

http://wikisend.com/download/456568/EMPLOYEE ddl & dml.docx

Customer :

DDL AND DML

Customer :

Thankd for this

Aitizaz :

thank you very much. i will be back with the queries in a while

Aitizaz :

?

Aitizaz :

can you provide me some sample data under the columns in a word document

Customer :

Would it be better if I sent you a shot of the tables and info included

Aitizaz :

that would be of great help. thank you so much

Customer :

Here ya go

Customer :

http://wikisend.com/download/290510/Tables and data.docx

Aitizaz :

Ok!

Aitizaz :

can i take more time on this? i have a pre-schedule engagement

Aitizaz :

if i take 6-8 hours?

Customer :

Cool but its 8 hours max im afriad I got to hand it up then!

Aitizaz :

yes i will do it before that

Aitizaz :

thank you very much!

Aitizaz :

due to my engagements, i will not be able to complete the assignment in time. so i will opt out so that any other expert can help you on this. thank you very much for your patience

Picture
Expert:  jatechexpert replied 316 days and 17 hours ago.

hi

i am jatechexpert
i will help you

Accepted Answer

Picture
Expert:  jatechexpert replied 316 days and 17 hours ago.

hi

here is the answer link below

http://ge.tt/50mFBtJ/v/0

hope this helps

Expert TypeComputer Software Engineer
Category: Programming
Pos. Feedback: 96.8 %
Accepts: 1285
Answered: 7/1/2012

Experience: Master of Computer Application plus 5+ year experience in Software development

Ask this Expert a Question >
 
Tweet

7 Programmers are Online Right Now

Ask Your Question Now
Programming Questions Date Submitted
Help with my final assignment for VB 5/9/2013
I am new to C programming, and this is an assignment problem. 5/9/2013
Another programming question for you the link is as follows 5/8/2013
Programming question help the link is as follows for the question 5/8/2013
i dont know programming i create OKPR508211. 5/8/2013
I need a programmer to help me with a couple of questions I 5/7/2013
Design and write a program (VB) that collects the following 5/7/2013
To RajStatements Assume that quest is an integer variable 5/6/2013
I need help on this Java programming problem. I included the 5/5/2013
a java programming question 5/5/2013
RSS
Next 10 >
Ask A Programmer
Type Your Programming Question Here...
characters left:

Top Programming Experts

See More Programmers

In The News

Nbc
Washington Post
New York Times
Cnn
Learn More

How It Works

  • Ask an Expert
  • Get a Professional Answer
  • Ask Followup Questions
  • 100% Satisfaction Guarantee
Learn More
close
Find Expert answers related to your question.
Sign up using email
We will never post anything without your permission.
Already have an account? Sign in

Ask a Programmer

Get a Professional Answer. 100% Satisfaction Guaranteed.
124 Programmers are Online Now
Type Your Programming Question Here...
characters left:
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.
Truste
Contact Us | Terms of Service | Privacy & Security | About Us | Our Network
© 2003-2013 JustAnswer LLC
  • Pearl.com
  • JustAnswer UK
  • JustAnswer Germany
  • JustAnswer Spanish
  • JustAnswer Japan