Forum Replies Created

Viewing 15 posts - 361 through 375 (of 911 total)

  • Reply To: Numeric and Decimal

    This is another example of Microsoft versus ANSI/ISO. When we set up the DECIMAL and NUMERIC data types, we were thinking of COBOL style picture data and BCD data. The...

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

  • Reply To: Master and Detail Table

    >> I have two tables= <<

    Really? Then where's the DDL for these two tables? Why do you think an identifier can be numeric? What math are you doing on them,...

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

  • Reply To: Identity column as Primary Key - good or bad?

    >> IDENTITY() is a piece of automation that solves a set of tricky problems for you. <<

    Actually, IDENTITY creates problems rather than solve them. Essentially, you've decided to throw away...

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

  • Reply To: SQL Cursor Trouble

    >> Also, considering that VALUES didn't actually come out until 2008, your lecture about getting rid of the old syntax "decades" ago is full of hooie.<<

    Looking over my old ANSI...

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

  • Reply To: Average across non-business days

    Please learn the difference between a row and a record. It's very important for RDBMS.

    I also wish you would learn to read the posting netiquette for this forum. Where is...

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

  • Reply To: Is this a use case for Graph Database?

    Many years ago, I was asked by a graph database company to solve the "Kevin Bacon problem" in SQ to compare to their products solution. If you don't know this...

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

  • Reply To: SQL Query weird result

    https://en.wikipedia.org/wiki/ISO/IEC_5218

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

  • Reply To: SQL Query weird result

    Those of us who follow ISO standards use 0=unknown, 1= male, 2= female, 9= lawful person (churches, corporations, etc.) And make the column not null.

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

  • Reply To: Need to find out what combination of columns makes each record in table unique

    First of all, if a table doesn't have a key. It's not really a table. Is there any kind of documentation that can give you a hint as to what...

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

  • Reply To: SQL Cursor Trouble

    We need to correct your attempt at DDL. By definition, a table must have a key, but this is impossible with your DDL because both columns are NULL You have...

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

  • Reply To: need help with a query to avoid while loop

    Never, never use that highly proprietary and totally nonrelational SQL_variant data type. We designed SQL to be a strongly typed language. The relational model depends on strong data typing. It's...

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

  • Reply To: Identity column as Primary Key - good or bad?

    >> I'm building a web app to maintain some data, which is mostly flat but will benefit from having some static look-up tables. Typically these look-up tables with have at...

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

  • Reply To: SQL Query Execution time

    Please don't ask dumb questions. Do you really believe that the payroll for the United States government query should execute anywhere near the query for your knitting club? A query...

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

  • Reply To: Convert European format values to US Format

    This should not be a problem at the database tier in your tiered architecture. Do this in the input, before it even gets near the tables. You'll find ETL tools...

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

  • Reply To: The Partial Computed Column

    This is a CASE expression, not a statement. This is important because it is why this works and has an implied "ELSE NULL" clause.

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

Viewing 15 posts - 361 through 375 (of 911 total)