User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Database Design section within the Web Development category of DaniWeb, a massive community of 373,528 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,765 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Database Design advertiser:
Views: 3641 | Replies: 5
Reply
Join Date: Mar 2004
Posts: 15
Reputation: sgtrock40 is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
sgtrock40's Avatar
sgtrock40 sgtrock40 is offline Offline
Newbie Poster

Query Building

  #1  
Apr 1st, 2004
Help. I'm trying to write a database for vehicle reservations and I can't figure something out.
All vehicle reservations are going to have reservation dates (obviously). I have a table set up to list vehicles by USN # (like a VIN #), vehicle body type (pick-up, suburban, etc.), and a few other fields. I want to be able to type in the required dates, and body type and have the dbase show me what vehicles are NOT reserved during the required timeframe. Any advice? Thanks in advance.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2002
Location: New York
Posts: 862
Reputation: Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light 
Rep Power: 12
Solved Threads: 16
Moderator
Tekmaven's Avatar
Tekmaven Tekmaven is offline Offline
The C# Man, Myth, Legend

Re: Query Building

  #2  
Apr 2nd, 2004
Well what programming language are you using? Are you just doing this straight in something like T-SQL (SQL Server 2000)?
-Ryan Hoffman

ASP.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
Reply With Quote  
Join Date: Mar 2004
Posts: 15
Reputation: sgtrock40 is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
sgtrock40's Avatar
sgtrock40 sgtrock40 is offline Offline
Newbie Poster

Re: Query Building

  #3  
Apr 3rd, 2004
Soory, I guess it would be helpful to know that huh? I'm using it in MS Access.
Reply With Quote  
Join Date: Feb 2002
Location: New York
Posts: 862
Reputation: Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light 
Rep Power: 12
Solved Threads: 16
Moderator
Tekmaven's Avatar
Tekmaven Tekmaven is offline Offline
The C# Man, Myth, Legend

Re: Query Building

  #4  
Apr 4th, 2004
Well, Microsoft Access isn't a database ;-). It's a GUI frontend for Microsoft JET Databases ;-).

Microsoft Access allows you to make "Forms" and "Reports" - something that a strict database engine wouldn't allow. Forms are the route to your answer: they use VBA as their language. Check out help ;-)
-Ryan Hoffman

ASP.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
Reply With Quote  
Join Date: Apr 2004
Posts: 207
Reputation: suRoot is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 6
suRoot's Avatar
suRoot suRoot is offline Offline
Posting Whiz in Training

Re: Query Building

  #5  
Apr 7th, 2004
ok im guessing that you want to make it so when you run a report it prints all of the records that Are of a specific Body shell, and are NOT rented between certain dates?

This means you are going to need to have a table with vehicle vin and rented dates both of which can't be primarys

i,e,

|VIN | Date Rented From | Date rented too|Shell|
________________________________________________
| 34224| 23/04/04 |28/04/04 | van |
|34224| 02/05/04 |04/05/04 | van |
|______|__________________|______________|_______

And the Query is
under shell purely the type
under date rented from NOT=> (equal to the date they want) AND NOT=<(date they want to finish)

im not sure on the syntax of ACESS as its under powerd but i would personally do it in VB/s

hope that helps?

remember to rate my post thigny
Reply With Quote  
Join Date: Mar 2004
Posts: 15
Reputation: sgtrock40 is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
sgtrock40's Avatar
sgtrock40 sgtrock40 is offline Offline
Newbie Poster

Re: Query Building

  #6  
Apr 7th, 2004
Thanks, I'll give that a try
As Americans - We Wept
As Americans - We Mourned
As Americans We Stand United and Strong
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Database Design Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Database Design Forum

All times are GMT -4. The time now is 6:38 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC