Viewing 15 posts - 1,066 through 1,080 (of 13,879 total)
What do you mean by 'fix' exactly? Do you want to generate a unique Id yourself?
I can generate my own uniqueID and I did that too but there...
January 30, 2023 at 12:38 pm
Phil,
I can't create table (nor store procedures for example or views) because I don't have any other database access except for reading. Normally I import data and start working...
January 30, 2023 at 12:36 pm
Should I done it differently? How?
Yes. Provide your sample data in the form of CREATE TABLE / INSERT statements.
If you do that, others can copy the text straight...
January 30, 2023 at 12:25 pm
What do you mean by 'fix' exactly? Do you want to generate a unique Id yourself?
January 30, 2023 at 12:23 pm
If it's just an hour value, it really should be a tinyint.
You are dead right.
January 30, 2023 at 8:51 am
I'm so sorry guys, wrong CASE
(CASE WHEN CAST(DH.OPENING_HOUR_H AS INT) BETWEEN 10 AND 16 THEN 'Lunch' WHEN CAST(DH.OPENING_HOUR_H AS INT) BETWEEN 16 AND 19 THEN 'Snack' ELSE 'Dinner' END)...
January 29, 2023 at 9:15 am
I'd probably use a mapping table rather than a rambling CASE statement - makes the code easier to read, particularly if there are lots of distinct grades to be updated....
January 27, 2023 at 3:11 pm
Not directly related to your issue, but there are a couple of good-practice items I suggest you consider:
January 27, 2023 at 11:00 am
Hello all! I hope everyone's great
I have these columns here that are hour and minute for entry and for exit. I also have a column that let us know...
January 25, 2023 at 4:26 pm
As you are using row-by-row processing, why not use a CURSOR?
January 23, 2023 at 1:36 pm
It is possible, and if you search for 'consume data in ssis from rest api' or similar, you will find numerous examples of this.
However, it might not be as straightforward...
January 20, 2023 at 5:48 pm
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
Viewing 15 posts - 1,066 through 1,080 (of 13,879 total)