Click here to Skip to main content
15,879,096 members
Home / Discussions / Database
   

Database

 
GeneralRe: oracle fusion procurement Pin
Richard MacCutchan18-May-17 21:49
mveRichard MacCutchan18-May-17 21:49 
GeneralRe: oracle fusion procurement Pin
CHill6018-May-17 22:24
mveCHill6018-May-17 22:24 
GeneralRe: oracle fusion procurement Pin
Richard MacCutchan18-May-17 22:35
mveRichard MacCutchan18-May-17 22:35 
QuestionRun sql query inside a stored procedure Pin
Member 1320472716-May-17 9:29
Member 1320472716-May-17 9:29 
QuestionRe: Run sql query inside a stored procedure Pin
ZurdoDev16-May-17 10:13
professionalZurdoDev16-May-17 10:13 
AnswerRe: Run sql query inside a stored procedure Pin
Kornfeld Eliyahu Peter16-May-17 21:21
professionalKornfeld Eliyahu Peter16-May-17 21:21 
SuggestionRe: Run sql query inside a stored procedure Pin
Richard Deeming17-May-17 1:25
mveRichard Deeming17-May-17 1:25 
QuestionGet sum of column base on equality of values of one row From previous generate request( using SELECT and EXTRACT) Pin
Mostafazs14-May-17 20:35
Mostafazs14-May-17 20:35 
Hello
I can't find solution for this simple query.Want to get sum of column of VISIT_FEE that have colum MONTH_ 2 and YEAR_ 1396

My main table is like this:
ID VISIT_DATE  VISIT_TIME  VISIT_FEE   IS_PAY
1   13960124    10:00           300000          1
6   13960208    10:50           2500000         1
7   13960208    11:00           210000          1
8   13960209    10:20           300000          1

and now i use below query:
SELECT
VISIT_FEE,
    EXTRACT(YEAR FROM VISIT_DATE) AS YEAR_,
    EXTRACT(MONTH FROM VISIT_DATE) AS MONTH_,
EXTRACT(DAY FROM VISIT_DATE) AS DAY_

FROM
    MZS_VISIT_REQUEST
WHERE
    IS_PAY = 1

and result is :
VISIT_FEE  YEAR_   MONTH_  DAY_
300000         1396 1   1
2500000        1396 2   2
210000         1396 2   2
300000         1396 2   2

And now i want some of colum VISIT_FEE that have YEAR_ 1396 and MONTH_ 2 and 1
somethings like below table:
FEE    YEAR_   MONTH_  DAY_
300000         1396 1   1
3010000        1396 2   2

Thanks.

modified 15-May-17 23:40pm.

AnswerRe: Get sum of column base on equality of values of one row From previous generate request( using SELECT and EXTRACT) Pin
Maciej Los14-May-17 21:18
mveMaciej Los14-May-17 21:18 
GeneralRe: Get sum of column base on equality of values of one row From previous generate request( using SELECT and EXTRACT) Pin
Mostafazs15-May-17 17:40
Mostafazs15-May-17 17:40 
AnswerRe: Get sum of column base on equality of values of one row From previous generate request( using SELECT and EXTRACT) Pin
Maciej Los15-May-17 20:03
mveMaciej Los15-May-17 20:03 
GeneralRe: Get sum of column base on equality of values of one row From previous generate request( using SELECT and EXTRACT) Pin
Mostafazs16-May-17 20:04
Mostafazs16-May-17 20:04 
AnswerRe: Get sum of column base on equality of values of one row From previous generate request( using SELECT and EXTRACT) Pin
anarayane15-May-17 18:30
professionalanarayane15-May-17 18:30 
GeneralRe: Get sum of column base on equality of values of one row From previous generate request( using SELECT and EXTRACT) Pin
Mostafazs20-May-17 20:46
Mostafazs20-May-17 20:46 
QuestionAccess SSRS reports from outside network Pin
bunty_bpr11-May-17 5:08
bunty_bpr11-May-17 5:08 
AnswerRe: Access SSRS reports from outside network Pin
Simon_Whale11-May-17 5:19
Simon_Whale11-May-17 5:19 
AnswerRe: Access SSRS reports from outside network Pin
Member 1491271312-Aug-20 1:40
Member 1491271312-Aug-20 1:40 
QuestionHow to read & write data in queue in sql server Pin
Tridip Bhattacharjee3-May-17 22:51
professionalTridip Bhattacharjee3-May-17 22:51 
AnswerRe: How to read & write data in queue in sql server Pin
Victor Nijegorodov4-May-17 0:47
Victor Nijegorodov4-May-17 0:47 
GeneralRe: How to read & write data in queue in sql server Pin
CHill604-May-17 2:42
mveCHill604-May-17 2:42 
QuestionProblem with installing oracle database Pin
VISWESWARAN19982-May-17 0:13
professionalVISWESWARAN19982-May-17 0:13 
AnswerRe: Problem with installing oracle database Pin
Victor Nijegorodov2-May-17 7:23
Victor Nijegorodov2-May-17 7:23 
GeneralRe: Problem with installing oracle database Pin
VISWESWARAN19982-May-17 20:14
professionalVISWESWARAN19982-May-17 20:14 
AnswerRe: Problem with installing oracle database Pin
John C Rayan4-May-17 0:58
professionalJohn C Rayan4-May-17 0:58 
GeneralRe: Problem with installing oracle database Pin
VISWESWARAN19984-May-17 6:31
professionalVISWESWARAN19984-May-17 6:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.