Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3222988
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:03:17+00:00 2026-05-17T16:03:17+00:00

This is the master table structure: CREATE TABLE IF NOT EXISTS `gf_film` ( `film_id`

  • 0

This is the master table structure:

CREATE TABLE IF NOT EXISTS `gf_film` (

  `film_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` int(20) NOT NULL,
  `film_name` varchar(100) DEFAULT NULL,
  `film_cat` varchar(30) CHARACTER SET latin1 DEFAULT NULL,
  `film_plot` longtext,
  `film_release_date` date DEFAULT NULL,
  `film_post_date` date DEFAULT NULL,
  `film_type` enum('Movie','Tv') CHARACTER SET latin1 DEFAULT 'Movie',
  `film_feature` enum('Y','N') CHARACTER SET latin1 NOT NULL DEFAULT 'N',
  `film_status` enum('ACTIVE','INACTIVE') CHARACTER SET latin1 NOT NULL DEFAULT 'ACTIVE',
  `film_modify` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `film_link_value` varchar(200) NOT NULL,
  `film_post_link` varchar(255) NOT NULL,

  PRIMARY KEY (`film_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=21435 ;

This the child table through which I map between the above gf_film table and lowest gf_actor table:

CREATE TABLE IF NOT EXISTS `gf_film_actor` (

  `film_id` int(20) NOT NULL,
  `actor_id` int(20) NOT NULL,

  KEY `film_id` (`film_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

This another table from which I have to retrieve the actor name:

CREATE TABLE IF NOT EXISTS `gf_actor` (

  `actor_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `actor_name` varchar(100) DEFAULT NULL,
  `actor_desc` longtext CHARACTER SET latin1,

  PRIMARY KEY (`actor_id`),
  UNIQUE KEY `actor_name` (`actor_name`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=60963 ;

And this the schema for gf_film_poster:

CREATE TABLE IF NOT EXISTS `gf_film_poster` (

  `film_id` int(20) NOT NULL,
  `website_poster_url` varchar(255) DEFAULT NULL,
  `original_poster_url` varchar(255) DEFAULT NULL,
  `default_poster_url` varchar(255) DEFAULT 'noposter.gif',

  UNIQUE KEY `film_id` (`film_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

After executing this query:

SELECT gf_film.film_id                                 ,
       film_name                                       ,
       DATE_FORMAT(film_release_date,'%d') AS DATE     ,
       DATE_FORMAT(film_release_date,'%m') AS month_ori,
       DATE_FORMAT(film_release_date,'%M') AS MONTH    ,
       DATE_FORMAT(film_release_date,'%Y') AS YEAR     ,
       film_release_date                               ,
       film_feature                                    ,
       film_modify                                     ,
       film_post_link                                  ,
       website_poster_url
FROM   gf_film
       LEFT JOIN gf_film_poster
       ON     gf_film.film_id=gf_film_poster.film_id

I am getting these results from database:

film_id,film_name,date,month_ori,month,year,film_release_date,
 film_feature,film_modify,film_post_link,website_poster_url

I need another column which contain the actors name and actor_id in one row related to each movies by joing the above query with gf_actor and gf_film_actor.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T16:03:18+00:00Added an answer on May 17, 2026 at 4:03 pm
    SELECT   gf_film.film_id                                 ,
             film_name                                       ,
             DATE_FORMAT(film_release_date,'%d') AS DATE     ,
             DATE_FORMAT(film_release_date,'%m') AS month_ori,
             DATE_FORMAT(film_release_date,'%M') AS MONTH    ,
             DATE_FORMAT(film_release_date,'%Y') AS YEAR     ,
             film_release_date                               ,
             film_feature                                    ,
             film_modify                                     ,
             film_post_link                                  ,
             website_poster_url                              ,
             group_concat(gf_actor.actor_name) AS actors
    FROM     gf_film
             LEFT JOIN gf_film_poster
             ON       gf_film.film_id=gf_film_poster.film_id
             LEFT JOIN gf_film_actor
             ON       gf_film_actor.film_id = gf_film.film_id
             LEFT JOIN gf_actor
             ON       gf_film_actor.actor_id = gf_actor.actor_id
    GROUP BY gf_film.film_id
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a table structure I'm not really certain of how to create the
I've the following table structure - Site: Master tablefor site Org: Master table for
I have a SQL Server table with the following structure: CREATE TABLE [dbo].[Log]( [LogID]
oPanel = CType(Master.FindControl(panelSearch), Panel) This code resides on my masterpage's back-end ( theMaster.master.vb ),
How can I change the master volume level? Using this code [DllImport (winmm.dll)] public
I have a master page, with a help link in the top menu. This
The structures of my Git repositories look like this: A-B-C-D-E-F # master branch in
I have an aspx page that uses a master page. On this page I
I have a web site in asp.net that uses a master page. In this
I'm not exactly sure how to phrase this, but here goes... We have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.