Need query for rollup based on month and category

Need query for rollup based on month and category

Hi,

Here is my question..

I have a table as below. trans_date,cateory,amount 1-1-11,1,10
2-1-11,2,20 3-2-11,3,15 23-2-11,4,12 13-5-11,4,19

Need a query to get result like

cateory,month1,month2,month5 1,10,00,00 2,20,00,00 3,00,15,00 4,00,12,19

please suggest a method..

Thanks for the help.. Shibin

View Answers









Related Tutorials/Questions & Answers:
Need query for rollup based on month and category
Need query for rollup based on month and category   Hi, Here is my question.. I have a table as below. trans_date,cateory,amount 1-1-11,1,10 2-1-11,2,20 3-2-11,3,15 23-2-11,4,12 13-5-11,4,19 Need a query to get result like
need query
need query  hi sir , i am beginner to sql.i need a query so that it can be helpful to my project. i have four tables each containing different fruits with different amounts. i need a query in such a way that when i say some
Advertisements
Need a query to run in db2
Need a query to run in db2  hi all, I need a query to run in DB2...; Table 2- ACCOUNTS Fields-LEDGERCODE,ACCOUNTNUMBER,BALANCE FROM THE ABOVE I NEED A QUERY TO RETRIEVE ONLY THE ACCOUNTYPE=AFFILIATE FOR ACCOUNTNUMBERS FROM TABLE
need search query - WebSevices
need search query  I have a field in database as DOB. But I want... month = 10; int year = 1984; Connection con = null...); if (dob.compareTo(new Date(year - 1900, month - 1, date)) == 0
ModuleNotFoundError: No module named 'webassets-rollup'
ModuleNotFoundError: No module named 'webassets-rollup'  Hi, My... named 'webassets-rollup' How to remove the ModuleNotFoundError: No module named 'webassets-rollup' error? Thanks   Hi, In your
How to get sub category based on category from database using jsp and javascript.
How to get sub category based on category from database using jsp and javascript.  How to get sub category based on category from database using jsp and javascript
Mysql Date Month
Month'. In this Example, The Query month (now( )) returns you value... month. Query for finding month:-ADS_TO_REPLACE_2 mysql>... Mysql Date Month      
Need to get the Data based on Date
Need to get the Data based on Date  Hie , I am having a criteria where i need to get the data based on date . I have written the query as "from... that time field and execute the query can any one please help as soon as possible
Mysql Date Query
Mysql Date Query       Mysql Date Query Date Query is used to return the current date, month and year... an example from 'Mysql Date Query'. To understand this example we use current
need
need  i need a jsp coding based project plz help me
to renew leave to next month
to renew leave to next month  i need to make a project where an employee must be able to apply leave only once in a month, and if he doesn't use that leave in that particular month, it must be renewed to the next month so that he
Mysql Date Previous Month
this, we have a month (now( )) that return you current month value. Query... | +--------------+ 1 row in set (0.00 sec) Query for finding Previous month... month before the current month. The Query month(now( )) -1 return you
urgent need for jsp code with mysql query for uploading and downloading file - JSP-Servlet
urgent need for jsp code with mysql query for uploading and downloading file  can anyone tell me how to upload and download a doc file using jsp with mysql as the back end... and kindly help me to create the table too
Mysql Date Get Month
The Query below return you the  current value for the month. Select... Mysql Date Get Month       The tutorial explains you the way to retrieve the current month
Mysql last day of month
of the current month as fieldname LastDayOfMonth.  Query... Mysql last day of month       Mysql Last Day of Month is useful to provide you the last
Maven dependency for org.apereo.cas - cas-server-core-api-test-category version 5.3.1 is released. Learn to use cas-server-core-api-test-category version 5.3.1 in Maven based Java projects
-core-api-test-category released The developers of   org.apereo.cas - cas-server-core-api-test-category project have released the latest version...-server-core-api-test-category library is 5.3.1. Developer can use this version
Maven dependency for org.apereo.cas - cas-server-core-api-test-category version 6.0.8.1 is released. Learn to use cas-server-core-api-test-category version 6.0.8.1 in Maven based Java projects
-server-core-api-test-category released The developers of   org.apereo.cas - cas-server-core-api-test-category project have released the latest version... - cas-server-core-api-test-category library is 6.0.8.1. Developer can use
Maven dependency for org.apereo.cas - cas-server-core-api-test-category version 5.3.16 is released. Learn to use cas-server-core-api-test-category version 5.3.16 in Maven based Java projects
-core-api-test-category released The developers of   org.apereo.cas - cas-server-core-api-test-category project have released the latest version...-server-core-api-test-category library is 5.3.16. Developer can use
Maven dependency for org.apereo.cas - cas-server-core-api-test-category version 5.3.15.1 is released. Learn to use cas-server-core-api-test-category version 5.3.15.1 in Maven based Java projects
-server-core-api-test-category released The developers of   org.apereo.cas - cas-server-core-api-test-category project have released the latest version... - cas-server-core-api-test-category library is 5.3.15.1. Developer can use
Maven dependency for org.apereo.cas - cas-server-core-api-test-category version 6.0.3 is released. Learn to use cas-server-core-api-test-category version 6.0.3 in Maven based Java projects
-core-api-test-category released The developers of   org.apereo.cas - cas-server-core-api-test-category project have released the latest version... - cas-server-core-api-test-category library is 6.0.3. Developer can use
Maven dependency for org.apereo.cas - cas-server-core-api-test-category version 6.0.3 is released. Learn to use cas-server-core-api-test-category version 6.0.3 in Maven based Java projects
-core-api-test-category released The developers of   org.apereo.cas - cas-server-core-api-test-category project have released the latest version... - cas-server-core-api-test-category library is 6.0.3. Developer can use
Maven dependency for org.apereo.cas - cas-server-core-api-test-category version 5.3.7 is released. Learn to use cas-server-core-api-test-category version 5.3.7 in Maven based Java projects
-core-api-test-category released The developers of   org.apereo.cas - cas-server-core-api-test-category project have released the latest version... - cas-server-core-api-test-category library is 5.3.7. Developer can use
Mysql date month name
the current value for the month of the year ,we use the following Query:  ..._TO_REPLACE_1 Query for selecting current month name:- mysql> select... Mysql date month name      
Calculate Month Difference in mysql - SQL
of date increasing or decreasing based on month like 31 and 30 .coding..._No, (month(sysdate())-month(Entry_Date)) from monthlytransaction ; so that based...Calculate Month Difference in mysql  hi , i am rahul.Can anybody
ModuleNotFoundError: No module named 'month'
ModuleNotFoundError: No module named 'month'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'month' How to remove the ModuleNotFoundError: No module named 'month'
Mysql last day of month
( )) : The Query return the last day of the current month a s fieldname Last Day... Mysql last day of month   ... Day of Month'. To  understand and grasp the example we run LAST_DAY
ModuleNotFoundError: No module named 'android-category'
ModuleNotFoundError: No module named 'android-category'  Hi, My... named 'android-category' How to remove the ModuleNotFoundError: No module named 'android-category' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'android-category'
ModuleNotFoundError: No module named 'android-category'  Hi, My... named 'android-category' How to remove the ModuleNotFoundError: No module named 'android-category' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'category-encoders'
ModuleNotFoundError: No module named 'category-encoders'  Hi, My... named 'category-encoders' How to remove the ModuleNotFoundError: No module named 'category-encoders' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'django-category'
ModuleNotFoundError: No module named 'django-category'  Hi, My... named 'django-category' How to remove the ModuleNotFoundError: No module named 'django-category' error? Thanks   Hi, In your python
Java Query(based on swing concept)
Java Query(based on swing concept)  I want a particular submit button to get disabled whenever i write some account number starting with 774 and 775 in a text box of that screen
query
JFrame { //3 month table details JTable table=null; JScrollPane js=null
Query
(leftLayout); l8 = new JLabel(" Month of Birth "); c2=new JComboBox(s2
Can I learn python in a month?
Can I learn python in a month?  Hi, I am beginner in Data Science... learn python in a month? Try to provide me good examples or tutorials links so that I can learn the topic "Can I learn python in a month?". Also tell
Role based login ..Need the concepts.. - JavaMail
Role based login ..Need the concepts..  Role based login how can i do that.. Constraint: i should have only one jsp page for all the user or usergroup... but depending upon the role the functions should change
query optimization
query optimization  hai ! i need a code in java for database query optimization.plz help
query string
query string  Need some examples of query strings.send me as soon as possible. Regards, R.Santhosh
How to learn Java programming in a month
to learn Java programming in a month? Give links to learn Java fast. Thanks   Hello, How to learn Java programming in a month? It's a hard... it manually on your computer. The only thing you need is to learn a basic
PHP convert week number to days or month - PHP
or weeks? I tried but it didn?t work well.. what all I need is 4 weeks = 1 month...PHP convert week number to days or month  Small, simple and easy code that can do following task: 1.Convert Week Numbers to Month 2.Convert Week
master data science in 1 month
data science in 1 month Try to provide me good examples or tutorials links so...: What is Data Science? Why we need data science? What are the skills required to be a Data Scientist? What skills you need to become a data scientist
jtable query compare with date
jtable query compare with date  how to transfer daytable data to monthtable when complete a month
ModuleNotFoundError: No module named 'mw-category-members'
ModuleNotFoundError: No module named 'mw-category-members'  Hi, My... named 'mw-category-members' How to remove the ModuleNotFoundError: No module named 'mw-category-members' error? Thanks   Hi
ModuleNotFoundError: No module named 'mw-category-members'
ModuleNotFoundError: No module named 'mw-category-members'  Hi, My... named 'mw-category-members' How to remove the ModuleNotFoundError: No module named 'mw-category-members' error? Thanks   Hi
ModuleNotFoundError: No module named 'odoo10-addon-delivery-price-by-category'
ModuleNotFoundError: No module named 'odoo10-addon-delivery-price-by-category...: ModuleNotFoundError: No module named 'odoo10-addon-delivery-price-by-category' How...-price-by-category' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'odoo10-addon-product-multi-category'
ModuleNotFoundError: No module named 'odoo10-addon-product-multi-category' ...: ModuleNotFoundError: No module named 'odoo10-addon-product-multi-category' How to remove...-category' error? Thanks   Hi, In your python environment you have
ModuleNotFoundError: No module named 'odoo10-addon-product-multi-category'
ModuleNotFoundError: No module named 'odoo10-addon-product-multi-category' ...: ModuleNotFoundError: No module named 'odoo10-addon-product-multi-category' How to remove...-category' error? Thanks   Hi, In your python environment you have
ModuleNotFoundError: No module named 'odoo10-addon-project-task-category'
ModuleNotFoundError: No module named 'odoo10-addon-project-task-category' ...: ModuleNotFoundError: No module named 'odoo10-addon-project-task-category' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-project-task-category
ModuleNotFoundError: No module named 'odoo10-addon-website-blog-category'
ModuleNotFoundError: No module named 'odoo10-addon-website-blog-category' ...: ModuleNotFoundError: No module named 'odoo10-addon-website-blog-category' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-website-blog-category
ModuleNotFoundError: No module named 'odoo11-addon-analytic-product-category'
ModuleNotFoundError: No module named 'odoo11-addon-analytic-product-category...: ModuleNotFoundError: No module named 'odoo11-addon-analytic-product-category' How...-product-category' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'odoo11-addon-analytic-product-category'
ModuleNotFoundError: No module named 'odoo11-addon-analytic-product-category...: ModuleNotFoundError: No module named 'odoo11-addon-analytic-product-category' How...-product-category' error? Thanks   Hi, In your python environment

Ads