Viewing 15 posts - 121 through 135 (of 371 total)
DDL is the code for the creation of your tables/views that are involved in your question.
See if this helps:
INSERT INTO TableB (Col1, Col2, Col3, Col4)
SELECT Col1, Col2, Col3, Col4
FROM TableA
GROUP...
March 20, 2012 at 12:49 pm
The GROUP BY technique advised before should work as expected for you. Did you try it?
You could include all columns in the grouping set if needed.
Otherwise, please post some more...
March 20, 2012 at 12:45 pm
Hi, Jack.
Great suggestions there!
But why do you need to use an IF block?
Wouldn't this work as well?
UPDATE inventory
SET Sold = Sold + 1
WHERE FlightNumber = 'F3241b'
...
March 19, 2012 at 8:38 am
Have you checked the database for errors with CHECKDB?
There seems to be something very wrong there.
I heard about an issue like that before but it was easily fixed using 'sp_changedbowner'.
EDIT:...
March 19, 2012 at 6:11 am
Hi.
What does the following command tell you:
SELECT SUSER_SNAME(owner_sid)
FROM sys.databases
WHERE name = '<your database name here>';
March 19, 2012 at 5:21 am
Got it right because I remembered that lock escalations are always made directly to the table level. Thank you for the question! Very interesting subject.
March 19, 2012 at 5:15 am
Great question.
But am I the only that thought that the syntax error was part of the question?
But even so there wouldn't be a right answer for that.
I didn't understand the...
March 12, 2012 at 9:14 pm
Great back-to-basics question!
I just wasn't too sure if SQL Server would allow the log backup to be made or not but Hugo's explanation was right to the point.
March 7, 2012 at 9:14 am
I must thank you for the efforts of bringing this subject in the stairway series because as a T-SQL developer I was always a little confused by terms like "subscription",...
March 4, 2012 at 10:19 am
Jeff Moden (2/27/2012)
February 27, 2012 at 5:09 pm
Excellent article! Thank you.
Now I have a question for you more experienced guys and gals. 😀
If I use a tally table like the one below would that be alright? I'm
trying...
February 25, 2012 at 8:14 am
Straightforward question and highly detailed explanations!
Thank you.
February 24, 2012 at 8:06 am
tony.turner (2/12/2012)
February 12, 2012 at 6:53 pm
Love the question. No tricks and a back-to-the-basics one.
I was expecting a few BEGIN/ROLLBACK TRANSACTION commands in there to make it a little trickier but it turns out it was...
February 7, 2012 at 7:44 am
Viewing 15 posts - 121 through 135 (of 371 total)