Viewing 15 posts - 451 through 465 (of 911 total)
>> Why don't you use a CASE and depending on the [sic] type, return the column you want? <<
You don't do this because it doesn't work. Did you notice when...
Please post DDL and follow ANSI/ISO standards when asking for help.
June 26, 2019 at 6:56 pm
>> I have been presented with some source data and mapping tables where the source data is stored as : <<
why did you fail to post any DDL? Did you...
Please post DDL and follow ANSI/ISO standards when asking for help.
June 26, 2019 at 6:13 pm
Booleans have always been a problem in SQL. Our three value logic has problems from a mathematical viewpoint. Starting with the basics, Boolean datatype should have {true, false} as it's...
Please post DDL and follow ANSI/ISO standards when asking for help.
June 26, 2019 at 4:30 pm
Please do a little research and look up the design flaw called EAV. You are reinventing it, and on top of that, you added assembly language style bit flags. You...
Please post DDL and follow ANSI/ISO standards when asking for help.
June 25, 2019 at 5:11 pm
A useful idiom is a report period calendar. It gives a name to a range of dates. The worst way would be to use temporal math; it tells the world...
Please post DDL and follow ANSI/ISO standards when asking for help.
June 7, 2019 at 8:55 pm
>> Basically in table1 I have the name of the task and the id. <<
Why do you think that "table_1" and "table_2" are useful names? Did you know the IDENTITY...
Please post DDL and follow ANSI/ISO standards when asking for help.
June 7, 2019 at 8:38 pm
The poster can control the @ and # tables he creates, can't he? Data element names, etc. are also under their control. Yes, you can get stuck with crap DDL...
Please post DDL and follow ANSI/ISO standards when asking for help.
June 7, 2019 at 5:15 pm
I have been doing this for over 30 years. I found that people who post bad SQL on forums also write bad code in production. As one guy told me...
Please post DDL and follow ANSI/ISO standards when asking for help.
June 7, 2019 at 3:19 pm
Data is collected and inserted into a "storage" table at various times throughout the month which shows customers and how much storage they are consuming.
I need to report on the...
Please post DDL and follow ANSI/ISO standards when asking for help.
June 7, 2019 at 2:31 pm
Let's start with the basics. For over 35 years, Netiquette on SQL forums is to post DDL --not pictures-- when asking for help. Now we have to print out your...
Please post DDL and follow ANSI/ISO standards when asking for help.
June 5, 2019 at 4:32 pm
Kuznetsov’s History Table is a SQL idiom which builds a temporal chain from the current row to the previous row. This is easier to show with code:
CREATE TABLE Tasks
(task_id CHAR(5)...
Please post DDL and follow ANSI/ISO standards when asking for help.
May 31, 2019 at 7:33 pm
Have you considered using a relational database, and following basic data modeling rules?
You are using SQL to write a 1960’s magnetic tape file! There is no such crap as an...
Please post DDL and follow ANSI/ISO standards when asking for help.
May 31, 2019 at 7:30 pm
The textbook definition of a relational key is a subset of columns (NOT fields! Try attributes, if you want a near-synonym) which is unique within each row (NOT record) of...
Please post DDL and follow ANSI/ISO standards when asking for help.
May 29, 2019 at 5:42 pm
Does your boss also expect you to write code without any DDL? Perhaps is time for you to update your resume and move on to a company that is run...
Please post DDL and follow ANSI/ISO standards when asking for help.
May 17, 2019 at 7:35 pm
>> I have table with loans and different steps for processing , <<
Really? Where is the DDL for this table? Why don't you follow Netiquette? Why did you use a...
Please post DDL and follow ANSI/ISO standards when asking for help.
May 8, 2019 at 5:39 pm
Viewing 15 posts - 451 through 465 (of 911 total)