Programming

Programming Questions? Ask a Programmer for Answers ASAP

Ask a Computer Expert,
Get an Answer ASAP!

Programming
This answer was rated:

I'm using adventureworks2008 and trying to create a query

I'm using adventureworks2008 and trying...
I'm using adventureworks2008 and trying to create a query but am lost and confused
JA: What programs and versions are you using?
Customer: adventureworks 2008 and Microsoft sql server management studio
JA: What is your ideal outcome? How can we solve this for you?
Customer: need a select statement that gives me the titles and file names of all documents produced for Karen Berge, Document Control Assistance at the company
JA: Anything else you want the programmer to know before I connect you?
Customer: no
Show More
Show Less
Ask Your Own Programming Question
Customer reply replied 5 months ago
Posted by JustAnswer at customer's request) Hello. I would like to request the following Expert Service(s) from you: Secure Remote Assistance.
Customer reply replied 5 months ago
Let me know if you need more information, or send me the service offer(s) so we can proceed.
Answered in 1 hour by:
7/6/2017
George Sibiya
George Sibiya, Computer Hardware Engineer
Category: Programming
Satisfied Customers: 233
Experience: PhD in Computer Science
Verified

Hi,

Welcome to JustAnswer and thank you for utilising our services.

Whats the name of your table and the list of its field/column names?

Regards,

G

Ask Your Own Programming Question
Customer reply replied 5 months ago
4 tables: Person.Person, HumaResources.Employee, Production.Document, and Production.ProductDocument

Ok thanks. And please provide column names in those tables?

Ask Your Own Programming Question
Customer reply replied 5 months ago
Here is a copy of the schema I am working from: www.defm.fmph.uniba.sk/.../odrobina/AdventureWorks2008_db_diagram.pdf

got it thanks. I'll post back

Ask Your Own Programming Question
Customer reply replied 5 months ago
I've attached the tables with column headings as well.

Please test this one for me:

SELECT title, filename FROM Product
JOIN Person ON Person.rowguid = Product.rowguid
JOIN Employee ON Employee.BusinessEntityId = Person.BusinessEntityId
Where Person.FirstName = 'Karen' AND Person.LastName = 'Berge' AND Employee.JobTitle = 'Document Control Assistance'

Ask Your Own Programming Question

Sorry it should be Document not Product:

SELECT title, filename FROM Document
JOIN Person ON Person.BusinessEntityID = Document.Owner
JOIN Employee ON Employee.BusinessEntityId = Person.BusinessEntityId
Where Person.FirstName = 'Karen' AND Person.LastName = 'Berge' AND Employee.JobTitle = 'Document Control Assistance

Ask Your Own Programming Question
Customer reply replied 5 months ago
when I execute it, I get the following message:
Msg 105, Level 15, State 1, Line 4
Unclosed quotation mark after the character string 'Document Control Assistance
'.
Msg 102, Level 15, State 1, Line 4
Incorrect syntax near 'Document Control Assistance
'.
Customer reply replied 5 months ago
I correct syntax error and get the following message:
Msg 208, Level 16, State 1, Line 1
Invalid object name 'Document'.

thanks for the update. Let me check it quickly

Ask Your Own Programming Question

Please test again:

SELECT title, filename FROM Production.Document
JOIN Person.Person ON Person.Person.BusinessEntityID = Production.Document.Owner
JOIN HumanResources.Employee ON HumanResources.Employee.BusinessEntityId = Person.Person.BusinessEntityId
Where Person.Person.FirstName = 'Karen' AND Person.Person.LastName = 'Berge' AND HumanResources.Employee.JobTitle = 'Document Control Assistance'

Ask Your Own Programming Question
Customer reply replied 5 months ago
get following error:
Msg 209, Level 16, State 1, Line 2
Ambiguous column name 'title'.
Customer reply replied 5 months ago
maybe use JobTitle?

Its a document title let me update it again

Ask Your Own Programming Question

SELECT Production.Document.title, Production.Document.filename FROM Production.Document
JOIN Person.Person ON Person.Person.BusinessEntityID = Production.Document.Owner
JOIN HumanResources.Employee ON HumanResources.Employee.BusinessEntityId = Person.Person.BusinessEntityId
Where Person.Person.FirstName = 'Karen' AND Person.Person.LastName = 'Berge' AND HumanResources.Employee.JobTitle = 'Document Control Assistance'

Ask Your Own Programming Question
Customer reply replied 5 months ago
Ok I did not get an error but nothing came forward. However, when I changed "assistance" to Assistant, I received 2 columns with 5 rows of data: Title and Filename columns
Customer reply replied 5 months ago
5 rows of data. I believe you did it
Customer reply replied 5 months ago
thank you very much.

Its a pleasure

Ask Your Own Programming Question
Customer reply replied 5 months ago
have a great morning. I might reach out to you sometime over next week.

Thanks, ***** ***** I'd be delighted to offer more assistance

George Sibiya
George Sibiya, Computer Hardware Engineer
Category: Programming
Satisfied Customers: 233
Experience: PhD in Computer Science
Verified
George Sibiya and 87 other Programming Specialists are ready to help you
Ask your own question now
Ask George Sibiya Your Own Question
George Sibiya
George Sibiya
George Sibiya, Computer Hardware Engineer
Category: Programming
Satisfied Customers: 233
233 Satisfied Customers
Experience: PhD in Computer Science

George Sibiya is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

Meet the Experts:

ATLPROG

ATLPROG

Computer Software Engineer

7,677 satisfied customers

MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

LogicPro

LogicPro

Computer Software Engineer

7,125 satisfied customers

Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

unvadim

unvadim

Computer Software Engineer

1,168 satisfied customers

Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.

lifesaver

lifesaver

Computer Software Engineer

950 satisfied customers

Several years of intensive programming and application development experience in various platforms.

ehabtutor

ehabtutor

Computer Software Engineer

936 satisfied customers

Bachelor of computer science, 5+ years experience in software development, software company owner

TheDoctor

TheDoctor

Software Engineer

893 satisfied customers

M.S. in Internet Information Systems

The-PC-Guy

The-PC-Guy

Software Engineer

797 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
How do you use an upgrade version of visual basic 5 to get
how do you use an upgrade version of visual basic 5 to get full functionality?is anyone there? … read more
Pete
Pete
Engineer
Bachelor\u0027s Degree
1,112 satisfied customers
After ms update excel is not working. Fri. Word looks OK
after ms update excel is not working JA: When did you last update Excel? Customer: Fri JA: Anything else you want the Software Expert to know before I connect you? Customer: word looks OK… read more
Kamil Anwar
Kamil Anwar
IT Consultant / Systems Engineer
Bachelor\u0027s Degree
428 satisfied customers
I have MS office 365 on a macbook pro. Excel is not working.
I have MS office 365 on a macbook pro. Excel is not working. onr particular file keeps coming up with not enough memory and will repair itself but it has lost all the spreadsheet formatting. This is a… read more
Richard
Richard
IT Manager
IT Manager, Consultant
3,247 satisfied customers
I use an Excel spreadsheet as a continuous log of notes,
I use an Excel spreadsheet as a continuous log of notes, calculations etc. … read more
ISP Cable Support
ISP Cable Support
High School or GED
75 satisfied customers
In Excel when I enter a year like 1921, the computer
In Excel when I enter a year like 1921, the computer automatically changes it to a date, 4/4/1905 due to one of the date/time formulas. How can I stop that conversion and preserve my 1921? … read more
George Sibiya
George Sibiya
Computer Hardware Engineer
233 satisfied customers
Need someone to help me with a file - cannot get it to work
need someone to help me with a file - cannot get it to work correctly but do not know where problem is … read more
George Sibiya
George Sibiya
Computer Hardware Engineer
233 satisfied customers
I have a spreadsheet that is part of a workbook. Without
I have a spreadsheet that is part of a workbook. Without warning, it very nicely "blue shades" every second line. Thank you. Very un-nicely I can no longer do a filter on it: Any ideas how,what,when,w… read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
797 satisfied customers
I want to use if and else and loops and methods for this
i want to use if and else and loops and methods for this project im doing but i dont know how to use it in the program this is what i have so far package therapy; import java.util.Scanner;public class… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,125 satisfied customers
OKPR128211 I'm looking for ways to improve my web
OKPR128211 I'm looking for ways to improve my web development knowledge. I know programming basics and now I want to contribute open source projects. My question is, how can I find a mentor or where s… read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
797 satisfied customers
I need help setting up a blog site for my 97 year-old
Hello. I need help setting up a blog site for my 97 year-old father. I've signed up for an account on BlueHost, but can not navigate further. When I click on the Wordpress link on Blue Host's welcome … read more
David L.
David L.
Bachelor\u0027s Degree
6 satisfied customers
I want to print labels from excel database. Yesterday. I
I want to print labels from excel database JA: When did you last update Excel? Customer: yesterday JA: What have you tried so far with your Excel? Customer: i have a database set up in excel JA: Anyth… read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
797 satisfied customers
Write a Java application using NetBeans Integrated
Write a Java application using NetBeans Integrated Development Environment (IDE) that calculates the total annual compensation of a salesperson. Consider the following factors: A salesperson will earn… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,125 satisfied customers
What is this Robs-MBP:~ rob$ Python. Do my first line of
what is this Robs-MBP:~ rob$ JA: Is there a specific language you're coding in? Customer: python JA: What's your objective for this Python project? Customer: do my first line of code JA: Anything else… read more
Pete
Pete
Engineer
Bachelor\u0027s Degree
1,112 satisfied customers
I have a difficult formula using an INDEX MATCH part of it
I have a difficult formula using an INDEX MATCH part of it is working but I need an additional parameter I also have 2 other questions I need an expert please … read more
Kris R
Kris R
IT Manager
Computing
2,420 satisfied customers
My insert toolbar is not working I cannot delete or copy and
my insert toolbar is not working I cannot delete or copy and paste; … read more
Pete
Pete
Engineer
Bachelor\u0027s Degree
1,112 satisfied customers
I can't figure out the code to merge 2 lists in vba. Vba
i can't figure out the code to merge 2 lists in vba … read more
George Sibiya
George Sibiya
Computer Hardware Engineer
233 satisfied customers
I have an assignment due and there are 8 questions that I am
Hi! I have an assignment due and there are 8 questions that I am stuck one and was wondering if you could help. (Python) … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,125 satisfied customers
For LogicPro only. Lab 7 - This assignment is built on top
For LogicPro only.Lab 7 - This assignment is built on top of Assignment 6. Add capability to handle Grade Book for different subjects (Chemistry and Computer Science). We will assume a maximum of five… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,125 satisfied customers
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.

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.

Show MoreShow Less

Ask Your Question

x