Viewing 15 posts - 1,456 through 1,470 (of 7,608 total)
As a first step, make sure you are on the latest CU patch level.
June 30, 2021 at 3:08 pm
That's where you and I would differ... to me, the "customer number" would be the IDENTITY column. Or, perhaps, a Random GUID. 😀 Why would your "customer...
June 30, 2021 at 2:53 pm
It would be really interesting to see you design a Customer or Employee table without one. I'd also be interested in your claim of "it's literally impossible to normalize...
June 29, 2021 at 6:57 pm
Heh... so THAT's the reason why so many people end up with "slow databases" and IDENTITY columns everywhere. 😉 A lot of the important stuff isn't even considered up...
June 29, 2021 at 5:01 pm
Great, sounds good.
Again, though, your initial design should NOT be "tables", it should just be data. It should be at a business level, not at a techy level.
If at all...
June 29, 2021 at 3:58 pm
I want to design a database for an OLTP app where it mainly involves customer and transaction.
Then definitely start the design before tables. That is, do a logical data...
June 28, 2021 at 10:37 pm
[Use ROW_NUMBER() partly because of inherent efficiency] And partly because it's so easy to adapt:
SELECT theDate, value, flag
FROM (
SELECT *, ROW_NUMBER() OVER(PARTITION BY...
June 28, 2021 at 10:18 pm
DECLARE @start_year int
DECLARE @start_month char(2)
DECLARE @month_count smallint
SET @start_year = 18
SET @start_month = '01'
SET @month_count = 12
;WITH
cte_tally10 AS (
SELECT * FROM (VALUES(0),(0),(0),(0),(0),(0),(0),(0),(0),(0)) AS numbers(number)
),
cte_tally1000...
June 28, 2021 at 10:12 pm
Solution:
Use COALESCE instead of ISNULL, i.e.:
select COALESCE(nullif('',''),' ')
June 28, 2021 at 2:57 pm
After all these decades. I don't remember why the inmate number was that long. I believe we display the first nine digits because that matches the Social Security number....
June 25, 2021 at 8:53 pm
I just notice this: is there supposed to be a space in the @CustNum value? Just curious. Since that appears to be your own custom data type, it might be...
June 25, 2021 at 8:48 pm
Since all the people who have ever existed fit very comfortably into 12 digits, I can't imagine why you'd need 18 digits for your person id.
June 25, 2021 at 8:30 pm
Interesting behavior. Have not seen that occur "naturally" before.
Edit: Now that I think about it, I thought all changes made w/i a trans were visible to that trans, even if...
June 25, 2021 at 6:04 pm
Viewing 15 posts - 1,456 through 1,470 (of 7,608 total)