Jump to content

simple mysql help (or at least I think it would be easy for you...)


dudenell

Recommended Posts

im running version 5.0.27-standard

 

this is for a class, I created 4 tables, each with primary and foreign keys to each other.

if you have microsoft visio this will be so much easier then the text below, if not get ready for confusion lol (at least on my part)

http://www.fileden.com/files/2006/7/27/144624/project_step_2_2_.vsd

even better yet I took a screenshot of what my tables look like

untitled-3.jpg

 

now what im trying to do is these select statements...

 

All items purchased for each invoice

All invoices for each customer

All items purchase by each customer

All items purchased for each artist with total cost

 

and I have no idea how to go about with these select statements... could you please help? Ill add more information if needed

 

Link to comment
Share on other sites

this is for a class, I created 4 tables, each with primary and foreign keys to each other.

 

....

 

and I have no idea how to go about with these select statements... could you please help? Ill add more information if needed

No idea at all? Hard to believe.... what class? When did it start? What do you have so far?

Link to comment
Share on other sites

No idea at all? Hard to believe.... what class? When did it start? What do you have so far?

the class is called cis 255 database design and development. umm lets see ill post screenshots of all my tables. the class started in September, this is the final project I know they want me to do select statements with joins and such but I have no idea how to do select statements on these tables with the joins...

 

the first statement im working on

All items purchased for each invoice

I need to display the invoice number (which is a primary key) and the items purchased on that invoice (most of which is in the items table)

ok so these are the tables

tables1.jpg

 

 

Customer.jpg

 

 

invoice.jpg

 

 

item.jpg

 

 

purchased.jpg

 

 

whatIwastryingtodo.jpg

 

 

maybe that will help out? lol help you to help me?

 

btw im trying to create a table (not using the create key) just to display the data i am looking for...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.