Click here to Skip to main content
15,913,854 members
Home / Discussions / Database
   

Database

 
GeneralRe: How to store result of a query in a variable Pin
veereshIndia30-Nov-07 19:17
veereshIndia30-Nov-07 19:17 
Questioncan SQL contains (saves) excel sheet? Pin
Knowledgestudent30-Nov-07 10:32
Knowledgestudent30-Nov-07 10:32 
AnswerRe: can SQL contains (saves) excel sheet? Pin
Pete O'Hanlon30-Nov-07 10:34
mvePete O'Hanlon30-Nov-07 10:34 
QuestionRe: can SQL contains (saves) excel sheet? Pin
Knowledgestudent30-Nov-07 10:43
Knowledgestudent30-Nov-07 10:43 
AnswerRe: can SQL contains (saves) excel sheet? Pin
Pete O'Hanlon30-Nov-07 10:53
mvePete O'Hanlon30-Nov-07 10:53 
QuestionRe: can SQL contains (saves) excel sheet? Pin
Knowledgestudent30-Nov-07 11:01
Knowledgestudent30-Nov-07 11:01 
AnswerRe: can SQL contains (saves) excel sheet? Pin
Paul Conrad30-Nov-07 12:54
professionalPaul Conrad30-Nov-07 12:54 
QuestionQuery + Variable problem Pin
archangel71730-Nov-07 9:25
archangel71730-Nov-07 9:25 
Hey all,

I have a need to create a retention report in mysql/sql server that I can use to find out how many customers have canceled within 30,60,90 days of their sale date.

So my query is something like this in mysql:

<br />
SELECT t1.sale_date, t1.primary_phone, t1.cancel_date<br />
FROM n.orders as t1<br />
where t1.sale_date between "2007-08-01" and "2007-08-31"<br />
order by t1.date_entered<br />


I need to be able to say something like and t1.cancel_date <= 30 days + sale_date.

Does this make sense? I'm not sure how to do this without adding a more complex script, but you guys are the experts!

Please help! Thanks
AnswerRe: Query + Variable problem Pin
andyharman30-Nov-07 9:38
professionalandyharman30-Nov-07 9:38 
AnswerRe: Query + Variable problem Pin
DoomedOne30-Nov-07 9:39
DoomedOne30-Nov-07 9:39 
GeneralRe: Query + Variable problem Pin
archangel71730-Nov-07 10:10
archangel71730-Nov-07 10:10 
GeneralRe: Query + Variable problem Pin
archangel71730-Nov-07 10:23
archangel71730-Nov-07 10:23 
GeneralRe: Query + Variable problem Pin
Pete O'Hanlon30-Nov-07 10:50
mvePete O'Hanlon30-Nov-07 10:50 
QuestionSelect .. Where x in (@param) ... convertion??? Pin
JoZ CaVaLLo30-Nov-07 5:03
JoZ CaVaLLo30-Nov-07 5:03 
AnswerRe: Select .. Where x in (@param) ... convertion??? Pin
Pete O'Hanlon30-Nov-07 10:02
mvePete O'Hanlon30-Nov-07 10:02 
QuestionProblem with Data Adapter and one PC [modified] Pin
dbrenth30-Nov-07 3:27
dbrenth30-Nov-07 3:27 
AnswerRe: Problem with Data Adapter and one PC Pin
Paul Conrad30-Nov-07 4:49
professionalPaul Conrad30-Nov-07 4:49 
GeneralRe: Problem with Data Adapter and one PC Pin
dbrenth30-Nov-07 5:59
dbrenth30-Nov-07 5:59 
QuestionSqlServerCe VISUAL STUDIO 2005 VISUAL BASIC help needed Pin
panagiotis_mallis29-Nov-07 23:24
panagiotis_mallis29-Nov-07 23:24 
AnswerRe: SqlServerCe VISUAL STUDIO 2005 VISUAL BASIC help needed Pin
Paddy Boyd30-Nov-07 1:03
Paddy Boyd30-Nov-07 1:03 
GeneralRe: SqlServerCe VISUAL STUDIO 2005 VISUAL BASIC help needed Pin
panagiotis_mallis30-Nov-07 5:32
panagiotis_mallis30-Nov-07 5:32 
AnswerCross-Post (3 forums) Pin
leckey30-Nov-07 3:17
leckey30-Nov-07 3:17 
AnswerRe: SqlServerCe VISUAL STUDIO 2005 VISUAL BASIC help needed Pin
Paul Conrad30-Nov-07 4:42
professionalPaul Conrad30-Nov-07 4:42 
QuestionI am getting error when sql server connection is establish Pin
Kishore Polisetty Gopi29-Nov-07 23:06
Kishore Polisetty Gopi29-Nov-07 23:06 
AnswerRe: I am getting error when sql server connection is establish Pin
Tobias Schoenig29-Nov-07 23:12
Tobias Schoenig29-Nov-07 23:12 

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.