Viewing 15 posts - 16 through 30 (of 146 total)
That makes sense. I'm not sure what happened there, but this is helpful. Thank you.
May 19, 2020 at 11:25 am
Jeff,
Yes, I saw that part about returning various numbers. I think I might have misunderstood what is meant by the procedure generating an error. I took that to mean if...
May 18, 2020 at 10:21 pm
Jeff,
Thanks for the link. Now I understand how to obtain the return code.
Here is the only part I don't understand. Using the code from my example, how might the procedure...
May 18, 2020 at 3:04 pm
This makes sense. When using the DELETE statement usually there is nothing following the delete, however you have the alias of the derived table, after DELETE. If I omit do...
May 15, 2020 at 1:37 am
In looking back I guess there wasn't really a need to post the original data in the blue/green columns. I understand it now.
Also, I'll keep in mind the suggestion about...
May 1, 2020 at 11:53 pm
I have another problem that might be similar. In the attached file to this post, the tab called Example 1G shows the query I used above the yellow columns. The...
April 30, 2020 at 7:26 pm
I forgot to take that into account. That makes sense now.
April 30, 2020 at 7:19 pm
I have a screenshot of the SQL code pasted into the Excel file. Did you see the screenshot?
For the sample data, that is shown in the first table on both...
April 30, 2020 at 6:55 pm
February 18, 2020 at 12:35 am
May I ask why you are using CTEs in this manner when you could just use the tables themselves?
That was going to be my exact...
February 18, 2020 at 12:30 am
May I ask why you are using CTEs in this manner when you could just use the tables themselves?
That was going to be my exact question.... or...
February 12, 2020 at 11:33 pm
You're UPDATE
statement is incorrect. If you are going to alias something, you need to use that alias throughout.
UPDATE o -- use the alias here.
SET o.Description...
February 11, 2020 at 3:16 am
Either SELECT or VALUES
DECLARE @ID int
DECLARE @multiVariable table
(
ID int,
FName varchar(20),
Company varchar(20),
State char(2)
)
INSERT INTO @multiVariable
--VALUES
SELECT ID, fName, address, state
FROM baseTableExample;
To everybody. It worked. Thank you.
February 11, 2020 at 2:29 am
Or, put the CTE with the select that is calling it:
With ProductName(ProductID, Description)
AS
(
SELECT ProductID, ProductName
FROM dbo.Products
)INSERT INTO ProductName...
February 11, 2020 at 2:17 am
you need to use the output clause
With ProductName(ProductID, Description)
AS
(
SELECT ProductID, ProductName
FROM dbo.Products
)
INSERT INTO ProductName ...
February 11, 2020 at 2:17 am
Viewing 15 posts - 16 through 30 (of 146 total)