473,511 Members | 16,864 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

inserting/retrieving data with relational databases

Hi all,

I am creating a database based site that keeps track of books, who has read
them and the comments they have.

After a little help in M.P.I.asp.DB I managed to create a database (access
2000) as follows

USERS TABLE

record_ID (auto number)
name
email (primary key)
password
BOOKS TABLE

record_ID (auto number)
book_title (primary key)
REVIEWS TABLE

record_ID (auto number)
unique_ID_book (linked to primary key in books table)
unique_ID_user (linked to primary key in users table)
review
date_reviewed

I linked the tables using the graphical interface in Access

now, what I'm not sure about is how I go about entering and retrieving the
data into these tables.

I can enter each users details into a new record (using simple form data)
and each is assigned a unique identifier (email address in this case), he
same thing with the books table (with book name being the unique
identifier).

then I insert into the reviews table, the unique identifier for the user,
the unique identifier for the book and the review data.

if it's not a new user or a new book then I simple add the unique identifier
for the user and the book into the review table along with the review

is this correct?

now...the data retrieval

do I perform a query on the reviews table, extract the data, and then use
this data to perform further queries on the users table and books table??

e.g lets say I'm looking for all reviews for book1,

I search the books table for the unique identifier for book1

Once I have the unique identifier for book1, I then search the reviews table
for all occurences of this identifer.

for each result I get, I then have to take the unique identfier for the
users who have read this book and the search the users table to get the
users details..
is that how it's done? and if so, I fail to see the need for the linking??

or am I missing something very obvious?
many thanks for your help
Nov 12 '05 #1
0 1084

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

Similar topics

4
2005
by: Little PussyCat | last post by:
Hello, I have had a request, one of our tables is used as a report and I have been asked that all fieldnames for months have dashes in them, like Jan-05 instead of Jan05 and so on... Now what...
0
2287
by: Stylus Studio | last post by:
DataDirect XQuery(TM) is the First Embeddable Component for XQuery That is Modeled after the XQuery API for Java(TM) (XQJ) BEDFORD, Mass.--Sept. 20, 2005--DataDirect Technologies...
5
1571
by: Martin Marques | last post by:
Has someone read this: http://www.wiscorp.com/sql/Sql99_p2.zip Are this guys at Whitemarsh Information Systems Corporation important in the SQL99 writing? -- select 'mmarques' || '@' ||...
0
1564
by: Alistair | last post by:
Hi all, I am creating a database based site that keeps track of books, who has read them and the comments they have. After a little help in M.P.I.asp.DB I managed to create a database (access...
9
3279
by: Tony Lee | last post by:
Some time a ago, on this newsgroup the following comments were made in recommending good references for Access (2003) >I used to recommend Dr. Rick Dobson's, "Programming Access <version>" for...
36
2823
by: Crirus | last post by:
Hi I have about 1000 records of users to store.. I dont like the ideea of a database server... How to store does data in a structured way? An XML? How big can became such an xml, because I...
5
2219
by: aniket_sp | last post by:
i am using a data adapter and a dataset for filling and retrieving data into .mdb database. following is the code..... for the form load event Dim dc(0) As DataColumn Try If...
0
1824
by: Frank Swarbrick | last post by:
Is Websphere Information Integrator supported on Linux for zSeries? Here's the deal... We are a VSE mainframe shop. We do not currently have access to any relational databases from VSE. We use...
7
1640
by: Pradeep | last post by:
Hello, I need to take a set of input tables and create an XML output file. The format of the XML output must be user-definable and must be intuitive enough for non-techies to use. input...
7
1788
by: erikcw | last post by:
Hi, I'm working on a web application where each user will be creating several "projects" in there account, each with 1,000-50,000 objects. Each object will consist of a unique name, an id, and...
0
7423
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7081
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...
0
5668
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5066
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3225
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1576
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.