Viewing 15 posts - 151 through 165 (of 911 total)
ERROR: Msg 8120, Level 16, State 1, Line 27
Column 'Documents.document_id' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY...
February 24, 2021 at 3:51 pm
This myth goes back to the very early days of DB2. It was IBM's superstition for pretty much the same reason you gave. The truth is maintaining the views is...
February 20, 2021 at 5:09 pm
Please follow forum netiquette and post DDL. I presume that your boss does not make you try to program from graphics and pretty pictures. I also hope you know the...
February 14, 2021 at 4:40 pm
Why did you allow all those columns to be NULL-able? You can't default them to an empty string or blank or some other symbol instead in your DDL? And why...
February 13, 2021 at 5:34 pm
You're getting there! You still have some basic fundamental flaws in your DDL. In a properly designed RDBMS, the data element names will follow the ISO 11179 naming rules. This...
February 11, 2021 at 7:24 pm
Please look up these two articles for help.
https://www.red-gate.com/simple-talk/sql/learn-sql-server/values-and-long-parameter-lists-part-i/
https://www.red-gate.com/simple-talk/sql/learn-sql-server/values-and-long-parameter-lists-part-ii/
February 9, 2021 at 11:53 pm
By definition, a table must have a key. You don't have one in your DDL so you need to fix that. You have some misconceptions about RDBMS that you might...
February 9, 2021 at 11:44 pm
I wish you would post an actual table. This DDL is not a valid table because it lacks a key. The fact that you named your table "employee" says that...
February 6, 2021 at 6:45 pm
There are no such creatures as a generic "date", generic "id", or generic "status"; I also seriously doubt that the status is ever 150 characters of Chinese. You define something...
February 4, 2021 at 5:07 pm
>> Example (dates changed to integers to simplify the problem): <<
Don't do this. We were very proud of putting temporal data types into the language. Unfortunately, what you posted for...
February 3, 2021 at 8:41 pm
>> Create a table to track the last used child_id [sic] per parent_id [sic] <<
The terms "child" and "parent" come from the old pointer chain/hierarchical databases. The correct terms in...
February 2, 2021 at 9:02 pm
Actually, I found you do need to yell at people a little bit especially when they are screwing up. By definition, a "minimal example" would include a key because that's...
February 2, 2021 at 7:26 pm
That's a really bad idea. Identity is proprietary profit that numbers the insertions to a table in the old Sybase family of early relational databases. It is by definition, not...
February 2, 2021 at 7:10 pm
The first thing I want to do is correct your DDL. You don't seem to know the table must have a key. This is not an option; it is a...
February 1, 2021 at 5:09 pm
There's a pattern for this for you don't have to do this weird nonrelational numbering. Entities that exist by themselves are called "strong"; entities that depend on a strong entity...
February 1, 2021 at 3:47 pm
Viewing 15 posts - 151 through 165 (of 911 total)