Forum Replies Created

Viewing 15 posts - 16 through 30 (of 853 total)

  • Reply To: Overwrite Stored Procedure Parameters

    >> GOOD SQL Developers use TOP in their code as well as anything else that their particular version of SQL allows them to use - the only things to avoid...

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

  • Reply To: Overwrite Stored Procedure Parameters

    One of the rules we had from the early days of structured programming was that a procedure should do one and only one thing, have one and only one entry...

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

  • Reply To: days between and start date

    Number the days from whenever your calendar starts and repeat a number for a weekend or company holiday.

    CREATE TABLE Calendar

    (cal_date DATE NOT NULL PRIMARY KEY,

    julianize_day_nbr INTEGER NOT...

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

  • Reply To: Issue with Leading 0

    One of the standard formats displaying a date in the ISO standards is YYYY-DDD, where DDD is a string between "001" and"365" or "366" (depending on leap years). However, I...

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

  • Reply To: Interpolation/Extrapolation

    t actually in the set.

    If you can find an old calculus, finance, statistics or algebra book, they had lookup tables in the back. Remember that the only computational tools students...

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

  • Reply To: copy rows in the same table based on conditions

    >> I have the table as in data below<<

    Please look at my credentials. This will let you know I have some authority when I tell you you're doing everything completely...

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

  • Reply To: 3 calculations on different levels

    This was removed by the editor as SPAM

  • Reply To: Issue with Case statement

    I have a table where I have mix and match records [rows are not records] under "statement" column.

    I am trying to filter based on CASE statement [sic: CASE is an...

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

  • Reply To: Dates got changed to string when imported

    In SQL the only format allowed for dates is based on ISO 8601. It is"yyyy-mm-dd" , however various products allow you to do proprietary local dialects if you don't give...

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

  • Reply To: T-SQL query combine rows into a single column

    >> I'm a newbie to T-SQL. <<

    Please read any book on basic RDBMS. As Dykstra used to say to his students, "you're doing everything completely wrong."

    CREATE TABLE Tests

    (person_id INTEGER NOT...

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

  • Reply To: SQL Query Help on Time based query

    >>

    I have a following table ..<<

    No this is not a table at all. By definition, a table must have a key, yet all your columns can be NOT NULL, so...

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

  • Reply To: Using GetDate in HAVING clause

    >> I have a table [UPSBatchInvNo] with column [ batch_date] formatted as 112621.<<

    First of all, we prefer that people post DDL and not a narrative. We have no idea what...

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

  • Reply To: Update alias or update tablename when from clause is specified

    November 29, 2021 at 3:16 am

    #3957742

    REPLY | REPORT | QUOTE

    I would like to ask your opinions and recommendations on how to properly write an update with a from clause. I'm putting this in the...

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

  • Reply To: sql query help

    >>I have a table with the below data. <<

    Where is the DDL? For over 30 years. Standard netiquette on SQL forums has been to post DDL when you want help....

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

  • Reply To: Query help

    Please read any book on basic data modeling or SQL. By definition, a table must have a key. A key is a particular subset of attributes in that table that...

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

Viewing 15 posts - 16 through 30 (of 853 total)