Viewing 15 posts - 991 through 1,005 (of 13,879 total)
That looks impossible to me, based on that table structure, because it is only recording a partial history of what happened.
For example: if an employee starts in div A, moves...
May 9, 2023 at 2:40 pm
Here is one way
SELECT TOP (1) <column converted to date>, other columns
FROM table
ORDER BY <column converted to date> DESC
May 8, 2023 at 10:19 am
The only rows you will be able to delete are those which have no 'children'.
DELETE EVACUATION E2
WHERE NOT EXISTS
(
SELECT 1 from EVACUATION E WHERE E.COD_EXP_CHG...
May 6, 2023 at 8:14 am
Let me step back a little. You are importing from Excel to SQL Server, is that correct? And you have one or more date columns in the Excel file which...
May 6, 2023 at 6:50 am
As you've posted in a SQL Server forum, are you looking for a T-SQL solution?
May 5, 2023 at 12:46 pm
What does the package do?
Could there be a date format difference (eg, DMY vs MDY) between the two environments?
May 4, 2023 at 1:45 pm
I will probably follow Jeff's advice not to use TempDB, even though I think I would still get to keep my job if I did. It would have had...
May 2, 2023 at 11:17 am
Duplicate key / constraint violation? As requested above, please provide the text of the error message.
May 2, 2023 at 7:50 am
Interesting. Perhaps more useful for beginners than seasoned professionals.
The following sentence is inaccurate:
This code is using the GETDATE(); function which is not allowed in a stored procedure.
There is no problem...
May 1, 2023 at 8:50 am
Phil Parkin from what I gathered they did not care about the order just the first record that has Accepted or Rejected means that the RecordId gets a 1 otherwise...
April 29, 2023 at 2:18 pm
As there are so few rows, I'd create a chunk of code which drops, creates and populates the table in TempDB
DROP TABLE If EXISTS #SomeLookup;
CREATE TABLE #SomeLookup(SomeKey...
April 29, 2023 at 10:56 am
In my sql result, I want to create a column called RCount. Condition: For each RecNo, AccNo * If the field Reason is "Accepted", it doesn't matter what other...
April 27, 2023 at 8:40 am
If I do any significant development work, I document it myself in Confluence. This documentation remains internal, but for me has the following benefits:
April 26, 2023 at 8:19 am
Viewing 15 posts - 991 through 1,005 (of 13,879 total)