Click here to Skip to main content
15,889,909 members
Home / Discussions / Database
   

Database

 
GeneralRe: Does updating view updates the table? Pin
pmarfleet15-Dec-07 9:46
pmarfleet15-Dec-07 9:46 
GeneralTrim Function Pin
mehrdadc4814-Dec-07 7:56
mehrdadc4814-Dec-07 7:56 
GeneralRe: Trim Function Pin
pmarfleet14-Dec-07 9:22
pmarfleet14-Dec-07 9:22 
GeneralRe: Trim Function Pin
GuyThiebaut15-Dec-07 11:24
professionalGuyThiebaut15-Dec-07 11:24 
GeneralTransferText and FileStream Incompatibility... [modified] Pin
new_phoenix14-Dec-07 6:28
new_phoenix14-Dec-07 6:28 
GeneralGetting RANDOM records from MS Access Pin
Nadia Monalisa14-Dec-07 6:15
Nadia Monalisa14-Dec-07 6:15 
GeneralRe: Getting RANDOM records from MS Access Pin
pmarfleet14-Dec-07 9:26
pmarfleet14-Dec-07 9:26 
GeneralMysql dateadd query problem Pin
archangel71714-Dec-07 5:11
archangel71714-Dec-07 5:11 
All,

I have been toying with this query for some time now to no avail. I need to run a retention report on sales that canceled within 30, 60, 90 days of the original sale date. My query is below. Could someone please help me in the right direction as to why it doesn't work? The error I get is below the query

<br />
SELECT count(*) FROM db.orders<br />
where date_entered between "2007-08-01" and "2007-08-31" and cancel_date <= date_add('day', 30, date_entered)<br />


You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '30, date_entered)' at line 2

Thank you very much!
GeneralRe: Mysql dateadd query problem Pin
Mike Dimmick14-Dec-07 13:09
Mike Dimmick14-Dec-07 13:09 
GeneralRe: Mysql dateadd query problem Pin
archangel71715-Dec-07 12:28
archangel71715-Dec-07 12:28 
GeneralSELECT works fine when I execute directly but fails in stored proc Pin
Mel Padden14-Dec-07 0:43
Mel Padden14-Dec-07 0:43 
GeneralRe: SELECT works fine when I execute directly but fails in stored proc Pin
Paddy Boyd14-Dec-07 3:38
Paddy Boyd14-Dec-07 3:38 
GeneralRe: SELECT works fine when I execute directly but fails in stored proc Pin
Mel Padden14-Dec-07 3:51
Mel Padden14-Dec-07 3:51 
GeneralRe: SELECT works fine when I execute directly but fails in stored proc Pin
Mel Padden14-Dec-07 4:10
Mel Padden14-Dec-07 4:10 
GeneralRe: SELECT works fine when I execute directly but fails in stored proc Pin
Paddy Boyd14-Dec-07 4:12
Paddy Boyd14-Dec-07 4:12 
QuestionQuery Issue Pin
rockz...13-Dec-07 23:03
rockz...13-Dec-07 23:03 
GeneralRe: Query Issue Pin
Colin Angus Mackay13-Dec-07 23:14
Colin Angus Mackay13-Dec-07 23:14 
Generalimport xls to sqlserver table Pin
sivaram praveen13-Dec-07 19:49
sivaram praveen13-Dec-07 19:49 
GeneralRe: import xls to sqlserver table Pin
pmarfleet13-Dec-07 21:42
pmarfleet13-Dec-07 21:42 
GeneralImporting NULLs Instead of Actual Values Pin
Bryan Bradford13-Dec-07 9:58
Bryan Bradford13-Dec-07 9:58 
GeneralRe: Importing NULLs Instead of Actual Values Pin
pmarfleet13-Dec-07 11:29
pmarfleet13-Dec-07 11:29 
GeneralRe: Importing NULLs Instead of Actual Values Pin
Bryan Bradford14-Dec-07 10:28
Bryan Bradford14-Dec-07 10:28 
GeneralDatabase redesign advice, please. Pin
jimbaloo13-Dec-07 5:59
jimbaloo13-Dec-07 5:59 
GeneralRe: Database redesign advice, please. Pin
Mark Churchill15-Dec-07 18:27
Mark Churchill15-Dec-07 18:27 
GeneralRe: Database redesign advice, please. Pin
jimbaloo17-Dec-07 2:20
jimbaloo17-Dec-07 2:20 

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.