Forum Replies Created

Viewing 11 posts - 31 through 41 (of 41 total)

  • RE: Auditing data within a table.

    SELECT * FROM tblAudit

    EXCEPT

    SELECT Room, Location, SubLocation, IDNo FROM tblMain

    The requirements are not very clear (no DDL of the tables, no expected output). Anyway do you mean something like that:

    SELECT...

  • RE: T-SQL Loop Question

    I have written a loop to transfer data from one table to another. In the code below what can I do to have it increment to the next...

  • RE: Subtracting a value from the previous row in a query.

    if (R at Time T) < (R at Time (T-1)), then Rcalc = 0, otherwise, Rcalc = [(R at Time T) - (R at Time (T-1))]

    CREATE TABLE MyWeather

    (T DATETIME...

  • RE: Handling in a field

    Am I incorrect in this thinking? or Is it better to pass the enitre table. I figured that passing the field would be more efficient than passing the entire table....

  • RE: Handling in a field

    Paul,

    What am I doing wrong?

    try this:

    CREATE TABLE Pauls_Addresses

    (company_code INT NOT NULL PRIMARY KEY,

    company_name VARCHAR(30) NOT NULL,

    company_address VARCHAR(255) NOT NULL,

    company_address1 VARCHAR(30), -- new address line1

    company_address2 VARCHAR(30), --...

  • RE: Handling in a field

    I just saw this post in another group:

    http://groups.google.com/group/comp.databases.ms-sqlserver/browse_thread/thread/4584f53be9b7b973#

    I have not tested it yet, but it seems this guy has a similar problem and found his way through it. Might be...

  • RE: Handling in a field

    Your address pieces should definetely be split into separate columns in your address table. The front end (your report definition) should handle to omit those columns, which are NULL then.

    brgds

    Philipp...

  • RE: Two delimiters in Schema.ini

    One way could be to edit the .csv file with a text editor and replace the slashes with at tab or vice versa in order to maintain one delimiter only.

    brgds

    Philipp...

  • RE: T-SQL

    I go in line with Hugo's oppinion.

    I would assume if anyone choose to use IDENTITY he/she wishes to use this for new rows as well after copying the table,...

  • RE: convert varchar to datetime

    I'm assuming your problem was that 1900-00-00 is not a date?

    Suppose the data came from MySQL as this is proprietary to them and does not port.

    brgds

    Philipp Post

  • RE: Query needed

    >Find out the models and prices for all the products (of any type) produced by maker B.<

    SELECT P.model, PC.price

    FROM Product AS P

    INNER JOIN PC

    ON P.model = PC.model

    WHERE...

Viewing 11 posts - 31 through 41 (of 41 total)