Forum Replies Created

Viewing 15 posts - 1,351 through 1,365 (of 1,390 total)

  • Reply To: Generate a string format based on fixed length and numeric units on increment

    Step 1: generate some dummy data

    /* create a table to hold the country and province values  */
    /* as well as a column to store the cntry_prov_code...
  • Reply To: SQL Collation different in tables and columns

    Chris Wooding wrote:

    If your database originally resided on a different server (with a different collation), columns created would have used that default. Columns created after the migration would default to the...

  • Reply To: Generate a string format based on fixed length and numeric units on increment

    Why do you declare province to be char(2) and then assign it left(col_name, 1) which is only 1 character?

    Does the sequence reset for each country?

    What is the needed sort order...

  • Reply To: Generate a string format based on fixed length and numeric units on increment

    Suppose the code you need to calculate is called the "Country Province Number" CPN.  The issue here is the example you provided only declares variables for a single record and...

  • Reply To: Generate sequence of stations

    You have 2 tables?

    1. Dates  -- contains the master list of dates.  Table has 1 column.
    2. Stations -- contains the date and # of stations.  Table has 2 columns

    The output...

  • Viewing 15 posts - 1,351 through 1,365 (of 1,390 total)