Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Pre Sales Question - iTunes-like tables?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Pre Sales Question - iTunes-like tables?
#8107
Pre Sales Question - iTunes-like tables? 14 Years, 1 Month ago Karma: 0
I'd like to verify the functionality I need before purchasing. I have in mind an iTunes-like site where the registered user could list their songs. The main data table to be shown would list songs and the associated artists. The issue is that there are at least three related tables, the song table, the artist table (which the song table refers to) and the user's library (which contains the references to the songs they own). So the table I'm planning on uses the user's library table to get the song ids and the song table to get the song title and the artist id and the artist table to get the artist's name.

Can I easily create the user's library table that shows this information?

Peter
The administrator has disabled public write access.
 
#8114
Re:Pre Sales Question - iTunes-like tables? 14 Years, 1 Month ago Karma: 760
Hello,

We suppose JOIN operator can be used in your case that get all necessary data. SQL query will look like:

Code:


SELECT
  U.user_name,
  S.song_name,
  A.artist_name
FROM
  user_table U INNER JOIN song_table S
    ON U.song_id = S.song_id
  INNER JOIN artist_table A
    ON S.artist_id = A.artist_id
WHERE
  U.user_id = {$UserId}



Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1