Forum Replies Created

Viewing 15 posts - 3,466 through 3,480 (of 15,381 total)

  • RE: select records where combination of two values are in subquery result

    McSQL (12/12/2014)


    CREATE TABLE MYTABLE

    (

    DOC_NO NVARCHAR (10),

    REV_NO NVARCHAR (5),

    FILE_NAME NVARCHAR (20),

    ADD1 NVARCHAR (10),

    ADD2 NVARCHAR (10),

    ADD3 INT

    )

    INSERT INTO MYTABLE (DOC_NO, REV_NO, FILE_NAME, ADD1, ADD2, ADD3)

    SELECT 'ABC123', 'A', 'abc123.pdf', 'CON1', 'LOC1', 1 UNION...

  • RE: Kindly resolve some error in the below function

    mahi123 (12/12/2014)


    Thanks for your reply,

    i have been created procedure but i want data in select statements, because in front end code we have to pass optinal perameters something, s that...

  • RE: select records where combination of two values are in subquery result

    I have about 4 ideas of what you might want from this. Can you put together some ddl and sample data in a consumable format? Also, if you can demonstrate...

  • RE: Output in specific format

    Maddave (12/12/2014)


    You could just use a replace in your select

    SELECT REPLACE(<columnName>, '.','. ')

    FROM <tableName>

    May not be efficient, but would work.

    Actually if the data is consistent this is about the most...

  • RE: Whats going on Query window?

    Interesting question. It seems it was poorly worded since one of the correct answers is a statement of fact but the question ask what is the output. Also, the link...

  • RE: Cross Table

    ikrami2000 (12/11/2014)


    Thank you it's working, but let me ask if this will work for any number of records ?

    Sure it will work with more rows. Glad it is working...

  • RE: Row_number OVER functionality

    Eirikur Eiriksson (12/11/2014)


    Quick and simple row_number solution

    šŸ˜Ž

    This looks pretty close to mine. Just before I posted my solution I saw that the OP wanted the closest date that was earlier...

  • RE: How to close active connections or create connection timeouts

    timotech (12/9/2014)


    Good day,

    Please i need help in solving active connection problems in my office, we have roughly 22 people connected to one database. But after a while, their applications begin...

  • RE: Row_number OVER functionality

    vvinarov (12/11/2014)


    Hi,

    I’m trying to write a query that will extract cost based on closest date (<= date passed by user), product and terminal from example below. Table has over million...

  • RE: Use row_number() as default value of table column

    JeeTee (12/11/2014)


    Trying to do this with update triggers will make you prematurely bald.

    +100000

  • RE: Cross Table

    OK this can be done without resorting to dynamic sql but it is kind of ugly. Notice I created the tables and sample data. This is something you should do...

  • RE: Use row_number() as default value of table column

    sKreetz! (12/11/2014)


    Thanks for the quick reply, Eirikur! It worked like a charm and I appreciate the help. As Sean mentioned, users may change their mind and remove line certain line...

  • RE: encrypt string in t-sql/decrypt on public site

    tomek tomek (12/11/2014)


    the point is, no one knows the real content (even I, as admin) - until decrypted on a website.

    Unfortunately,

    i don't have enough knowledge to build my own website...

  • RE: Cross Table

    ikrami2000 (12/11/2014)


    I have this table

    Outlet_IDDescription

    1Soups

    1Salads

    1Appetizers

    1Tempura

    1Tataki

    1Teppanyaki

    2Teriyaki

    2The Sakura Specialty

    2Rice

    2Noodles

    and i need it to be :

    Outlet_IDDesc1Desc2 Desc3Desc4

    1 ...

  • RE: encrypt string in t-sql/decrypt on public site

    tomek tomek (12/11/2014)


    I have a following situation.

    1. I need to encrypt set of strings in t-sql. These encrypted strings will be manually delivered to users.

    2. Users have neither...

Viewing 15 posts - 3,466 through 3,480 (of 15,381 total)