Viewing 15 posts - 9,691 through 9,705 (of 26,489 total)
Stewart hit the error. I think you can see it better when you look at the code as I have it formatted:
SELECT
rh.Branch,
...
September 10, 2012 at 8:16 am
LoosinMaMind (9/10/2012)
Thanks, sorted the issue now.
Proper forum etiquette would have you share your solution with others. It may help someone with a similar issue.
September 10, 2012 at 8:04 am
aaron.reese (9/10/2012)
WHERE datetoquery >= dateadd(d,-3,getdate())If datetoquery is a dateTIME stamp you may need to also strip the time off the getdate()
Which can be done one of two ways in SQL...
September 10, 2012 at 8:02 am
Andrew-495157 (9/10/2012)
In the UK this would be considered a provocative and rude statement. I will assume cultural differences apply here.
Having used RBDMS...
September 10, 2012 at 6:42 am
Andrew-495157 (9/9/2012)
September 9, 2012 at 5:05 pm
And just so you know, you would have this same issue if the database was Oracle as it uses a similar data type precedence as SQL Server when doing implicit...
September 9, 2012 at 11:17 am
Andrew-495157 (9/9/2012)
FROM Job_Bag
WHERE
Job_Bag.Description_Reference = 1609
AND Job_Bag.Cust_Order_No = '70255'
* A row exists which matches the WHERE cluase conditions
* The row with value 'AB' in column Description_Reference has value...
September 9, 2012 at 11:11 am
Andrew-495157 (9/8/2012)
I don't understand.I described EXACTLY the results.
Not sure how else to post them?
I
And actually, you didn't describe exactly the results of the query I asked you to run....
September 8, 2012 at 7:38 pm
Lynn Pettis (9/8/2012)
Copy paste...
September 8, 2012 at 7:36 pm
vijayinder (9/8/2012)
Have we tried explicit conversion and see if it works?
Yes, if you read the first post it says taht.
September 8, 2012 at 7:36 pm
Did ask for a description, I ask for the results of a specific query that would return 2 columns and an unknown number of rows (possibly 2).
Copy paste normally works...
September 8, 2012 at 4:49 pm
I asked for the results of the query, where is it?
Are you afraid to post the results?
September 8, 2012 at 2:01 pm
Evil Kraig F (9/7/2012)
Lynn Pettis (9/7/2012)
Evil Kraig F (9/7/2012)
September 7, 2012 at 6:35 pm
Run the following and post the results:
SELECT
Job_Bag.Description_Reference,
Job_Bag.Cust_Order_No
FROM
Job_Bag
WHERE
Job_Bag.Description_Reference = 'August 2012' or
...
September 7, 2012 at 6:23 pm
Andrew-495157 (9/7/2012)
So one might expect the code to...
September 7, 2012 at 6:18 pm
Viewing 15 posts - 9,691 through 9,705 (of 26,489 total)