Viewing 15 posts - 4,336 through 4,350 (of 5,504 total)
Instead of your verbal description would you mind sharing the results you'd expect as the result of "SELECT * FROM InventoryThatNeedsReorders"?
February 5, 2010 at 12:43 pm
Based on your sample data, what would be the expected output?
February 5, 2010 at 12:33 pm
Steve Jones - Editor (2/5/2010)
I could track back the person, but I don't think it's appropriate, at least without a subpoena or other legal instrument. We worked hard to protect...
February 5, 2010 at 11:09 am
Please provide table def, sample data, expected result and what you've tried so far as described in the first link in my signature.
It's much easier to demonstrate what you're trying...
February 4, 2010 at 4:53 pm
Mishelle (2/4/2010)
...You all have just replaced my husband!...
I truly hope just in terms of SQL stuff!! Family/social life is even more important than SQL! 😉
February 4, 2010 at 4:50 pm
Paul White (2/4/2010)
lmu92 (2/4/2010)
February 4, 2010 at 4:42 pm
I'm glad I could help! 😀
bboufford (2/4/2010)
...I was checking character by character there was a space at the begining of my variable name, it wasn't recognizing it. ...
Sometimes those rather...
February 4, 2010 at 4:15 pm
Thank you for your response.
I'm still not sure what I should learn from it:
On one hand it shows that it's important to notice if an OP obviously posts "real data"...
February 4, 2010 at 3:34 pm
I can't see a reason why the following concept wouldn't work...
DECLARE @orderby VARCHAR(30)
SET @orderby='MSDue'
SELECT *
FROM myTable
ORDER BY
CASE @orderby
WHEN 'Job' THEN Col1
WHEN 'Author' THEN Col2
WHEN...
February 4, 2010 at 1:34 pm
No. Not in this thread, since I don't think there should be a parallel discussion.
February 4, 2010 at 1:21 pm
mbookout (2/4/2010)
February 4, 2010 at 1:19 pm
Just a short update regarding the real life address data I talked about a few dozens posts ago:
I talked to my friend and he forwarded the info to his IT...
February 4, 2010 at 1:13 pm
You need to convert your date values to varchar using CONVERT() function.
You could use CONVERT(VARCHAR(19),Job.[MS Due Date],120) to get a date format which can be sorted.
February 4, 2010 at 12:15 pm
Duplicate post.
Please continue discussion here.
February 4, 2010 at 12:12 pm
Would you mind providing some more test data to play with?
I'm thinking of a solution that might work but I'd like to test it a little further...
February 4, 2010 at 11:22 am
Viewing 15 posts - 4,336 through 4,350 (of 5,504 total)