Viewing 15 posts - 136 through 150 (of 911 total)
SQL makes the best estimate of the situation at compile time. If the distribution of the data has changed, and the previous execution plan might not be the best. For...
Please post DDL and follow ANSI/ISO standards when asking for help.
March 9, 2021 at 7:17 pm
>> .. do a loop statement for the following table <<
Where is the DDL for this table? We don't have loops in SQL! This is a set-oriented declarative language. If...
Please post DDL and follow ANSI/ISO standards when asking for help.
March 8, 2021 at 10:03 pm
The terms "child" and "parent" are not part of RDBMS; they come from the network databases and refer to pointer chain structures. In SQL we have "referenced" and "referencing" columns,...
Please post DDL and follow ANSI/ISO standards when asking for help.
March 8, 2021 at 4:00 pm
Apparently you don't know that a table by definition, must have a key. Then you don't know how to design a table, even if it did have a key. You're...
Please post DDL and follow ANSI/ISO standards when asking for help.
March 8, 2021 at 3:05 pm
As a guy who constantly advocates for ANSI/ISO standards, I would like to point out that the CONCAT is not SQL but local dialect. The correct syntax is in fixed...
Please post DDL and follow ANSI/ISO standards when asking for help.
March 2, 2021 at 2:43 pm
I have to tell a story. The choice of the keyword COALESCE () is due to Phil Shaw from IBM, one of the smartest guys that ever served on the...
Please post DDL and follow ANSI/ISO standards when asking for help.
March 1, 2021 at 11:36 pm
The name common table expression comes from the way that you factor it out of multiple positions in a query expression and move it to the front. By analogy, it's...
Please post DDL and follow ANSI/ISO standards when asking for help.
February 28, 2021 at 4:39 pm
https://www.red-gate.com/simple-talk/sql/learn-sql-server/sql-server-sequence-basics/
Please post DDL and follow ANSI/ISO standards when asking for help.
February 26, 2021 at 2:43 pm
Three decades ago, I tried posting super consolatory postings. I tried fixing one and only one problem at a time when somebody posted a total mess. I found out that...
Please post DDL and follow ANSI/ISO standards when asking for help.
February 26, 2021 at 2:19 pm
Have you tried using a CREATE SEQUENCE construct?
Please post DDL and follow ANSI/ISO standards when asking for help.
February 26, 2021 at 3:18 am
IIf([var1Title] != '', [var1Title] + ' - ' + [var1Topic] + ' - ' + [var1Name], '') AS Item1
In some cases, the value of var1Name is NULL. Oddly, when var1Name...
Please post DDL and follow ANSI/ISO standards when asking for help.
February 26, 2021 at 3:15 am
Why are you using dynamic SQL? Why are you doing everything with metadata? Why was Dr. Codd so wrong about this AND you are so smart? You might want to...
Please post DDL and follow ANSI/ISO standards when asking for help.
February 25, 2021 at 9:32 pm
I strongly recommend that you give up the adjacency list model for an inventory. Use the nested set model instead. You can Google it, or read chapters in my book...
Please post DDL and follow ANSI/ISO standards when asking for help.
February 25, 2021 at 8:15 pm
The picture you posted is not a table by definition. It's got duplicate rows! You have no key or constraints. The strings you posted are not how we represent a...
Please post DDL and follow ANSI/ISO standards when asking for help.
February 25, 2021 at 6:29 pm
The picture you posted is not a table by definition. It's got duplicate rows! You have no key or constraints. The strings you posted are not how we represent a...
Please post DDL and follow ANSI/ISO standards when asking for help.
February 25, 2021 at 1:39 pm
Viewing 15 posts - 136 through 150 (of 911 total)