473,387 Members | 1,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Check availability

Hi, posting again with a more specific question.

I am trying to create a query that checks the availability of a unit
based on TBLUNITS and TBLBOOKINGS. I figured I could run a query to
show available from and to dates based on the TBLBOOKINGS, however if
the unit has no bookings at all it does not show up in my query
results.
I can understand why this is happening, TBLUNITS has a primary key of
UNITNUMBER and this field is related to the UNITNUMBER lookup field in
TBLBOOKINGS. So my query is only returning unit numbers that exist in
the TBLBOOKINGS table. However I do not know how to solve this
problem.

Is there a way to get round this (what I really mean is how do I
design this properly!)?

Sep 26 '07 #1
1 1762
keri wrote:
Hi, posting again with a more specific question.

I am trying to create a query that checks the availability of a unit
based on TBLUNITS and TBLBOOKINGS. I figured I could run a query to
show available from and to dates based on the TBLBOOKINGS, however if
the unit has no bookings at all it does not show up in my query
results.
I can understand why this is happening, TBLUNITS has a primary key of
UNITNUMBER and this field is related to the UNITNUMBER lookup field in
TBLBOOKINGS. So my query is only returning unit numbers that exist in
the TBLBOOKINGS table. However I do not know how to solve this
problem.

Is there a way to get round this (what I really mean is how do I
design this properly!)?
If you open up the query builder there's probably a link line between
the two tables. Double click on the line. You should get 3 options;
recs from both tables where records match and 2 other options for all
recs from one of the tables and include matching recs from the other.
Sep 26 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Dan Williams | last post by:
Can anyone tell me how to go about creating my own custom ASP page that can show several different peoples availability from their Outlook/Exchange 2000 calendars? I don't want to have to ask...
11
by: Sebastian Schöps | last post by:
Hello all, I have to access a website which does a stupid browser check and only accepts Netscape 4.7. The problem is that I have to access the website with Mozilla or Internet Explorer. ...
4
by: Anil | last post by:
Hi All, We have hundreds of images on our server. Depending on the ItemID (fetched from database) we display the image to the client. For ex. if the ItemID is 20045 then, we display the image...
1
by: Devhead | last post by:
i have an MS Word Document that i have created from an SQL server db and once created it is opened. If i try to create the same document with the same filename, i get an error. how do i check to...
6
by: test2000 | last post by:
Hello I'm trying to write a javascript that checks if a server/host is available. To be more precice. I would like to check if the browser can read an XML file from a server. If not the script...
5
by: Puja | last post by:
Hi all, I need to check domain name availibility on one of my page in website. I do not want to let user click a link which leads to sites which check for domain name but I want check on my...
4
ganeshkumar08
by: ganeshkumar08 | last post by:
Hi SQL friends, I friends i need to check whether the record is already available.. ie. Before Inserting and Updating which are the validations to be done. I need a standard solution for this....
3
by: nRk | last post by:
Hi, Is there any way to check the availability of a web service without including any extra web method? Thank & regards nRk
4
by: visweswaran2830 | last post by:
Hi, I created a web-page which contains functions like add(),sub(),divide().. consider I am passing two value and functions name from first page. Then I received the values from first page and I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.