Forum Replies Created

Viewing 15 posts - 1,486 through 1,500 (of 3,544 total)

  • RE: SQL querie

    DELETE t

    FROM candidateTenant t

    WHERE EXISTS(SELECT * FROM waitList w WHERE w.candidate_no = t.candidate_no)

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Design debate - 1 code table for all codes or 1 for each

    I did :blush:

    bugger! :crazy:

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: SQL querie

    Need to to know key relationships between tables, please post table DDL, sample data and expected results.

    When inserting into a table you can select new rows by excluding any already...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Oh, HELL NO!

    Don't sugar coat it Jeff - tell us how you really feel.

    yeah, Jeff is a real passionate guy :w00t:

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: need a query

    Need more information. I am not an ORACLE user but I believe the sql is similar.

    You can do 50 individual SELECT's (one per table) to get 50 result sets

    You can...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: T-Sql problem, please help I am stuck.

    quotewhere the heck did the "x", "y", and "z" come from

    Probably from the aforementioned 'some grouping and calculation...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Delimiter of string data

    That's nothing  

    It's all the same to a blind man

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: INSERT Identity

    For single row insert

    INSERT INTO (othercolumn) VALUES (0)

    UPDATE SET [othercolumn] = [identitycolumn] WHERE [identitycolumn] = SCOPE_IDENTITY()

    wrap in transaction if preferred

    this will not handle multiple inserts ie...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Delimiter of string data

    quote...I am curious about the source of data...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Delimiter of string data

    A permanant table containing numbers, I create my like this

    CREATE TABLE dbo.Numbers

    ([Number] int NOT NULL,

    CONSTRAINT PK_Numbers PRIMARY KEY CLUSTERED (Number))

    GO

    SET NOCOUNT ON

    DECLARE @n int

    SET @n...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Delimiter of string data

    Nasty solution but....

    SELECT SUBSTRING(col004,n.Number,CHARINDEX(',',a.col004,CHARINDEX(',',a.col004,CHARINDEX(',',a.col004,n.Number)+1)+1) - n.Number + 1)

    FROM a

    INNER JOIN Numbers n 

    ON n.Number > 0

    AND n.Number < LEN(col004)...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: regarding dts package in sql server 2000

    Notwithstanding the above, never tried this but...

    1. Create linked server to LIVE on DEV

    2. Create procedure on LIVE to execute sp_start_job

    3. Add step to job on DEV to execute above...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Problem With CASE

    First create a temp table

    CREATE TABLE #temp ([ID] int ,colname varchar(255),colvalue varchar(255))

    and fill it

    INSERT INTO #temp select 0,LEFT(ResubmitDetails,CHARINDEX(':',ResubmitDetails)),LTRIM(SUBSTRING(ResubmitDetails,CHARINDEX(':',ResubmitDetails)+1,255)) from

    Assign an ID to each block of data...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Doing a count on characters within a string

    quote...notice that I hate loops and cursors so much that I even avoided them...

    But still using non ANSI-92...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Complicated Deduping

    There must be a smart way of doing this but I just cannot think of it

    I tried this

    SELECT A,MIN(B) AS FROM (

    SELECT a.[ID] AS [A],b.[ID] AS

    FROM...

    Far away is close at hand in the images of elsewhere.
    Anon.

Viewing 15 posts - 1,486 through 1,500 (of 3,544 total)