Click here to Skip to main content
15,910,603 members
Home / Discussions / Database
   

Database

 
AnswerRe: How to create FileName or Folder name with space ? [modified] Pin
Md. Marufuzzaman26-Dec-09 2:28
professionalMd. Marufuzzaman26-Dec-09 2:28 
Questionrestore data Pin
Akhteruzzaman24-Dec-09 2:00
Akhteruzzaman24-Dec-09 2:00 
AnswerRe: restore data Pin
Andy_L_J24-Dec-09 9:59
Andy_L_J24-Dec-09 9:59 
QuestionProblem in SQL server2005 Search.. Pin
hvgyufg28fh38tyr78hf23-Dec-09 17:38
hvgyufg28fh38tyr78hf23-Dec-09 17:38 
AnswerRe: Problem in SQL server2005 Search.. Pin
Blue_Boy23-Dec-09 22:35
Blue_Boy23-Dec-09 22:35 
AnswerRe: Problem in SQL server2005 Search.. Pin
Eddy Vluggen24-Dec-09 7:11
professionalEddy Vluggen24-Dec-09 7:11 
QuestionSQL 2005 Express - Complex Query Help - Date Range Pin
Jordon4Kraftd23-Dec-09 8:32
Jordon4Kraftd23-Dec-09 8:32 
AnswerRe: SQL 2005 Express - Complex Query Help - Date Range Pin
keyur satyadev24-Dec-09 20:29
keyur satyadev24-Dec-09 20:29 
here if you need the data between start date and end date then just pass the 2 dates (start and end).
for example in your case 20091001 to 20091031.

if you wish the data for current month

then using getdate() fucntion get the current month and date and treat as startdate and end enddate.

for example SELECT DATEPART(d,getdate())
           SELECT DATEPART(m,getdate())

you will get the current month and date.

treat as your start date and end date.

in your query then
put the logic just like

SELECT SUM(InvoicePayment.Amount) AS TotalCharged
FROM                  InvoicePayment INNER JOIN
                                    PaymentMethod ON InvoicePayment.PaymentMethodID = PaymentMethod.ID INNER JOIN
                                    Invoice ON InvoicePayment.InvoiceID = Invoice.ID
WHERE            (PaymentMethod.IsCredit = 1)
AND (Invoice.Void = 0)
AND (Invoice.CustomerID = @CustomerID) and DateCreated beetween @Startdate and @Enddate

hope this is fine for you.

Regards
Keyur Satyadev

GeneralRe: SQL 2005 Express - Complex Query Help - Date Range Pin
Jordon4Kraftd5-Jan-10 12:55
Jordon4Kraftd5-Jan-10 12:55 
GeneralRe: SQL 2005 Express - Complex Query Help - Date Range Pin
Jordon4Kraftd14-Jan-10 6:33
Jordon4Kraftd14-Jan-10 6:33 
GeneralRe: SQL 2005 Express - Complex Query Help - Date Range Pin
Jordon4Kraftd14-Jan-10 7:11
Jordon4Kraftd14-Jan-10 7:11 
QuestionWhat database to choose Pin
cdpace23-Dec-09 5:07
cdpace23-Dec-09 5:07 
AnswerRe: What database to choose Pin
loyal ginger23-Dec-09 5:46
loyal ginger23-Dec-09 5:46 
GeneralRe: What database to choose Pin
Corporal Agarn23-Dec-09 5:57
professionalCorporal Agarn23-Dec-09 5:57 
GeneralRe: What database to choose Pin
cdpace23-Dec-09 10:55
cdpace23-Dec-09 10:55 
AnswerSupport Multiple Databases Pin
David Mujica23-Dec-09 5:58
David Mujica23-Dec-09 5:58 
GeneralRe: Support Multiple Databases Pin
cdpace23-Dec-09 10:54
cdpace23-Dec-09 10:54 
Questionsqlite Pin
jashimu23-Dec-09 3:34
jashimu23-Dec-09 3:34 
AnswerRe: sqlite Pin
dxlee23-Dec-09 4:17
dxlee23-Dec-09 4:17 
GeneralRe: sqlite Pin
jashimu23-Dec-09 4:34
jashimu23-Dec-09 4:34 
GeneralRe: sqlite Pin
dxlee23-Dec-09 5:38
dxlee23-Dec-09 5:38 
Question2 SQL quesions: address book Pin
Dmitry Khudorozhkov22-Dec-09 10:27
Dmitry Khudorozhkov22-Dec-09 10:27 
AnswerRe: 2 SQL quesions: address book Pin
Mycroft Holmes22-Dec-09 12:10
professionalMycroft Holmes22-Dec-09 12:10 
GeneralRe: 2 SQL quesions: address book Pin
Dmitry Khudorozhkov22-Dec-09 13:17
Dmitry Khudorozhkov22-Dec-09 13:17 
QuestionQuery to Test for SA [modified] Pin
mobius11100122-Dec-09 7:30
mobius11100122-Dec-09 7:30 

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.