Click here to Skip to main content
15,919,613 members
Home / Discussions / Database
   

Database

 
QuestionSSIS Packages Pin
geekfromindia17-Sep-08 13:42
geekfromindia17-Sep-08 13:42 
AnswerRe: SSIS Packages Pin
Mycroft Holmes18-Sep-08 2:47
professionalMycroft Holmes18-Sep-08 2:47 
GeneralRe: SSIS Packages Pin
geekfromindia19-Sep-08 5:18
geekfromindia19-Sep-08 5:18 
Questionsending sql info to (C#) application- advide needed Pin
nelsonpaixao17-Sep-08 13:24
nelsonpaixao17-Sep-08 13:24 
AnswerRe: sending sql info to (C#) application- advide needed Pin
Wendelius19-Sep-08 9:15
mentorWendelius19-Sep-08 9:15 
GeneralRe: sending sql info to (C#) application- advide needed Pin
nelsonpaixao21-Sep-08 15:47
nelsonpaixao21-Sep-08 15:47 
GeneralRe: sending sql info to (C#) application- advide needed Pin
Wendelius21-Sep-08 18:13
mentorWendelius21-Sep-08 18:13 
QuestionCreate recurring date in SQL statement Pin
Shane Leach17-Sep-08 11:34
Shane Leach17-Sep-08 11:34 
I'm not much of an SQL coder, but don't know where else to go. I have a small script that I would like to have modified. Right now it is a 'hard coded' date, meaning that I have to manually go in each time and make changes to it in order to pull the date range I want. I want to be able to have it run automatically (using additional software) for the previous month. Example: On Oct 1, 2008, I would produce a report, using this script, for the previous month, Sept 1 2008 - Sept 30 2008. Can it be done? I have copied the script below:

DECLARE @DateFrom VARCHAR(15)
DECLARE @DateTo VARCHAR(15)

--Date Selection
SET @DateFrom = '01/04/2008' --MM/DD/YYYY
SET @DateTo = '01/04/2008' --MM/DD/YYYY

select
Primary_InsPlanName AS [Plan Name],
DoctorName AS [Doctor Name],
CPTCode AS [CPT Code],
Modifier AS Modifier,
sum (ChargeCount) AS [Total Units],
SUM (ChargeAmount) AS [Total Billed Amount]


from vwIR_OBJ_stdCharges

--Insurance Plan Selection
where primary_insPlanNum IN ('300','303','449','455','473','497','504','530','2181','2303','10018','13422','13483','13671')

AND cast(CONVERT(VARCHAR(10),PostDate,101) as dateTime) >= cast(CONVERT(VARCHAR(10), @DateFrom, 101) as dateTime)
AND cast(CONVERT(VARCHAR(10),PostDate,101) as dateTime) <= cast(CONVERT(VARCHAR(10), @DateTo, 101) as dateTime)

group by
Primary_InsPlanName,
DoctorName,
CPTCode,
Modifier

Order by
Primary_InsPlanName,
DoctorName,
CPTCode,
Modifier


Any advice is appreciated. Thanks!!
GeneralRe: Create recurring date in SQL statement Pin
nelsonpaixao17-Sep-08 12:04
nelsonpaixao17-Sep-08 12:04 
GeneralRe: Create recurring date in SQL statement Pin
Shane Leach18-Sep-08 3:29
Shane Leach18-Sep-08 3:29 
AnswerRe: Create recurring date in SQL statement Pin
RyanEK17-Sep-08 14:24
RyanEK17-Sep-08 14:24 
GeneralRe: Create recurring date in SQL statement Pin
Shane Leach18-Sep-08 3:27
Shane Leach18-Sep-08 3:27 
GeneralRe: Create recurring date in SQL statement Pin
RyanEK18-Sep-08 14:50
RyanEK18-Sep-08 14:50 
Questioncan someone help me to code add, edit, delete, search in mysql database using C#.. Pin
cutedrew17-Sep-08 9:59
cutedrew17-Sep-08 9:59 
GeneralRe: can someone help me to code add, edit, delete, search in mysql database using C#.. Pin
nelsonpaixao17-Sep-08 12:10
nelsonpaixao17-Sep-08 12:10 
QuestionSQL Server 2000 sp3 and the WITH Clause in Stored Procedures Pin
Steven J Jowett17-Sep-08 9:28
Steven J Jowett17-Sep-08 9:28 
AnswerRe: SQL Server 2000 sp3 and the WITH Clause in Stored Procedures Pin
Blue_Boy17-Sep-08 9:45
Blue_Boy17-Sep-08 9:45 
GeneralRe: SQL Server 2000 sp3 and the WITH Clause in Stored Procedures Pin
Steven J Jowett17-Sep-08 10:03
Steven J Jowett17-Sep-08 10:03 
AnswerRe: SQL Server 2000 sp3 and the WITH Clause in Stored Procedures Pin
Mycroft Holmes17-Sep-08 20:15
professionalMycroft Holmes17-Sep-08 20:15 
AnswerRe: SQL Server 2000 sp3 and the WITH Clause in Stored Procedures Pin
Ashfield17-Sep-08 21:53
Ashfield17-Sep-08 21:53 
QuestionGetting Data for current month - Urgent Pin
notes4we17-Sep-08 5:07
notes4we17-Sep-08 5:07 
AnswerRe: Getting Data for current month - Urgent Pin
nelsonpaixao17-Sep-08 12:16
nelsonpaixao17-Sep-08 12:16 
AnswerRe: Getting Data for current month - Urgent Pin
RyanEK17-Sep-08 14:28
RyanEK17-Sep-08 14:28 
AnswerRe: Getting Data for current month - Urgent Pin
notes4we18-Sep-08 3:09
notes4we18-Sep-08 3:09 
QuestionUnique key Pin
topcatalpha17-Sep-08 3:39
topcatalpha17-Sep-08 3:39 

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.