Jump to content
HydraN

Legatura baza de date

Recommended Posts

cartul stocheaza adresa ip a celui care comanda produsul

p_id este product id

qty este cantitatea :)

Eu trebuie sa fac legaturi intre tabelele de mai sus , sa arate ceva in genul acesta Imgur: The most awesome images on the Internet

Totul functioneaza asa cum trebuie , nu vreau sa modific nimica la tabele ci doar sa le fac legaturile ca in poza din acest post. Habar nu am cum trebuie sa fac asta.

Edited by HydraN
Link to comment
Share on other sites

Nu prea inteleg cum de nu stii sa faci un subquery dar ai stiut sa faci restul chestiilor ca totul sa 'functioneze cum asa cum trebuie'.

Ceva link-uri care sa te ajute , asa inveti despre ce e vorba si o sa stii pe viitor sa rezolvi singur :

1. https://dev.mysql.com/doc/refman/5.0/en/subqueries.html

2. https://dev.mysql.com/doc/refman/5.0/en/from-clause-subqueries.html

3. How to use subquery in SELECT statement in MySQL

Link to comment
Share on other sites

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.   Paste as plain text instead

  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...