Viewing 15 posts - 2,356 through 2,370 (of 4,087 total)
J Livingston SQL (9/21/2016)
is this what they are thinking of:
Yes, that is what they are talking about.
Drew
September 21, 2016 at 11:21 am
Why did you change the first WHERE to an AND rather than changing the second? For INNER JOINs, it is best for legibility to clearly separate your matching conditions...
September 21, 2016 at 8:49 am
I had to make some assumptions, and those assumptions may not be valid. I've noted those in the comments of the code.
First, you need to be consistent in your...
September 20, 2016 at 12:08 pm
When using dynamic SQL, you have to be aware of the scope. You're changing the database inside your dynamic SQL, and that change is limited to the scope of...
September 20, 2016 at 10:33 am
BrainDonor (9/20/2016)
But I don't know if I can - shouldn't the first full-stop be a comma? I think it would read better and it...
September 20, 2016 at 9:58 am
One thing is that your second subquery does not have an ordered specified, so the order is non-deterministic.
The other thing is that your subqueries are not obviously the same. ...
September 20, 2016 at 9:45 am
mister.magoo (9/20/2016)
I guess we should handle NULLs as requested...
Actually, the FOR XML PATH already handles NULLs, so you don't need to make any changes to your original code.
Drew
September 20, 2016 at 8:12 am
SQLPain (9/19/2016)
September 19, 2016 at 3:16 pm
Alan.B (9/19/2016)
drew.allen (9/19/2016)
JALLYKAMOZE (9/19/2016)
i need to convert a time format to another formateg. if the time format is 6, how can i convert it to 0600
please assist
TIME data DOES...
September 19, 2016 at 2:55 pm
JALLYKAMOZE (9/19/2016)
i need to convert a time format to another formateg. if the time format is 6, how can i convert it to 0600
please assist
TIME data DOES NOT HAVE...
September 19, 2016 at 12:52 pm
It seems that your sample code is missing a comma. I assume that you want to display the Holder and the HQuantity instead of aliasing the Holder AS HQuantity.
Drew
September 19, 2016 at 11:34 am
The actions UPDATE, INSERT, and DELETE refer to the rows in the table, not the table itself. If the row doesn't already exist within a table, you cannot update...
September 19, 2016 at 11:27 am
Your sample data is simply too sparse. What happens when a person has multiple transactions? We can't tell, because you've only provided one transaction per person. What...
September 19, 2016 at 10:32 am
tmiller 90290 (9/16/2016)
Jacob Wilkins (9/16/2016)
You're wanting it to just compare the date portion, but it's going to compare the...
September 16, 2016 at 11:37 am
tmiller 90290 (9/16/2016)
Ok, so last bump is:
Two dates are the same (=) then it should be "NEW", then the dates do not...
September 16, 2016 at 10:32 am
Viewing 15 posts - 2,356 through 2,370 (of 4,087 total)