Viewing 15 posts - 1 through 15 (of 920 total)
The short answer is to look up the STRING_SPLIT() function. Microsoft added it to let bad programmers kludge their code. Cleaning up data until at least you get to1NF should...
September 19, 2024 at 9:11 pm
As an aside, the symbol for concatenation in ANSI/ISO standard SQL is <string 1> || <string 2>. ANSI X3 H2. picked this symbol from the old PL/1 programming language. It...
August 23, 2024 at 2:14 pm
By definition, a table must have a key. You also have more NULL-able columns in this one table that I have an entire schemas. Why do you need 255 Chinese...
July 17, 2024 at 10:30 pm
By definition, a table must have a key. You also have more NULL-able columns in this one table that I have an entire schemas. Why do you need 255 Chinese...
July 17, 2024 at 10:29 pm
Did you know that a table has to have a key. By definition. Not as an option. You posted garbage! Why do you think of column names are meaningful? For...
July 12, 2024 at 9:10 pm
While everyone remembered that a primary key cannot have nulls, I'll take issue with some of the designs here. First of all, do you have more than one customer? Shouldn't...
July 12, 2024 at 1:37 pm
You're not going to use this data as points in time, but as intervals, so model it that way
Create table events
(event_number integer not null primary key,
event_start_timestamp dateime2(0) not null unique,
event_finish_timestamp...
June 25, 2024 at 8:35 pm
Create table list_of_stuff
(stuff_id char (10) not null primary key,
...));
Create view anointed_one
as
SELECT ...
From list_of_stuff
where stuff_id = <parameter>
Since you deal with the table, we know we've got a key, so why not...
May 7, 2024 at 12:36 am
Please consider learning standard SQL. We don't have an IFF() construct; that was spreadsheets and perhaps some nonrelational languages. Take the time to write everything out as a CASE expression....
April 17, 2024 at 9:32 pm
As an aside, MySQL had a proposal for extended ISO 8601 date formats. The idea was that the yyyy-mm-dd format which is the only one allowed in ANSI/ISO standard SQL...
February 23, 2024 at 5:14 pm
Yes. Arrgh! Next time I will need see the spelling correction is doing its job. Dijkstra taught the University of Texas in Austin before his death. State got a lot...
February 7, 2024 at 4:33 pm
Be glad you never had a class under Dykstra at UT. His favorite way of talking to students was to tell them "You're doing everything completely wrong!" But you knew...
February 6, 2024 at 9:00 pm
Why do you think you need a non-relational IDENTITY column in this table? The primary key is supposed to be unique already; this is a definition, not an option. Is...
February 5, 2024 at 9:53 pm
You're still writing SQL as if you were in BASIC or Fortran. Let's start off with the create table statement. By definition, and not as an option, table must have...
January 31, 2024 at 3:21 pm
Actually this was a discussion inside ANSI on this Before relational modeling, there were other conventions; one of the most popular was IDEF (I can't remember what it stands for),...
October 27, 2023 at 1:29 pm
Viewing 15 posts - 1 through 15 (of 920 total)