Results 1 to 4 of 4
  1. #1
    Terrible is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Dec 2014
    Location
    Illinois
    Posts
    2

    Question SQL Queries: Help for a simple project

    I am completely new to Access. For a practice project, we've made two tables for 'Customer Data' and 'Customer Orders', full of hypothetical data. I got through that easily enough. We're then asked to create six different SQL Queries that fulfill the following requirements:

    1. Find all male customers in the database. Show all the fields from the customers table for these customers.
    2. Find all orders with NUMORDERLINES greater than 3. Show only the following fields from the orders table: CUSTOMERID, ORDERID, TOTALPRICE.


    3. Find all orders from the year 2007. Show all fields from the orders table.
    4. Find all customers whose first name is ‘JAMES’. Show all fields from the customers table.
    5. Find all orders whose price is greater than $200 and that belong to clients in ‘NY’. Show FIRSTNAME, ORDERDATE, TOTALPRICE, CITY, STATE, ZIPCODE.
    6. Find all orders whose price is greater than $100 and where the PAYMENTTYPE was either ‘VI’ or ‘MC’? Show FIRSTNAME, ORDERDATE, TOTALPRICE, PAYMENTTYPE.

    I've attempted the first three, but the results don't seem accurate when I run them. I can show you what I have but I'm almost positive they're incorrect. I don't know how easy it would be to work with this without the database itself, but if anyone could help me get started on these I would be really grateful.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,641
    These are all basic SELECT queries. You are using the Access query builder? Post the SQL statements of attempted queries.

    Suggest not use all caps in naming convention - not as easy to read as LastName, FirstName. Also suggest no spaces in naming convention.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Terrible is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Dec 2014
    Location
    Illinois
    Posts
    2
    Quote Originally Posted by June7 View Post
    These are all basic SELECT queries. You are using the Access query builder? Post the SQL statements of attempted queries.

    Suggest not use all caps in naming convention - not as easy to read as LastName, FirstName. Also suggest no spaces in naming convention.
    Thank you for responding! Sorry about the naming conventions. Those were predetermined by the project outline, so I didn't have much of a choice in them. We were told to use the 'Query Design' in Access, view it in SQL View, and then type in our formulas. I need to go to the library to send you what I have, but they are indeed SELECT queries. I'll get back to you as soon as I can.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849
    Further to June's request, can you show us the fields in your tables also.
    Good luck with your project

Please reply to this thread with any new information or opinions.

Similar Threads

  1. New Project for me - It should be simple
    By aymanmb in forum Access
    Replies: 1
    Last Post: 12-07-2013, 02:36 PM
  2. Replies: 2
    Last Post: 05-10-2012, 12:50 PM
  3. Replies: 1
    Last Post: 04-25-2012, 10:51 AM
  4. Summary Queries?? project due tomorrow
    By sloppyjoe778 in forum Queries
    Replies: 7
    Last Post: 11-22-2011, 09:41 PM
  5. Access Pro in Queries need it for project
    By nemolist in forum Programming
    Replies: 2
    Last Post: 10-11-2011, 07:46 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums