Forum Replies Created

Viewing 15 posts - 121 through 135 (of 243 total)

  • RE: Accessing other columns as part of aggregate query

    [Code]SELECT TOP 1 EMPLOYEEID

    FROM SALARIES

    ORDER BY SALARY DESC[/Code]

  • RE: Sql Query

    Thanks, Sergiy, I learn something new every day.

  • RE: Restore / DTS query

    Yes, two tables which contained a binary (image) field failed to import and a couple of others for reasons I could not pinpoint. Also, I want the imported data to...

  • RE: Sql Query

    [Code]UPDATE tblTemp SET fkProgram = (select id from tblProgram WHERE description = t.ProgramBuy) FROM tblTemp t[/Code]

    Pardon me for nitpicking, if the alias 't' is assigned in the outer query, how...

  • RE: Using the result set of a stored procedure...?

    Sergiy, Thanks for the helping hand to OP. I have a question to add:

    How can I create a table to hold the recordset without knowing its schema?

  • RE: Start a process and return

    Thanks, Sergiy, I'll pass it on.

  • RE: Disappearing Stored Procs

    No, sir, I have never used WITH ENCRYPTION in my sprocs.

  • RE: Date range issues

    This is just a pointer I've slapped up fast:

    [Code]SET DATEFORMAT DMY

    DROP TABLE TABLE1

    DROP TABLE TABLE2

    CREATE TABLE TABLE1 (INITS VARCHAR(10), EFFDATE DATETIME, RATE NUMERIC)

    INSERT INTO TABLE1 (INITS, EFFDATE, RATE)

    SELECT 'aaaa',...

  • RE: help filtering in a where

    GROUP BY returns records that have been "summarized" and "grouped" in the order of fields you choose. When you add fields to the SELECT clause without a summary function, you...

  • RE: Creating an .xml file from a SQL Server 2000 database

    Praja, do NOT "cut and paste" the code - it will definitely not work. Use only one of the options in brackets separated by "|".

    [Code]SELECT Customers.CustomerID, Orders.OrderID, Orders.OrderDate

    FROM Customers,...

  • RE: Disappearing Stored Procs

    No, there is no replication whatsoever on our servers.

    I restored an October backup, and found the stored procedures appeared intact. But when I restored the last backup and tried to...

  • RE: Creating an .xml file from a SQL Server 2000 database

    I myself am on the same learning curve as you, though I have made good headway in my research. You could try these:

    [Code]SELECT Customers.CustomerID, Orders.OrderID, Orders.OrderDate

    FROM Customers, Orders

    WHERE...

  • RE: How to debug T-SQL

    Thanks, guys. You've all been a great help.

  • RE: How to debug T-SQL

    Phew! What a big world I have dared step into! Thanks to both of you, Jeff and Phil, I'll remember your advice.

  • RE: Inedeces and Primary keys

    As the name implies, a primary key has to be unique for each record in the table, so SQL will definitely test if it exists before committing an INSERT or...

Viewing 15 posts - 121 through 135 (of 243 total)