Forum Replies Created

Viewing 15 posts - 301 through 315 (of 911 total)

  • Reply To: Select return no records

    >> A better idea is to use the correct datatype. ,<<

    I agree with that statement. In fact read his posted this in a wonderful single principal, for which a given...

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

  • Reply To: Select return no records

    I think this is horrible advice. The customer number is an identifier for a customer (I assume), and not a magnitude or quantity of some attribute. Therefore, according to basic...

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

  • Reply To: Select return no records

    Now add a CHECK(cust_num  LIKE '[0-9][0-9][0-9][0-9]') to your DDL) so you do  no have this  problem again.

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

  • Reply To: Saving integers as varchar so that I can choose '' (empty) as content

    Jeff, I don't see the problem with a noble end date. I don't get makes anything complicated.Given a table that needs to show an ongoing event that has not yet...

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

  • Reply To: Saving integers as varchar so that I can choose '' (empty) as content

    >> The case of employee numbers. Because only employee related records have an employee number, those not having any either are NULL (which I don't like for different reasons or...

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

  • Reply To: expand field and fill with zeros

    From what you've posted, you start off wanting to treat this data element as a string, but then you're storing it as a numeric. You also don't know that a...

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

  • Reply To: Calculating Easter in SQL

    Many decades ago, I had to set up a calendar table (okay, in those days it was a file) for an enterprise that gave Easter holidays. I had to subordinates...

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

  • Reply To: Filling dates between the status changes

    >> I have a table with sample data like this. <<

    Thank you for trying to post DDL, but you have some fundamental errors. A table must have a key. This...

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

  • Reply To: Converting nvarchar to date

    >> You know that YYYY-MM-DD is the alternate format and it doesn't work in certain languages in SQL Server. You also know that the primary ISO format is YYYYMMDD. Supposedly,...

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

  • Reply To: Converting nvarchar to date

    >I got this to work, however,  if the month is 1-9 it sets the date to '01/01/1900' because of the month not having 2 digits.<<Clean up the souce data instead...

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

  • Reply To: would like to know more about identity_cache

    I'm not sure this is still true, but at one point several countries required that invoice numbers and other commercial documents have sequential numbering. This was a legal problem, not...

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

  • Reply To: what type of join is this?

    >> your examples didn't have a join in - they were single table selects <<

    If you've done a good job with your schema, then they will be a lot of...

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

  • Reply To: How to use next record's date as End date of current record?

    >> The very first thing that I did is to create a table that will store these Descriptive Labels along with the Actual Start and End Dates for that period....

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

  • Reply To: what type of join is this?

    >> What kind of join is this? <<

    This is called an inner equi-join. It is the simplest possible join defined by Dr. Codd and should have been discussed during the...

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

  • Reply To: Returning Info from Stored Procedures

    I'm going to be pedantic (surprise! Surprise!). What do you mean by "return info" from a procedure? Technically if it returns a single value the programming structure is a function...

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

Viewing 15 posts - 301 through 315 (of 911 total)