473,379 Members | 1,190 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,379 software developers and data experts.

Creating a many to many table

can somebody help me create a many to many relationship table, i am having trouble with the syntax error.
1) i want to create a PRODUCT TABLE with two field id and name.
2) i want to then create ORDER TABLE.

3) I then want to create the ORDER_ITEMS TABLE, that will relate between the product and order tables.It should have it primary id, the product table id, the order table id and the quantity ordered in it.
May 4 '12 #1
3 1754
Rabbit
12,516 Expert Mod 8TB
You've told us what you want to do. You haven't told us what the problem is.
May 4 '12 #2
the problem am having is that i created the product and the order table but the order_items is not executing and its saying mysql syntax error check the manual. so i need the right codes to that will includes the two foreign keys in the order_items table
May 4 '12 #3
Rabbit
12,516 Expert Mod 8TB
You say there's a syntax error but you haven't posted any syntax.
May 4 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Mikey | last post by:
Hi all. In the process of trying to figure this thing out, I've been doing the old "stand around in the store and read as much as possible before you look like a derelict" thing. This time, with...
0
by: Ex-Em-El | last post by:
I have a problem in creating a dynamic table in the same xml : 1.xml: <?xml version="1.0" standalone="yes"?> <?xml-stylesheet type="text/xsl" href="2.xsl"?> <aaa...
11
by: randi_clausen | last post by:
Using SQL against a DB2 table the 'with' key word is used to dynamically create a temporary table with an SQL statement that is retained for the duration of that SQL statement. What is the...
1
by: ning | last post by:
It's easy to present "One - Many" relationship in XML, but how to present "Many - Many" relationship in XML?
2
by: alex.mcshane | last post by:
Hi - I would be grateful for guidance on the following. The following concerns the DDL for Creating an Auxilliary Table that is associated with the CLOB column of a 'base' Table. (I have just...
10
by: Yeah | last post by:
Is there a way to tell CSS to specify one font for a table that has many cells in which the font is being used? As in, one font that represents the table itself (rather than specifying in every...
3
by: CanFlightSim | last post by:
I am not very strong in databases, so you must forgive any obvious stupidity. After having a good look at our Sales Managemend database, we decided there is something basially wrong. Our Agents...
2
by: The Frog | last post by:
Hello everyone, I am trying to find way of writing an SQL query that can produce missing record combinations across a many to many type setup in Access. The three tables used are as follows:...
2
by: tommurray | last post by:
I’m looking for a little help and guidance on creating a league table from entries in a database, because of other requirements it is not possible to update the entry for the person in the database....
3
devikacs
by: devikacs | last post by:
I wanted to know the overhead in creating a new table. What i mean is, is it better to have more tables or redundant columns in a single table.
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.