Viewing 15 posts - 91 through 105 (of 133 total)
This is a direct cut and paste from "SQL for Smarties", you will have to figure out where the data in the tables and stuff should go. But it looks...
September 13, 2016 at 12:06 pm
>> I have a table of calendar dates with a Y/N flag to denote whether or not the date is a working day. <<
We do not like to write with...
September 13, 2016 at 11:51 am
CREATE TABLE Buckets
(bucket_nbr INTEGER NOT NULL PRIMARY KEY,
bucket_size INTEGER NOT NULL
CHECK (bucket_size > 0,
bucket_contentINTEGER NOT NULL
CHECK (bucket_content BETWEEN 0 AND bucket_size)
);
INSERT INTO Buckets (bucket_size, bucket_content,...
September 10, 2016 at 1:49 pm
If you think SQL's nulls are bad, then look at the IEEE floating-point standards which have NaN (not a number) configurations. The list includes +INF and -INF for positive and...
September 8, 2016 at 9:21 am
I would conclude that division by zero is in fact the VERY definition of NULL, and such should resolve to that returned value. I most DEFINITELY would not suspect that...
September 8, 2016 at 9:14 am
A declarative language needs orthogonality. Unless something changed in 2016, you cannot pass functions as parameters to other functions in UDFs. In T-SQL dialect, we basically have a copy of...
September 5, 2016 at 12:55 pm
Disclaimer - Patience please - this is my first go at DB development.
I have to identify records [sic] in a table that has multiple rows, and from the multiple...
September 1, 2016 at 8:51 pm
It might be true that a CLR, like a cursor could be the best solution for some particular problem. But I have to go along with Jeff; I found that...
September 1, 2016 at 7:55 pm
No, functions are used so that its code can be re-used. Seriously, your obsession with labeling everyone a Luddite gets insufferable
I did not call anybody a Luddite; I simply...
September 1, 2016 at 7:45 pm
And you CELKO
You have devoted a lot of time to review our design and mention my mistakes.
You are great. I was frustrated when I saw loads of faults...
September 1, 2016 at 7:36 pm
]I've found myself creating loads of functions recently which are typically used for one specific task and rarely required again.
This is not how we intended SQL to be used....
September 1, 2016 at 12:06 pm
>> We have 4 Tables :
1- Order (Head of orders)
2- OrderItems (Details Of orders)
3- ReturnORD (head of some Orders which have some returned items)
4- ReturnORDItems (detail of OrderItems which have...
September 1, 2016 at 11:56 am
It would be much better to convince the "developers" that FLOAT is the wrong thing to use unless the scale of the number varies in an astronomical way.
I found...
August 26, 2016 at 9:01 am
The field {columns are not fields} where I am trying to insert is a UNIQUEIDENTIFIER and I am receiving the following error
Conversion failed when converting from a character string...
August 25, 2016 at 12:02 pm
>> The requirement is to get the number of mutual friends between two users. This I need to do for a single user_name passed as a parameter. <<
UNH? Your narrative...
August 25, 2016 at 11:53 am
Viewing 15 posts - 91 through 105 (of 133 total)