Forum Replies Created

Viewing 15 posts - 241 through 255 (of 911 total)

  • Reply To: Validate field in STaging before loading

    My guess would be that a document number should be an identifier. Identifiers are always measured on a nominal scale. Therefore, you document number should have been a string of...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: Validate field in STaging before loading

    >> Obviously I agree with that principle, as a general rule. Would you say I am way off beam when using temp tables for actually doing the tidy up of...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: How to create a minimal tally table and to describe its advantages (if any)

    >> Would that work with a row goal? Are you suggesting to use a CTE pattern instead of itvf? The purpose is to make it simple to use a tally...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: How to create a minimal tally table and to describe its advantages (if any)

    Any time I've needed to populate a table of sequential numbers, I just done it by brute force. No recursion or fancy stuff. Remember the definition of place valued numbers?...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: Do You Have Big Data?

    I've always defined "big data" as having two important characteristics. Volume and velocity. Volume is sort of obvious; the sheer volume of data is more than we've had in the...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: Trigger on View

    >> Trying to CREATETrigger on View to insert the records [sic] in other table like below. <<

    Your whole approach this problem is wrong. By definition, not by option, a table...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: Update many records to a date next week based on a Numeric Day Value

    >> need to run a stored procedure that will UPDATE all records [sic] DATE field [sic] (meeting_date) to the following week.<<

    In SQL, a field refers to a meaningful subset of...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: Previous row where condition exists

    CREATE TABLE Foobar

    (rin CHAR(10) NOT NULL

    CHECK(rin LIKE '[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'),

    provider_name VARCHAR(255) NOT NULL,

    license_nbr NVARCHAR(50) NOT NULL,

    pickup_timestamp DATETIME2(0) NOT NULL,

    dropoff_timestamp DATETIME2(0) NOT NULL,

    modifier_code NVARCHAR(519) NOT NULL,

    calulated_fare_amt DECIMAL(10,2) NOT NULL,

    PRIMARY KEY (rin, ??));

    INSERT INTO...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: How to calculate a column recursively ?

    A simple table read to a computed column, versus a cross apply with multiple tables should not be cheaper or equal to each other. I'm not sure if they would...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: How to calculate a column recursively ?

    Discount rates don't usually change that much. They are usually mandated by law or company policy. The most dynamic data element in this table is going to be the prices!...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: How to calculate a column recursively ?

    I have a data as below.

    Why did you fail to post any DDL? But more than that, why do you think that SQL and the relational model use any kind...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: SQL View Question

    The description my body. A something>> I've a little problem with a SQL View ... <<

    No, your actual problem is with the DDL. You don't know how relational databases work...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: Insert from TableA To TableB not in order sequence

    >> I have a table called TableA, the record [sic] in TableA already in order sequence as below: <<

    NO! Rows are nothing like a records. By definition, a table has...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: Multiple Values Output in One Column

    >> relatively new to SQL development so hoping this isnt a silly question but here goes... <<

    No, it's not silly, but it is based on a lack of experience and...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: Nearest Proximity For every record

    I did a problem like this a few decades ago for emergency services. We had to include driving time and consider the time of day. There is also the problem...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

Viewing 15 posts - 241 through 255 (of 911 total)