Viewing 15 posts - 1,036 through 1,050 (of 13,838 total)
You want to see all of the codes from all of the different tables in a single column?
For that, you will need a UNION query and no joins at all.
January 18, 2023 at 9:49 pm
Here is some dynamic SQL to give you an idea. You cannot 'inject' variables into column aliases using 'normal' T-SQL.
DECLARE @Yr SMALLINT = 2022;
DECLARE @Sql VARCHAR(MAX)
...
January 13, 2023 at 12:11 pm
Maybe something like this?
WITH result
AS (SELECT TOP(1)
t.Id
FROM dbo.Transfer t
...
January 13, 2023 at 8:46 am
Hi Jeffrey,
yes, SSRS is a brilliant idea. not sure why it didn't occur to me. I had created few SSRS reports in past.
I will consider SSRS or a python...
January 12, 2023 at 2:25 pm
Is it possible to provide an easy digestable test-case?
Table definition
Inserts for testcase
Wanted results
+1, we definitely need this in order to be able to give you a coded solution.
January 12, 2023 at 10:10 am
Assuming the package has been deployed to SSISDB, it may be called (with parameters as needed) from a stored procedure. Would that help?
January 11, 2023 at 9:11 am
Given that the results of a single query must always have the same number (and datatype) of columns, there's no straightforward way of doing this. With some juggling, you may...
January 11, 2023 at 9:08 am
When we create a foreign key using UPDATE CASCADE the referencing rows are updated in the child table when the referenced row is updated in the parent table which...
January 9, 2023 at 1:15 pm
I am having some kind of proprietary database with the file extension of .DSE i would like to import those in SQL Server 2019
Is there any way to import...
January 8, 2023 at 12:46 pm
If you are hoping for a coded solution, please provide DDL and INSERTs with sample data, and desired results based on the sample data.
January 6, 2023 at 8:54 am
Where do you want to run the code from? SSMS? SQLCMD? C# app? Something else?
December 15, 2022 at 8:57 am
I assume you will design a registration table (MemberId, LocationId, DateRegistered, etc), with FKs to Member and Location? If so, add a Boolean 'IsPrimary' to that table to denote the...
December 12, 2022 at 8:28 am
thanks guys. this is great. really appreciate the assistance!
Interesting, at the surface, one would think this wouldn't be a difficult job for sql server to handle(?)
You're apportioning blame in...
December 8, 2022 at 5:07 pm
That is a common problem when importing from Excel. The way I handle it is
December 8, 2022 at 4:17 pm
That looks like a good dataset, and I'm sure that your explanation makes plenty of sense, to people who understand the data!
But I'm not one of those people, so would...
December 7, 2022 at 5:05 pm
Viewing 15 posts - 1,036 through 1,050 (of 13,838 total)