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 9137813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:10:32+00:00 2026-06-17T09:10:32+00:00

I have query which returns the data like this DATE( expensemaster.`date` ) SUM( feesmaster.PAIDAMOUNT

  • 0

I have query which returns the data like this

DATE( expensemaster.`date` )    SUM( feesmaster.PAIDAMOUNT )    SUM( expensemaster.amount )
2013-01-09                         0                             7824.4
2013-01-15                         200                            211

please view the query,

SELECT DATE( expensemaster.`date` ) , 
       SUM( feesmaster.PAIDAMOUNT ) , 
       SUM( expensemaster.amount ) 
FROM 
    feesmaster
    INNER JOIN expensemaster 
        ON DATE( feesmaster.DATETIME ) = DATE( expensemaster.date ) 
WHERE 
    DATE( expensemaster.`date` ) BETWEEN  '2013-01-09' AND  '2013-01-15'
    AND DATE( feesmaster.`datetime` ) BETWEEN  '2013-01-09' AND '2013-01-15'
GROUP BY 
    DATE( feesmaster.`datetime` ), 
    DATE( expensemaster.`date` )

If i replace inner to full so i can get Return rows when there is a match in one of the tables but i am getting error

#1054 – Unknown column ‘feesmaster.PAIDAMOUNT’ in ‘field list’

I am using phpmyadmin.

  • 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-06-17T09:10:33+00:00Added an answer on June 17, 2026 at 9:10 am

    As I know MySQL doesn’t support FULL JOIN so the word FULL in this case means an ALIAS for your first table feesmaster. So there is no column feesmaster.PAIDAMOUNT but FULL.PAIDAMOUNT. You can implement FULL JOIN by UNION LEFT JOIN and RIGHT JOIN

    UPD: Also in your case FULL JOIN (and LEFT/RIGHT JOIN’s also) has no sense for this query as soon your WHERE conditions TRUE only if expensemaster.date and feesmaster.datetime aren’t NULL. So only INNER JOIN works in this case.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this query which returns a result set with Date(column) as nvarchar datatype.
I have the following query which gets year,Sum data between from and to date.
I have a query which returns two rows of data as count. I want
I have a query which returns a series of cells of data from a
I have a select query which returns a list of data and I need
i've got a SQL query which returns multiple rows, and i have : $data
I have a query that produces a result like this: The data is sorted
Okay, basically, I have formed a mySQL query which returns a data set all
I have a Linq query which returns all of the data stored in a
I have the following query which returns a list of questions and the possible

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.