Viewing 15 posts - 301 through 315 (of 910 total)
I think this is horrible advice. The customer number is an identifier for a customer (I assume), and not a magnitude or quantity of some attribute. Therefore, according to basic...
Please post DDL and follow ANSI/ISO standards when asking for help.
April 10, 2020 at 10:28 pm
Now add a CHECK(cust_num LIKE '[0-9][0-9][0-9][0-9]') to your DDL) so you do no have this problem again.
Please post DDL and follow ANSI/ISO standards when asking for help.
April 10, 2020 at 12:16 pm
Jeff, I don't see the problem with a noble end date. I don't get makes anything complicated.Given a table that needs to show an ongoing event that has not yet...
Please post DDL and follow ANSI/ISO standards when asking for help.
April 9, 2020 at 6:32 pm
>> The case of employee numbers. Because only employee related records have an employee number, those not having any either are NULL (which I don't like for different reasons or...
Please post DDL and follow ANSI/ISO standards when asking for help.
April 8, 2020 at 8:23 pm
From what you've posted, you start off wanting to treat this data element as a string, but then you're storing it as a numeric. You also don't know that a...
Please post DDL and follow ANSI/ISO standards when asking for help.
April 3, 2020 at 6:01 pm
Many decades ago, I had to set up a calendar table (okay, in those days it was a file) for an enterprise that gave Easter holidays. I had to subordinates...
Please post DDL and follow ANSI/ISO standards when asking for help.
April 1, 2020 at 3:31 pm
>> I have a table with sample data like this. <<
Thank you for trying to post DDL, but you have some fundamental errors. A table must have a key. This...
Please post DDL and follow ANSI/ISO standards when asking for help.
March 26, 2020 at 9:20 pm
>> You know that YYYY-MM-DD is the alternate format and it doesn't work in certain languages in SQL Server. You also know that the primary ISO format is YYYYMMDD. Supposedly,...
Please post DDL and follow ANSI/ISO standards when asking for help.
March 26, 2020 at 7:47 pm
>I got this to work, however, if the month is 1-9 it sets the date to '01/01/1900' because of the month not having 2 digits.<<Clean up the souce data instead...
Please post DDL and follow ANSI/ISO standards when asking for help.
March 25, 2020 at 9:28 pm
I'm not sure this is still true, but at one point several countries required that invoice numbers and other commercial documents have sequential numbering. This was a legal problem, not...
Please post DDL and follow ANSI/ISO standards when asking for help.
March 25, 2020 at 1:16 am
>> your examples didn't have a join in - they were single table selects <<
If you've done a good job with your schema, then they will be a lot of...
Please post DDL and follow ANSI/ISO standards when asking for help.
March 9, 2020 at 8:34 pm
>> The very first thing that I did is to create a table that will store these Descriptive Labels along with the Actual Start and End Dates for that period....
Please post DDL and follow ANSI/ISO standards when asking for help.
March 5, 2020 at 11:33 pm
>> What kind of join is this? <<
This is called an inner equi-join. It is the simplest possible join defined by Dr. Codd and should have been discussed during the...
Please post DDL and follow ANSI/ISO standards when asking for help.
March 5, 2020 at 9:42 pm
I'm going to be pedantic (surprise! Surprise!). What do you mean by "return info" from a procedure? Technically if it returns a single value the programming structure is a function...
Please post DDL and follow ANSI/ISO standards when asking for help.
February 28, 2020 at 6:52 pm
I am sort of famous for being the "standards Uber Alles" guy in the SQL community. I'm very proud of it and it served me very well. I've written 10...
Please post DDL and follow ANSI/ISO standards when asking for help.
February 24, 2020 at 7:19 pm
Viewing 15 posts - 301 through 315 (of 910 total)